Workflow wait for a particular time

majumderarka26
Kilo Contributor

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

5 REPLIES 5

zheil
Mega Expert

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


ben_hollifield
Tera Guru

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.


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);