Workflow wait for a particular time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014 03:42 AM
Hi,
I have got a catalog item which have a due date field which is 72 hours from now.
So when the item is ordered, a catalog task should get generated and after closing the task another task should get assigned after 72 hours which will be calculated from the time it is submitted.
Till creating of the first catalog task i have done, but i am facing an issue as of how i can make the workflow wait till the time mentioned in the due date field.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014 03:49 AM
Check this Timer Activities - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014 05:51 AM
Hi,
Actually my requirement is a little bit different...I want the time to calculate from the time in the due_date field which is not possible with a timer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2014 06:26 AM
Hi Arkadyuti,
Which version of SN are you currently using? At least with Calgary and beyond, you should be able to run a workflow Timer (like Zalan recommended) using a date/time field (like Due Date) as the basis. You can also use terms like "Some time before" and "Some time after" if, for instance, you need to wait until 72 hours after the 'Due Date' date/time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2014 07:25 AM
Hi Ben,
Thanx for the info...
However, i have solved the issue in a different way...
In the timer, there is an option to write a script and the answer of the script will make the timer wait for that particular seconds...
So what i did is i tried to get the difference between the current date/time and the date/time mentioned in the due_date field...
The script what i used is
var answer = gs.dateDiff(gs.nowDateTime(),current.variables.due_date.getDisplayValue(),true);