4 Replies Latest reply on Dec 21, 2010 11:23 AM by Kris Verlaenen

    How to set timeCycle on boundryEvent at runtime

    onkar ruikar Newbie

      I am using jbpm5 and trying to set variable time in bpmn file on boundary event. Pleae refer following code:

       

      <boundaryEvent id="_11" name="TimerEvent" attachedToRef="_4" cancelActivity="false" >
            <timerEventDefinition>
              <timeCycle xs:type="tFormalExpression">#{time}</timeCycle>
            </timerEventDefinition>
      </boundaryEvent>

       

      But this gives following exception

      org.drools.RuntimeDroolsException: Error parsing time string: [ #{time} ]
          at org.drools.time.TimeUtils.parseTimeString(TimeUtils.java:132)

       

      Is there any way I can set variable time on boundry event?