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)
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 ...
Yep it should as long as you close the context so it will be persisted...
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.
duplicate post.... please don't