* $workflow = new ezcWorkflow( 'Test' ); * * $split = new ezcWorkflowNodeParallelSplit(); * $workflow->startNode->addOutNode( $split ); * $nodeExec1 = ....; // create nodes for the first thread of execution here.. * $nodeExec2 = ....; // create nodes for the second thread of execution here.. * * $disc = new ezcWorkflowNodeDiscriminator(); * $disc->addInNode( $nodeExec1 ); * $disc->addInNode( $nodeExec2 ); * $disc->addOutNode( $workflow->endNode ); * * * @package Workflow * @version 1.1rc1 */ class ezcWorkflowNodeParallelSplit extends ezcWorkflowNodeBranch { /** * Activates all outgoing nodes. * * @param ezcWorkflowExecution $execution * @ignore */ public function execute( ezcWorkflowExecution $execution ) { return $this->activateOutgoingNodes( $execution, $this->outNodes ); } } ?>