I made this simple BPMN for POC, and I use a Java application for the external service task.
I have a question for these BPMN, what would happen if one of the service tasks takes a long time to succeed or throw an exception, and the other one throws an exception very fast, and then the user task is complete before the previous long-running service task is completed?
Since my service tasks are used to send data (such as provisioning permission, creating person data, etc.) to other systems, I am worried about the transaction.
And also, task 1 and task 2 are for system A, and task 3 is for system B, and I want the tasks for both systems can run at the same time (parallel).