[jboss-user] [jBPM] - Not terminating process if timer

Antoine T do-not-reply at jboss.com
Thu Mar 28 05:11:47 EDT 2013


Antoine T [https://community.jboss.org/people/atran] created the discussion

"Not terminating process if timer"

To view the discussion, visit: https://community.jboss.org/message/805231#805231

--------------------------------------------------------------
Hi,

I am using Eclipse and jBPM 5.4.0 workflow engine. Whenever I use a timer as simple as below (FigB), and I launch it in Eclipse, the +Terminate End Event+ doesn't end the Java process (FigA). However, if I delete the timer, the process ends. It seems this is a bug? Has anyone encountered the same issue? Thank you.

Antoine

FigA: The process doesn't end
 https://community.jboss.org/servlet/JiveServlet/showImage/2-805231-20524/SimpleTimer.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-805231-20524/450-91/SimpleTimer.png 

FigB: Simple Timer:
 https://community.jboss.org/servlet/JiveServlet/showImage/2-805231-20523/SimpleTimer.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-805231-20523/255-69/SimpleTimer.png 

|| *Header 1* ||
| <?xml version="1.0" encoding="UTF-8"?> 
<definitions id="Definition"
             targetNamespace="http://www.jboss.org/drools"
             typeLanguage="http://www.java.com/javaTypes"
             expressionLanguage="http://www.mvel.org/2.0"
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
             xmlns:g="http://www.jboss.org/drools/flow/gpd"
             xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
             xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
             xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
             xmlns:tns="http://www.jboss.org/drools">

  <process processType="Private" isExecutable="true" id="com.sample.bpmn" name="Sample Process" tns:packageName="defaultPackage" >

    <!-- nodes -->
    <startEvent id="_1" name="StartProcess" />
    <intermediateCatchEvent id="_2" name="Timer" >
      <timerEventDefinition>
        <timeDuration xsi:type="tFormalExpression">1000</timeDuration>
      </timerEventDefinition>
    </intermediateCatchEvent>
    <endEvent id="_3" name="End" >
        <terminateEventDefinition />
    </endEvent>

    <!-- connections -->
    <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
    <sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" />

  </process>

  <bpmndi:BPMNDiagram>
    <bpmndi:BPMNPlane bpmnElement="com.sample.bpmn" >
      <bpmndi:BPMNShape bpmnElement="_1" >
        <dc:Bounds x="42" y="42" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2" >
        <dc:Bounds x="135" y="42" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_3" >
        <dc:Bounds x="224" y="43" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="_1-_2" >
        <di:waypoint x="66" y="66" />
        <di:waypoint x="159" y="66" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-_3" >
        <di:waypoint x="159" y="66" />
        <di:waypoint x="248" y="67" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>

</definitions> |
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/805231#805231]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130328/b50d93df/attachment-0001.html 


More information about the jboss-user mailing list