-
1. Re: Transition loop
kukeltje Mar 1, 2007 11:09 AM (in response to paolodt)the GPD in graphical mode does not allow it. In the source by hand you can achieve this... the engine allows it BUT... make sure it is a wait state, otherwise you will get a stack overflow after a few hundred iterations (maybe even less)
-
2. Re: Transition loop
paolodt Mar 1, 2007 11:35 AM (in response to paolodt)
the engine allows it BUT... make sure it is a wait state, otherwise you will get a stack overflow
Should it work with a task node also? I want to let a user to loop on a task until he choose a different transition ...
Thanks, Paolo -
3. Re: Transition loop
kukeltje Mar 1, 2007 11:39 AM (in response to paolodt)Yep it should as long as you close the context so it will be persisted...
-
4. Re: Transition loop
insanely.freak Jan 8, 2009 7:09 AM (in response to paolodt)I have a workflow requirement where I need to keep asking users in a system for approval till it is approved by all of them.
I decided to loop over two jbpm nodes first being decision node and then a task node.
Here I get a StackOverFlow Exception when i load the taskinstance from db again and try to end it. I have searched across various forums, only solution ppl seems to suggest for this is to persist it.
Currently I am persisting the task instance created and then I end the task by fetching it from database. After this flow is suppose to go to decision node and decide whether to go to task node or to end. but as soon as it reached decision node I get StackOverflow exception.
Cud anyone explain where and how i need to persist. -
5. Re: Transition loop
kukeltje Jan 9, 2009 4:10 AM (in response to paolodt)duplicate post.... please don't