I would like to know if is possible, and how, is mapped a loop condition in jBPM and JPDL. An Example:
I have process P1, P2, P3, P4, P5, wich are mapped as: START -> P1 -> P2 -> P3 -> P4 -> P5 -> END. But process P3 can transit to P1 again, when specific conditions occurs with P3, and the process is executing in loop untill an other condition occurs with P3 and this follows normal flow to end.
Just use a decision handler at P3 to determine if it goes back to P1 or continues to P4.
The user guide and test cases show how to do this. Either you have a programmatic handler, or you have a user decision.