Thursday 17 June 2010 3:22:21 am
Hey, I have some questions about workflow and the ParallelSplit . I would like to run two node in my work flow in parallel. I used the ezcWorkflowNodeParallelSplit but my class myServiceObject1 and myServiceObject2 were'nt executed with thread My code without myServiceObject1/myServiceObject2 class
$split = new ezcWorkflowNodeParallelSplit();
$workflow->startNode->addOutNode( $split );
$nodeExec1 = new ezcWorkflowNodeAction(array('class' => 'myServiceObject1')); // create nodes for the first branch of execution here..
$nodeExec2 = new ezcWorkflowNodeAction(array('class' => 'myServiceObject2')); // create nodes for the second branch of execution here..
$split->addOutNode( $nodeExec1 );
$split->addOutNode( $nodeExec2 );
$disc = new ezcWorkflowNodeDiscriminator();
$disc->addInNode( $nodeExec1 );
$disc->addInNode( $nodeExec2 );
$disc->addOutNode( $workflow->endNode ); How i could use thread ? You can see the .dot file here http://www.hostingpics.net/viewer.php?id=474745Test_041_012.jpg
|