Script wait for condition (Field date/time = current date/time

Brian Lancaster
Tera Sage

I have a wait for condition running in my workflow.  I'm trying to get it to run based on a field (not a variable) when the filed u_start_date is equal to the current date time.  How can I achieve this?  Below if my current code.

var answer;
answer = current.u_start_date == gs.nowDateTime();

Note that my system property glide.sys.default.tz is set to US/Eastern which is what all users are set to as nobody is in a different time zone.

1 ACCEPTED SOLUTION

Brian Lancaster
Tera Sage

Figured it out.  If I switch to a timer activity I would use set time based on "A date/time or duration filed" then I just selected by u_start_date filed.  No script needed.

View solution in original post

1 REPLY 1

Brian Lancaster
Tera Sage

Figured it out.  If I switch to a timer activity I would use set time based on "A date/time or duration filed" then I just selected by u_start_date filed.  No script needed.