Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
7.5.1.GA
-
None
-
- Create a simple process that includes a Timer event and set the timer setting property to use an ISO8601 expression like R/PT3M.
- 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.