Workflow: ezcWorkflowNodeParallelSplit
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcWorkflowNodeParallelSplit
|
This node implements the Parallel Split workflow pattern. [
source]
The Parallel Split work?ow pattern divides one thread of execution unconditionally into multiple parallel threads of execution.
Use Case Example: After the credit card specified by the customer has been successfully charged, the activities of sending a confirmation email and starting the shipping process can be executed in parallel.
Incoming nodes: 1 Outgoing nodes: 2..*
This example creates a workflow that splits in two parallel threads which are joined again using a ezcWorkflowNodeDiscriminator.
1. $workflow = new ezcWorkflow( 'Test' );
2.
3. $split = new ezcWorkflowNodeParallelSplit();
4. $workflow->startNode->addOutNode( $split );
5. $nodeExec1 = ....; // create nodes for the first thread of execution here..
6. $nodeExec2 = ....; // create nodes for the second thread of execution here..
7.
7.
8. $disc = new ezcWorkflowNodeDiscriminator();
9. $disc->addInNode( $nodeExec1 );
10. $disc->addInNode( $nodeExec2 );
11. $disc->addOutNode( $workflow->endNode );
Parents
ezcWorkflowNode
|
--ezcWorkflowNodeBranch
|
--ezcWorkflowNodeParallelSplit
Inherited Constants
From
ezcWorkflowNode:
Inherited Member Variables
From
ezcWorkflowNodeBranch:
From
ezcWorkflowNode:
Inherited Methods
From
ezcWorkflowNodeBranch :
From
ezcWorkflowNode :
Last updated: Wed, 28 Nov 2007