| java.lang.Object de.danet.an.workflow.domain.TransitionManager
TransitionManager | public TransitionManager(AbstractProcess process)(Code) | | Default constructor. Sets up the activity groups and transition
maps. Activities are grouped as "not started", "running" and
"closed". The additional, transient state "startable" is
assigned if an activity is not started and has no
predecessors. Note that activities with these properties can
only exist in a not yet started process. Once the process has
started, all activities that have no predecessors will no
longer be in state "not started".
Parameters: process - the process associated with this object |
isAtEnd | public boolean isAtEnd()(Code) | | Verifies if no work remains to be done for this process.
true if there are no startable or runningactivities. |
isTransitionSource | public boolean isTransitionSource(String act)(Code) | | Find out if the activity with the given key is the source of
any transition.
Parameters: act - the activity true if there is at least one transitionoriginating from the given activity |
startableActivities | public Collection startableActivities()(Code) | | Return the startable activities.
a collection of startable activities. |
update | public void update(ExtActivityLocal act)(Code) | | Informs the transition manager about a change of an activity's state.
Parameters: act - the activity that has changed its state. |
update | public void update(ExtActivityLocal act, String exception)(Code) | | Informs the transition manager about an event on an activity.
Parameters: act - the activity that has received the exception. Parameters: exception - an exception name if an exception has occuredon the activity or null if the activity has simplyreached a new state |
|
|