Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2636

ISO8601 Timer expression not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 7.5.1.GA
    • jBPM Core, jBPM Designer
    • None
      1. Create a simple process that includes a Timer event and set the timer setting property to use an ISO8601 expression like R/PT3M.
      2. Try to execute the process creating a new instance of it.

    Description

      When using a Timer (boundary event node) if you set an ISO8601 timer expression you get a parser error during runtime.

      ...
      Caused by: java.lang.RuntimeException: Error parsing time string: [ R/PT3M ] 
      	at org.drools.core.time.TimeUtils.parseTimeString(TimeUtils.java:132)
      	at org.jbpm.process.core.timer.DateTimeUtils.parseRepeatableDateTime(DateTimeUtils.java:146)
      	at org.jbpm.workflow.instance.node.StateBasedNodeInstance.configureTimerInstance(StateBasedNodeInstance.java:214)
      	at org.jbpm.workflow.instance.node.TimerNodeInstance.createTimerInstance(TimerNodeInstance.java:85)
      	at org.jbpm.workflow.instance.node.TimerNodeInstance.internalTrigger(TimerNodeInstance.java:58)
      	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:197)
      	... 158 more
      ...
      

      Looking at the exception error log you can see that jBPM uses a TimerUtils class from Drools Core. It seems the current implementation of TimerUtils [1] from Drools core is ignoring ISO8601 expressions.

      [1] https://github.com/kiegroup/drools/blob/7.26.x/drools-core/src/main/java/org/drools/core/time/TimeUtils.java#L44

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            rafael.soares Rafael Soares
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: