How to repeat a user task?

I am performing some operation in user task of adding some items from list of items.
What I want to do is I prompt the user whether he wants to add more and if he says yes, then I wlii execute my user task again.
So how would I do that?

Hi @sunnyorange,

you need some kind of a lopp. Have a look in the docs:

You would need a second user task that would set a variable (e.g. “addMoreStuff” = true/false) and then decide whether or not to execute the task again.

Maybe you also want to read about user task forms although its not required here.


Hi @Miklas

Is there any camunda example for that.

@sunnyorange you can have take look at this github example.

Also, refer this and this links for more understanding.