AnsweredAssumed Answered

How to use Timer start event?

Question asked by hamepal on Jul 1, 2011
Latest reply on Jul 2, 2011 by ronald.van.kuijk
Hi all,
  I tried to use Timer start event in a very basic work flow. But I get error while deploying it using activiti-probe. I have followed the same syntax as given in the user-guide.
Failed to parse cron expression: R4/2011-07-01T11:55/PT01M

My bpmn file is as following.

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="TimerStartProcess" name="TimerStartProcess">
    <documentation>Place documentation for the 'TimerStartProcess' process here.</documentation>
    <startEvent id="startevent1" name="Start"> <timerEventDefinition>
                <timeCycle>R4/2011-07-01T11:55/PT01M</timeCycle>
            </timerEventDefinition></startEvent>
    <scriptTask id="scripttask1" name="Script Task" scriptFormat="groovy">
      <script><![CDATA[print "Script main task.\n"]]></script>
    </scriptTask>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="scripttask1"></sequenceFlow>
    <sequenceFlow id="flow2" name="" sourceRef="scripttask1" targetRef="endevent1"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_TimerStartProcess">
    <bpmndi:BPMNPlane bpmnElement="TimerStartProcess" id="BPMNPlane_TimerStartProcess">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35" width="35" x="212" y="222"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="scripttask1" id="BPMNShape_scripttask1">
        <omgdc:Bounds height="55" width="105" x="400" y="212"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35" width="35" x="650" y="212"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="247" y="239"></omgdi:waypoint>
        <omgdi:waypoint x="400" y="239"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="505" y="239"></omgdi:waypoint>
        <omgdi:waypoint x="650" y="229"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
I have also attached the diagram with this post

am I missing something?
if I am then please provide some working code example
Thanks in advance

Attachments

Outcomes