* 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 //autogen// */ class ezcWorkflowNodeParallelSplit extends ezcWorkflowNodeBranch { /** * Activates all outgoing nodes. * * @param ezcWorkflowExecution $execution * @return boolean true when the node finished execution, * and false otherwise * @ignore */ public function execute( ezcWorkflowExecution $execution ) { return $this->activateOutgoingNodes( $execution, $this->outNodes ); } } ?>