diff --git a/jbpm-examples/src/main/resources/looping/Looping.bpmn b/jbpm-examples/src/main/resources/looping/Looping.bpmn index ffb48d979c..eef2e38e4a 100644 --- a/jbpm-examples/src/main/resources/looping/Looping.bpmn +++ b/jbpm-examples/src/main/resources/looping/Looping.bpmn @@ -1,113 +1,220 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return i < count; - - - - - - return true; - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + _1-_7 + + + _7-_2 + _4-_2 + _2-_3 + + + + + + + + _2-_3 + _3-_4 + System.out.println("i = " + i); +kcontext.setVariable("i", i+1); + + + _3-_4 + _4-_5 + _4-_2 + + + + + + + + _4-_5 + _5-_6 + System.out.println("Loop completed"); + + + + + + + + _5-_6 + + + + + + + + + _1-_7 + _7-_2 + kcontext.setVariable("i", 0); + + - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + + + - - - + + + - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + _ylVWoBOlEDqB7v6qZ-fBHQ + _ylVWoBOlEDqB7v6qZ-fBHQ + +