- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2016 03:29 PM
I have a workflow that calls a few child workflows for approvals. In the approval workflow, I have added a condition to follow a "cancelled" output, but my workflow is not following it.
(I had previously had an if statement for counts.total == counts.cancelled, but that wasn't working, thus adding the counts.requested == 0).
Another workflow is running on the approvals table and it is successfully moving the approval to "cancelled", but the requested item workflow is failing to move forward along the cancelled path.
Approval controls workflow:
Example of failure:
This shows that my approval is cancelled:
This shows that the requested item workflow is still pending approval:
Solved! Go to Solution.
- Labels:
-
Service Catalog
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2016 12:24 AM
Hello Kristen, I am suspecting you are doing something outside the standard behavior and may be running into what's documented at Custom Transitions for the Approval - User Activity - ServiceNow Wiki
The document says
"In the baseline system, ServiceNow provides a business rule called SNC - Run parent workflows (Approval) that triggers the workflow associated with the task of the current approval when the following conditions occur:
current.state.changesTo('approved') || current.state.changesTo('rejected') || current.operation() == 'delete'"
So, I think you need to change this BR and add an additional condition for cancelled.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2016 07:08 PM
Try to update the record and see if it moves the workflow forward. Or else try creating a new request item and see if you can find the log statements in the log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2016 07:30 PM
Hi Abhinay,
Thanks for the tip! when I manually update the requested item, it pushes the workflow. So, I tried adding an update to the requested item in the workflow that cancels the approval, but that still didn't trigger the requested item workflow to move forward.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2016 12:24 AM
Hello Kristen, I am suspecting you are doing something outside the standard behavior and may be running into what's documented at Custom Transitions for the Approval - User Activity - ServiceNow Wiki
The document says
"In the baseline system, ServiceNow provides a business rule called SNC - Run parent workflows (Approval) that triggers the workflow associated with the task of the current approval when the following conditions occur:
current.state.changesTo('approved') || current.state.changesTo('rejected') || current.operation() == 'delete'"
So, I think you need to change this BR and add an additional condition for cancelled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2016 06:15 AM
Thank you Siva! This did the trick. I really appreciate the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 01:02 PM
Hi Kristen,
I am working on a similar issue with workflow not progressing when the Approval Activity is Cancelled and wanted to check if you could provide any insight in this issue.
Here is the link to my post View the full discussion
Thank you.