|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkflowInstance
A workflow instance is an incarnation of a workflow schema. It consists of
Method Summary | |
---|---|
void |
addWorkflowListener(WorkflowListener listener)
Adds a workflow listener. |
State |
getCurrentState()
Returns the current state of this WorkflowInstance. |
Event[] |
getExecutableEvents(Situation situation)
Returns the executable events in a certain situation. |
boolean |
getValue(java.lang.String variableName)
Returns the current value of a variable. |
Workflow |
getWorkflow()
Returns the workflow this instance belongs to. |
void |
invoke(Situation situation,
Event event)
Indicates that the user invoked an event. |
boolean |
isSynchronized(Event event)
Returns if the transition for a certain event is synchronized. |
void |
removeWorkflowListener(WorkflowListener listener)
Removes a workflow listener. |
Method Detail |
---|
Workflow getWorkflow()
State getCurrentState()
Event[] getExecutableEvents(Situation situation) throws WorkflowException
situation
- The situation.
WorkflowException
- when something went wrong.void invoke(Situation situation, Event event) throws WorkflowException
situation
- The situation in which the event was invoked.event
- The event that was invoked.
WorkflowException
- when something went wrong.boolean getValue(java.lang.String variableName) throws WorkflowException
variableName
- A variable name.
WorkflowException
- when the variable does not exist.void addWorkflowListener(WorkflowListener listener)
listener
- The listener to add.void removeWorkflowListener(WorkflowListener listener)
listener
- The listener to remove.boolean isSynchronized(Event event) throws WorkflowException
event
- An event.
WorkflowException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |