it.amattioli.workstate.core
Class InitialState
java.lang.Object
it.amattioli.workstate.core.State
it.amattioli.workstate.core.PseudoState
it.amattioli.workstate.core.InitialState
- All Implemented Interfaces:
- AttributeReader
public class InitialState
- extends PseudoState
An initial state is a pseudo-state that represents the starting point of a
sequential state. Every sequential state must have only one initial state.
This initial state can be the source state of one or more transitions
associated with no events. If a transition enters a sequential state without
specifying a substate, its initial state will be activated and all the
transitions starting from it will be evaluated to find the one to be fired.
| Methods inherited from class it.amattioli.workstate.core.State |
addAvailableEvents, buildEvent, checkActive, equals, exit, findAncestor, getAvailableEvents, getId, getMemento, getParent, getRootMachine, hasMetaState, isActive, isRegion, reEnter, reExit |
InitialState
public InitialState(MetaInitialState metaState,
CompositeState parent)
enter
public void enter()
throws WorkflowException
- Enters the initial state. When the initial state is entered all the
transitions starting from it will be evaluated to find the one to follow.
Once the right transition is found it will be fired. If all the
transition guards return false an
IllegalStateException will be
thrown.
- Overrides:
enter in class State
- Throws:
WorkflowException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.