public abstract class TransitionableState extends State implements TransitionableStateDefinition
Transition,
TransitionCriteriaCAPTION_PROPERTY, DESCRIPTION_PROPERTY| Modifier and Type | Method and Description |
|---|---|
void |
exit(RequestControlContext context)
Exit this state.
|
ActionList |
getExitActionList()
Returns the list of actions executed by this state when it is exited.
|
Transition |
getRequiredTransition(RequestContext context)
Get a transition in this state for given flow execution request context.
|
TransitionDefinition |
getTransition(String eventId)
Returns the transition that matches the event with the provided id.
|
TransitionDefinition[] |
getTransitions()
Returns the available transitions out of this state.
|
TransitionSet |
getTransitionSet()
Returns the set of transitions.
|
boolean |
handleEvent(RequestControlContext context)
Inform this state definition that an event was signaled in it.
|
enter, equals, getEntryActionList, getExceptionHandlerSet, getFlow, getId, getOwner, handleException, hashCode, isStartState, isViewState, toStringgetAttributes, getCaption, getDescription, setCaption, setDescriptiongetId, getOwner, isViewStategetAttributes, getCaption, getDescriptionpublic TransitionDefinition[] getTransitions()
TransitionableStateDefinitiongetTransitions in interface TransitionableStateDefinitionpublic TransitionDefinition getTransition(String eventId)
TransitionableStateDefinitiongetTransition in interface TransitionableStateDefinitioneventId - the event idpublic TransitionSet getTransitionSet()
public Transition getRequiredTransition(RequestContext context) throws NoMatchingTransitionException
NoMatchingTransitionException - when a matching transition cannot be foundpublic ActionList getExitActionList()
public boolean handleEvent(RequestControlContext context) throws NoMatchingTransitionException
RequestContext.getCurrentEvent()).context - the flow execution control contextNoMatchingTransitionException - when a matching transition cannot be foundpublic void exit(RequestControlContext context)
context - the flow control context