cancel
Showing results for 
Search instead for 
Did you mean: 

Using 2 Date Variables in Flow conditions of Exclusive Gateway

adarshdesai
Champ in-the-making
Champ in-the-making
I have a BPMN with 2 date variables as follows:

Variable 1: actionRequiredTime = "Wed Aug 31 11:17:27 UTC 2016"


Variable 2:
def d = new Date();
execution.setVariable("currentTime", d)


In my flow I use ${currentTime >= actionRequiredTime}

BUT this does not work, I have verified that both time formats are stored as "Wed Aug 31 11:17:27 UTC 2016"

Can someone tell me if 2 date variables can be used in the flow condition? (${currentTime >= actionRequiredTime}) Thanks.

1 REPLY 1

adarshdesai
Champ in-the-making
Champ in-the-making
PLease ignore the above, I had a timer in my BPMN which was causing the issue. Timers are weird, sometimes they work correctly and sometimes they get stuck. FYI - Im a noob