Interface IEventSequence
Defines the interface that must be implemented by all Event sequence. An event sequence is an array of workflow events that occurs on three occasions :
- createEnterWorkflowSequence : when a model enters into a workflow
- createChangeStatusSequence : when a model status change from a non empty status to another one
- createLeaveWorkflowSequence : when a model leaves a workflow
For each one of these methods, the implementation must returns with 2 keys : before and after. For each
key, the value is an array of \raoul2000\workflow\events\WorkflowEvent
representing the sequence of event
to fire before or after the workflow event occurs.
Two event sequences implementations are provided :
Direct known implementers
raoul2000\workflow\events\BasicEventSequence
,
raoul2000\workflow\events\ExtendedEventSequence
,
raoul2000\workflow\events\ReducedEventSequence
Methods summary
public
array
|
#
createEnterWorkflowSequence(
Creates and returns the sequence of events that occurs when a model enters into a workflow. |
public
array
|
#
createLeaveWorkflowSequence(
Creates and returns the sequence of events that occurs when a model leaves a workflow. |
public
array
|
#
createChangeStatusSequence(
Creates and returns the sequence of events that occurs when a model changes from an existing status to another existing status. |