processes running not in parallel
"He Wei" <[email protected]> Tue, 16 Aug 2005 18:04:50 +0800
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <20050816100450.GBUW1187.morpheus1.pacific.net.sg@weihenb> |
In my testing, I started several process instances for the same process
definition by the following java codes. "allProcesses" is array, whose
length determines how many process instance to initiate. The process
contains only automatic activities, which means each activity automatically
start and complete by the engine. It supposes that those initiated processes
should run in parallel, is it? However the results show that these processes
start running in sequence, in other words, the second process starts to run
only after the first process instance completes, and the third one start
running only after the second completes, then the 4th, 5th and so on. It is
quite strange. Could you please advice why this happens? Any settings need
to be considered in shark? Thank you very much.
for(i=0;i<allProcesses.length;i++)
{
Map m1 = new HashMap();
m1.put("TotalTimeTaken",TotalTimeTaken);
m1.put("ProcessStartTime",ProcessStartTime);
m1.put("MovingDecision",MovingDecision);
WfProcess proc1 = sConn.createProcess(pkgId,pDefId);
proc1.set_process_context(m1);
proc1.start();
}
}
Best Regards,
He Wei
message-footer.txt
(text/plain, 271 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws