Creating a loop in camunda for a whole process

Hello,
I’m currently working on the automatic creation of contracts and i want to build a loop so the developer can tell at the beginning (in the mask) how often the process should run.
It’s not about the loop from a task. I want to do a loop for the whole process. Like if the developer wants to create 7 contracts the process will run 7 times.

Does anyone know how to do that?

Here is an example of the process:

Hi @Fynn,

you can put your process in a multi instance embedded subprocess: Multi-Instance | Camunda Platform 8

Hope this helps, Ingo

1 Like

Hi Ingo,
thanks for the fast answer. I’m watchin videos about this but i don’t get it ^^…
I dont understand how i can tell the process how often it should run.

Hi @Fynn,

the magic happens by providing a process variable containing a list. The Multi instance will iterate over the elements of the list. Each element will become a single subprocess.

Have a look at this section for further details: Multi-Instance | Camunda Platform 8

Hope this helps, Ingo

1 Like