AnsweredAssumed Answered

processInstance variable in boundary timer

Question asked by tgebeyehu on Mar 15, 2016
Latest reply on Mar 18, 2016 by tgebeyehu
Hello everyone,

I create a boundary timer on one of my userTask. and want to set the value of <timeDate> to a process variable that i created in my task listener.


the in the Task listener (which is on create) i set the processVariable   
      ……  //somecode
    delegateTask.getExecution().setVariable ("time_duration", df.format(c.getTime()));

i can see that the the variable is set and the date format format is correct from the listener. but the timer is not getting the value at all.

here are some of the things i tried
1. ${time_duration} on the timer - returns Unknown property used in expression error
2. i use the RuntimeService to set the variable still the timer did not get the variable
3. i test the timer with any other value (by a duration, and also date ) to make sure it is working. and it does work.

so my issue is only when i try to use a processvariable that i set on the Listener. Any help? Thank you in advance