Timer in workflow based on variable/date does not work.

SNnewbie2
Tera Expert

I added a timer to my workflow to wait until a certain date/hour(variable date called end_of_change in my form) to create the second task. However, once I closed the first task it creates the second one. I want my workflow to wait a determine hour to create the task. I don't see what I am doing wrong.

capture_1.PNG

Script:

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

capture_3.PNG

1 ACCEPTED SOLUTION

I found a solution. We can use a timer in a workflow.


The following script worked:



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



Thanks


View solution in original post

8 REPLIES 8

Thanks SNnewbie

 It's Working.

What to do if the time has to wait till 24 hrs before the end date

Hi Akhila,

 

You may go through below steps:

Timer based on: 'A date/time or duration field'

Field: your_field (end date)

Wait: Some time before

Time Before: mention 24 hrs

 

Thanks,

Thanks SNnewbie,

Working fine for me in Orlando Patch1.