Hi everyone,
I have a scenario where, in one of our workflows, we use the “Move Workflows (SQL)” action on a transition path to update multiple workflow instances—often dozens or even hundreds. Each of these updated workflows executes several actions upon transition, including making a REST API request to an external system.
The issue arises when, for example, out of 150 instances, 140 complete successfully, but the 141st encounters an error. In such a case, all changes within the workflow instances are rolled back, but the REST API calls have already been sent, potentially causing inconsistencies between systems.
From a business process perspective, a better approach would be if each instance update were handled as a separate transaction. This way, if 145 instances update successfully and 5 fail, the user would only need to address those 5 errors rather than losing all progress due to a single failure.
Has anyone dealt with a similar case? What potential solutions do you see that balance performance and business requirements?