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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:59:23
Script start
Timing: Jan 18 2025 02:59:23
Module start 'layout'
Timing: Jan 18 2025 02:59:23
Module start 'content'
Timing: Jan 18 2025 02:59:23
Module end 'content'
Timing: Jan 18 2025 02:59:23
Script end

Main resources:

Total runtime0.0142 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.0469152.6250
Module start 'layout' 0.00520.0022 741.671939.4453
Module start 'content' 0.00740.0050 781.117289.2109
Module end 'content' 0.01240.0018 870.328130.3047
Script end 0.0142  900.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.0369140.0002
Check MTime0.00107.1022140.0001
Mysql Total
Database connection0.00085.741710.0008
Mysqli_queries0.002215.302230.0007
Looping result0.00000.070310.0000
Template Total0.001510.310.0015
Template load0.00085.557610.0008
Template processing0.00074.695810.0007
Override
Cache load0.00063.987910.0006
General
dbfile0.00032.287680.0000
String conversion0.00000.035140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs