-
1. Re: Async continuation in decision activity
kukeltje Jan 26, 2010 5:29 PM (in response to johan.kumps)please post again, things got lost... -
2. Re: Async continuation in decision activity
johan.kumps Jan 27, 2010 1:52 AM (in response to kukeltje)Hi,
This is a piece of my process definition :
...
<start g="10,162,80,40">
<transition to="ChooseWorker"/>
</start>
<decision g="132,161,80,40" name="ChooseWorker" continuation="async">
<handler class="be.myorganisation.myapp.WorkerDecisionHandler" />
<transition g="-6,-18" name="groupOne" to="inTreatmentByGroupOne"/>
<transition g="-42,-17" name="groupTwo" to="inTreatmentByGroupTwo"/>
</decision>...
Thanks for helping,
-
3. Re: Async continuation in decision activity
kukeltje Jan 27, 2010 6:36 PM (in response to johan.kumps)A lot more info was missing. It is btw always better to post it as a unittest. That way we can try to reproduce easily. -
4. Re: Async continuation in decision activity
johan.kumps Jan 28, 2010 4:36 AM (in response to kukeltje)Please find a testcase in attach.
Kind regards,
-
AsyncContTestCase.zip 11.4 KB
-
-
5. Re: Async continuation in decision activity
kukeltje Jan 28, 2010 3:30 PM (in response to johan.kumps)Johan,
I'm going to try now, but you should to and at least use jbpm 4.3 (not 4.0 as your pom states!!!!)
Ronald
-
6. Re: Async continuation in decision activity
kukeltje Jan 28, 2010 7:08 PM (in response to johan.kumps)Ok, your test runs and is green here, but only one line ouput. There is no decisionhandler called as I would expect since you have no jobscheduler configured in your config. In that case you should run it 'manually' in the testcase. See the jBPM source (modules/test-db/.... ) for examples.
And if I enable the jobscheduler in the config, it still is green, with two lines of output AND different thread names.
So advice: update to jbpm 4.3 and usea job scheduler if you want two threads
-
7. Re: Async continuation in decision activity
johan.kumps Jan 29, 2010 1:59 AM (in response to kukeltje)Hi Ronald,
The update to 4.3 I already did yesterday. Changing the config like you mentioned did the trick.
Thanks for your great help!
Johan,