public class DecisionState extends TransitionableState
true
in the context
of the current request.
A decision state is a convenient, simple way to encapsulate reusable state transition logic in one place.
CAPTION_PROPERTY, DESCRIPTION_PROPERTY
Constructor and Description |
---|
DecisionState(Flow flow,
String stateId)
Creates a new decision state.
|
exit, getExitActionList, getRequiredTransition, getTransition, getTransitions, getTransitionSet, handleEvent
enter, equals, getEntryActionList, getExceptionHandlerSet, getFlow, getId, getOwner, handleException, hashCode, isStartState, isViewState, toString
getAttributes, getCaption, getDescription, setCaption, setDescription
getId, getOwner, isViewState
getAttributes, getCaption, getDescription
public DecisionState(Flow flow, String stateId) throws IllegalArgumentException
flow
- the owning flowstateId
- the state identifier (must be unique to the flow)IllegalArgumentException
- when this state cannot be added to given flow, e.g. because the id is not unique