Approval not following cancelled output

kristenankeny
Tera Guru

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.

find_real_file.png

find_real_file.png

find_real_file.png

(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:

find_real_file.png

Example of failure:

        This shows that my approval is cancelled:

        find_real_file.png

        This shows that the requested item workflow is still pending approval:

        find_real_file.png

1 ACCEPTED SOLUTION

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.


View solution in original post

9 REPLIES 9

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.


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.


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.


Thank you Siva! This did the trick. I really appreciate the help!


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.