0 Replies Latest reply on May 8, 2014 4:50 AM by Tom Grat

    How to use Date in ISO-8601 standard for Timer

    Tom Grat Newbie



      I'm using Eclipse Bpmn2 diagram editor and in properties view for Timer I can set only Duration and Cycle. How I can set date like in documentation (2013-12-24T20:00:00.000+02:00)?

      I tried to set it directly in XML but XMLSchema don't have any additional tag for <bpmn2:timerEventDefinition> outside <bpmn2:timeDuration> and <bpmn2:timeCycle>. If I tried set above date example (#{"2013-12-24T20:00:00.000+02:00"}) into Duration or Cycle I have got error:

      Caused by: org.drools.core.RuntimeDroolsException: Error parsing time string: [ 2013-12-24T20:00:00.000+02:00 ]

        at org.drools.core.time.TimeUtils.parseTimeString(TimeUtils.java:133)


      I have checked source in git drools/drools-core/src/main/java/org/drools/core/time/TimeUtils.java at 6.0.1.Final · droolsjbpm/drools · GitHub and current version use SIMPLE  pattern for regex not ISO8601. Any advice's or examples how to use Date in ISO-8601 standard in Timer?