3 Replies Latest reply on Nov 5, 2009 6:52 PM by rachel.primrose

    Dynamic due date on a Timer

      Is it possible to have a calculated value in the duedate field on a timer?

      e.g.

      <state g="490,1029,131,40" name="Pending">
      <on event="timeout">
       <timer duedate="4 business hours"/>
       <event-listener class="myactionclass">
       <field name="myactionparameter"><string value="hello world"/></field>
       </event-listener>
      </on>
      


      I would want duedate="4 business hours" to be something like duedate=#{MyDateUtil.add(requestedTime,4)}, and requestedTime is a process instance variable that the user has submitted in a form.

      Thanks.