You are viewing limited content. For full access, please sign in.

Question

Question

Cancel within a sub-process?

asked on April 30, 2018

I seem to be having a hard time cancelling within a sub-process. I have one branch of the process that needs to cancel when the throw event occurs:

This should be working, right? I can't use cancel terminate because there is another branch that I need to complete.

Thanks!

0 0

Answer

SELECTED ANSWER
replied on April 30, 2018 Show version history

I'm a little confused on what you're asking. I assume this whole thing is the sub-process you want to cancel if a signal is thrown, but there is another branch in the main process you want to leave active? 

If so, you can go back out to the main process and put a signal catch event on the sub-process as a whole. If the signal is thrown, instead of cancelling each branch inside the sub-process individually, it will cancel them all for you. You can configure an outflow from the sub-process in the case where it's completed, and configure a separate outflow from the signal catch event in the case it's interrupted. 

Assuredly your main process is more complicated than this, but as an example see below. The active branch will stay active no matter what, and the signal event in the main process can interrupt the entire sub-process and the notification will be sent from the main process. 

2 0
replied on May 1, 2018 Show version history

It seems like the catch within the sub-process will only complete the sub process. I can't stop that branch from within the sub-process. Your solution with the catch on the outside of the sub-process is working for me. Thanks!

0 0
replied on May 1, 2018

Your solution was probably working, but once the signal was thrown, all the signal catch events fired, the Approve Cancel Notice email was sent, and then the sub-process did complete. Did you check which end event in the sub-process was hit? Both would show the sub-process as a whole as having been completed. 

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.