RE: processes running not in parallel
"He Wei" <[email protected]> Wed, 17 Aug 2005 09:06:18 +0800
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <20050817010617.FFMN1195.morpheus2.pacific.net.sg@weihenb> |
Hello Monique, Thank you very much for your answer. This behavior for a workflow engine should not be acceptable, and should be considered as a bug. Did you mean that without the solution of "how a TolAgent can finish an activity", the problem cannot be solved, is it? Best Regards, He Wei -----Original Message----- From: Monique Maker [mailto:[email protected]] Sent: Tuesday, August 16, 2005 6:24 PM To: [email protected] Subject: Re: [shark] processes running not in parallel Hello He Wei, When we asked similar question to the Shark team they explained us that Shark processes activities "greedy", i.e. it executes as many activities as it can. In the case of all automatic activities the Shark engine runs all of them before to proceed anything else. That is the reason you observe a sequential processes execution. You cannot change this Shark behavior with some settings. Intead you will need to change your process definitions. Shark team advised us to change the activities to automatic start and manual end, but we still have no answer how a TolAgent can finish an activity (if this is your case too). Regards, Monique He Wei wrote: > 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 4^th , 5^th 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