Package org.springframework.statemachine
Interface ExtendedState
- All Known Implementing Classes:
DefaultExtendedState
public interface ExtendedState
Extended states are used to supplement state machine with a variables. If
extended state is used a complete condition of a state machine is a
combination of its state an extended state variables.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The listener interface for receiving extended state change events. -
Method Summary
Modifier and TypeMethodDescription<T> T
Gets a variable which is automatically casted into a type.Gets the extended state variables.void
Sets the extended state change listener.
-
Method Details
-
getVariables
Gets the extended state variables.- Returns:
- the extended state variables
-
get
Gets a variable which is automatically casted into a type.- Type Parameters:
T
- the return type- Parameters:
key
- the variable keytype
- the variable type- Returns:
- the variable
-
setExtendedStateChangeListener
Sets the extended state change listener.- Parameters:
listener
- the new extended state change listener
-