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

This script works perfectly me for the scenario of waiting until a user-specified date before granting the access,



var answer = gs.dateDiff(gs.nowDateTime(),current.variables.due_date.getDisplayValue(),true);