PHP Class ezcWorkflowNodeSynchronization, Workflow

The Synchronization workflow pattern synchronizes multiple parallel threads of execution into a single thread of execution. Workflow execution continues once all threads of execution that are to be synchronized have finished executing (exactly once). Use Case Example: After the confirmation email has been sent and the shipping process has been completed, the order can be archived. Incoming nodes: 2..* Outgoing nodes: 1
Inheritance: extends ezcWorkflowNodeMerge
Show file Open project: zetacomponents/workflow Class Usage Examples

Public Methods

Method Description
activate ( ezcWorkflowExecution $execution, ezcWorkflowNode $activatedFrom = null, integer $threadId ) Activate this node.
execute ( ezcWorkflowExecution $execution ) : boolean Executes this node.

Method Details

activate() public method

Activate this node.
public activate ( ezcWorkflowExecution $execution, ezcWorkflowNode $activatedFrom = null, integer $threadId )
$execution ezcWorkflowExecution
$activatedFrom ezcWorkflowNode
$threadId integer

execute() public method

Executes this node.
public execute ( ezcWorkflowExecution $execution ) : boolean
$execution ezcWorkflowExecution
return boolean true when the node finished execution, and false otherwise