Details
-
Bug
-
Resolution: Done
-
Major
-
jBPM 6.1.0.Final
-
None
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())) {
...