Forums / Setup & design / Workflow and ParallelSplit

Workflow and ParallelSplit

Author Message

Pierre c

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

Pierre c

Monday 21 June 2010 12:41:43 am

Hello,

nobody has been used the workflow with thread yet ? Did you know if workflow with thread function only with the worker modules in Apache conf.