Re: processes running not in parallel
Monique Maker <[email protected]> Tue, 16 Aug 2005 13:23:55 +0300
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <[email protected]> |
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