Handling Rollback in Multi-Instance Loop with Service Task API Calls

Hi everyone,

I’m working on a Camunda 7 workflow that includes a multi-instance loop. Inside this loop, there’s a service task responsible for creating a record via an API call. Imagine the loop count is set to 5. If the API call fails during the third iteration, I need to roll back the changes made by the API calls in the first and second iterations.

My Approach So Far:

I’d appreciate any feedback or suggestions on how to improve this approach or any other best practices for handling this scenario in Camunda 7.

Thanks in advance!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.