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
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
public activate ( ezcWorkflowExecution $execution, ezcWorkflowNode $activatedFrom = null, integer $threadId ) |
$execution |
ezcWorkflowExecution |
|
$activatedFrom |
ezcWorkflowNode |
|
$threadId |
integer |
|
public execute ( ezcWorkflowExecution $execution ) : boolean |
$execution |
ezcWorkflowExecution |
|
return |
boolean |
true when the node finished execution,
and false otherwise |