Modelling a time based loop in process


Hello together,

i´m trying to model a simple loop in the process, but i notice unexpected behaviour.

The process:
The task “Write console log” prints a small console log with groovy script “Hello, here is the log”.
At the exclusive gateway is a hard coded condition, to link the flow in the loop.

The problem:
I expect that i get a console line “Hello, here is the log” and after 10 seconds once again, until the process will be canceled or the condition on the sequence flow is not fulfilled.
But what happens: The process run waits 10 seconds only one time and then the console prints incessantly this line and the process engine crashes after little time.

Why does the process wait once?
Are there some configurations missing? like ‘syncronous / asynchronous continuation’?

Best regards
David

Can you be more specific about the error that occurs?

The Output of the console produces the same as:

while(true)
{
println(“Text here…”);
}

… the effect of this loop is, that the process engine is full occupied. But thats not the problem, its only a side effect.

Can you upload your model and i’ll try to see what’s going on with it.

Niall, thank you for the very fast answer.

I have tried it a few times and now it works fine now. The problem was to specifiy "asynchronous before / after / exclusive " - Continuation in the BPMN-Model.

PS: Thank you one more time. For our Customers we integrate CAMUNDA into our product, so i will use your help at the next opportunity.

Regards
David