whenever, we need to cancel a process instance based on a decision made in some other process. I see we have some options like Send/Receive message, Cancel Process, Set external P Vs Activity but not sure which is the best practice to use?. Can you please suggest on which option too choose and if there's any differences.
Thanks in advance.
Discussion posts and replies are publicly visible
In all of the cases you would need instance Id of the process you want to terminate. Here is the pros and cons of each approach:
1. Cancel Process: The decision logic to cancel a process instance lies within the parent process. Child process status is changed to Cancel.
PROS:
CONS:
2. Send/Receive Message: The decision logic can be distributed between parent and child process instances. Process status is changed to completed
Hope this helps to decide which approach you want to take as per requirement.