Workflow timer is getting cancelled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2020 10:00 AM
Hi,
For some reason, the attached timer workflow is getting canceled. What is the best way to fix this workflow?
Steps for the workflow is as below
1. Get the type of request - This is from the variable field of the requested item and it should update the description field
2. Set the approval group. (Timer is set to wait for the approval group to be set before the notification is send. I don't know what is the correct way to do this)
3. Send email notification once the approval is set using the Run script
4. Update approval status based on the approval reply based on the email
5. Close the requested item and request.
- Labels:
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2020 10:09 AM
Hi Angel,
As you see in the screenshot there two execution paths that are connected to 'Wait for approval status' activity. In your case one path executed successfully (look at activities in blue till 'End'), as soon as workflow reaches to End all other activities will get cancelled.
If you want to wait for execution all paths then use join activity in your workflow before 'Wait for approval status' .Check below link for more info on Join activity
https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/workflow-activities/reference/r_JoinActivity.html
If my answer has helped in any way, kindly mark it as helpful/correct as applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2020 10:52 AM
Hi Ashok,
Thank you! I added Join activity before the Wait for Approval status but the problem still exists. I need to set the approval group first, then send the notification out to the approvers in that group based on the Run Script. In my case neither the approvers are set nor the notification is sent out. It is automatically setting to the Approved state and closing the request.