How to Stop Timer in Workflow if Catalog task is completed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 03:35 AM
Hi All,
I am stuck at one point and need your help. I have created a workflow where 1 Catalog Task on completion is starting a Timer & Creating 2nd Catalog Task in Parallel. Now my requirement is that as soon as the 2nd Catalog Task is completed, Timer should stop/cancel and the workflow should proceed as per the conditions written after Task completion.
But what I have observed is the entire workflow is paused until Timer is completed and the other part of workflow is not running at all.
Please help on what can be done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 03:51 AM - edited 04-21-2024 03:53 AM
Hi @ankita1506 ,
https://www.servicenow.com/community/developer-forum/how-to-cancel-a-workflow-timer/m-p/1415782
https://www.servicenow.com/community/itsm-forum/how-to-cancel-a-workflow-timer/td-p/369946
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 07:28 AM
Hi Sohail, The suggestion that you suggested is not working as the Wait for condition triggers when RITM is updated but in my case, task is moved to closed complete , nothing is updated in RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 10:00 AM
Hi @ankita1506 ,
What is the use of timer in the flow.Could you explain the use case.
The best approach will be to use wait for condition in flow. As you know wait for condition only works on the record its triggered just make any update on the RITM table.
So you can create a Business rule on task table .On update of task to close complete update RITM work notes to something(or use any other field in your form which you know might be useful to use).So once the workflow detects an update it will check for the wait for condition and the action will be executed
Mark the comment as a correct answer and also helpful if this helps to solve the problem.
Thanks