Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4430

timeDate and delay

    XMLWordPrintable

Details

    • Hide

      you can test the xml file in jbpm-bpmn2/src/test/resources/BPMN2-TimerStartDate.bpmn2

      It will launch the exception showed above

      Show
      you can test the xml file in jbpm-bpmn2/src/test/resources/BPMN2-TimerStartDate.bpmn2 It will launch the exception showed above

    Description

      If I create a startEvent as:

          <startEvent id="_1" name="StartProcess">
            ...
            <timerEventDefinition id="TimerEventDefinition_1">
              <timeDate xsi:type="tFormalExpression" id="_FormalExpression_3">2012-10-02T19:31:10</timeDate>
            </timerEventDefinition>
          </startEvent>
      

      and I start a test, I get this error:

      Caused by: java.lang.IllegalArgumentException: cronExpression cannot be null
      	at org.drools.core.time.impl.CronExpression.<init>(CronExpression.java:261)
      	at org.drools.core.time.impl.CronExpression.isValidExpression(CronExpression.java:380)
      	at org.jbpm.process.instance.ProcessRuntimeImpl$RegisterStartTimerAction.initTimer(ProcessRuntimeImpl.java:523)
      	at org.jbpm.process.instance.ProcessRuntimeImpl$RegisterStartTimerAction.execute(ProcessRuntimeImpl.java:498)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.executeQueuedActions(StatefulKnowledgeSessionImpl.java:1515)
      	... 53 more
      

      analyzing the code I see that a 'delay' property is required in the timeDate attribute. I think it is a bug

      org.jbpm.process.instance.ProcessRuntimeImpl.java:523 :

       ....
      if (CronExpression.isValidExpression(startNode.getTimer().getDelay())) {
        ...
      

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            luca.stancapiano@vige.it Luca Stancapiano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: