While loop in camunda flow

How can i use while loop till my Exclusive Gateway event provide true? (I am using Springboot)

There’s a few different ways of creating a while loop with BPMN but it depends on your model. Can you explain what you’re trying to loop and how the condition can change?


@Niall , Here how should i create count variable and use that throughout my flow?

Can you explain exactly how the count is updated.

In the :Is known error" gateway, I am checking if my current task is completed successfully, if not then I am checking if count exceeds the number 3. If it exceeds the number 3 then I am performing one service task, if count <=3 then I am increasing the count (initially count = 0) by 1 and sending the kafka message to re-initiate the task.