Error notification upon process cancellation

Hello Everyone,

We have a process to cancel all of the active process instances related to a particular work item in an application. We are achieving it with the help of a task report whereby we are passing the list of context process models under that App. Around 90% of our processes are activity chained and the majority of our sub-processes are called synchronously. The issue that we are seeing and haven't been able to figure out, happens intermittently. We receive an error notification (but the process instance doesn't show any error when we open it up) with the following verbiage - 

"Problem: The sub-process started by this activity has been canceled.

Recommended Action: This node cannot complete. Please start the next node if necessary"

The cancellation happens using the 'Cancel Process' smart service which is configured to cancel the child processes first and then the parent process. Any insight or help would be highly appreciated. Thanks so much!

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Lead Developer

    I'm a little fuzzy on the details, but in my experience this happens any time a running process has a subprocess that gets cancelled (like even if you go into the monitor and cancel it by hand).  I've found that this happens every time.  I believe the key reasoning behind this is that under normal circumstances, the parent process of the cancelled process might not necessarily ever proceed forward if the subprocess is cancelled, and they want to warn system admins and prevent permanently running, stalled parent process instances.

    If you absolutely have to use the cancel node, then you can probably just ignore the errors.  I'd suggest though that you look into maybe figuring out a way to terminate the parent process instead of cancelling -- terminating at the parent will also terminate any synchronous subprocesses, and without the error message.

Reply
  • +1
    Certified Lead Developer

    I'm a little fuzzy on the details, but in my experience this happens any time a running process has a subprocess that gets cancelled (like even if you go into the monitor and cancel it by hand).  I've found that this happens every time.  I believe the key reasoning behind this is that under normal circumstances, the parent process of the cancelled process might not necessarily ever proceed forward if the subprocess is cancelled, and they want to warn system admins and prevent permanently running, stalled parent process instances.

    If you absolutely have to use the cancel node, then you can probably just ignore the errors.  I'd suggest though that you look into maybe figuring out a way to terminate the parent process instead of cancelling -- terminating at the parent will also terminate any synchronous subprocesses, and without the error message.

Children