AnsweredAssumed Answered

intermediate-event throw/catch-mechanism

Question asked by cavdar on Feb 29, 2016
Latest reply on Mar 2, 2016 by cavdar
Hi,
I am trying to understand the intermediate-event throw/catch-mechanism. Belov is my process definition. Why the task "UserTask #2" is never reached?
Thanks for any help.

<?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:xsd="http://www.w3.org/2001/XMLSchema" 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">
  <signal id="testSignal1" name="testSignal1" activiti:scope="global"></signal>
  <signal id="testSignal2" name="testSignal2" activiti:scope="global"></signal>
  <signal id="testSignal3" name="testSignal3" activiti:scope="global"></signal>
  <process id="JUNITTest" name="JUNITTest" isExecutable="true">
    <startEvent id="startEvent" name="Start" activiti:initiator="initiator"></startEvent>
    <sequenceFlow id="flowToTaskCopyRefFilesToSoll" sourceRef="startEvent" targetRef="XXX-JUNITUserTask1"></sequenceFlow>
    <userTask id="XXX-JUNITUserTask2" name="UserTask #2" activiti:candidateGroups="cte-tester"></userTask>
    <userTask id="XXX-JUNITUserTask1" name="UserTask #1" activiti:candidateGroups="cte-tester">
      <extensionElements>
        <activiti:formProperty id="signalType" name="Signal Type" type="enum" variable="signalType" required="true">
          <activiti:value id="signalType0" name="Signal Type 0"></activiti:value>
          <activiti:value id="signalType1" name="Signal Type 1"></activiti:value>
          <activiti:value id="signalType2" name="Signal Type 2"></activiti:value>
          <activiti:value id="signalType3" name="Signal Type 3"></activiti:value>
        </activiti:formProperty>
      </extensionElements>
    </userTask>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow1" sourceRef="XXX-JUNITUserTask2" targetRef="endevent1"></sequenceFlow>
    <intermediateThrowEvent id="signalintermediatethrowevent1" name="SignalThrowEvent">
      <signalEventDefinition signalRef="testSignal1"></signalEventDefinition>
    </intermediateThrowEvent>
    <sequenceFlow id="flow2" sourceRef="XXX-JUNITUserTask1" targetRef="signalintermediatethrowevent1"></sequenceFlow>
    <intermediateCatchEvent id="signalintermediatecatchevent1" name="SignalCatchEvent">
      <signalEventDefinition signalRef="testSignal1"></signalEventDefinition>
    </intermediateCatchEvent>
    <sequenceFlow id="flow3" sourceRef="signalintermediatecatchevent1" targetRef="XXX-JUNITUserTask2"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_JUNITTest">
    <bpmndi:BPMNPlane bpmnElement="JUNITTest" id="BPMNPlane_JUNITTest">
      <bpmndi:BPMNShape bpmnElement="startEvent" id="BPMNShape_startEvent">
        <omgdc:Bounds height="35.0" width="35.0" x="20.0" y="163.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="XXX-JUNITUserTask2" id="BPMNShape_XXX-JUNITUserTask2">
        <omgdc:Bounds height="55.0" width="105.0" x="440.0" y="153.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="XXX-JUNITUserTask1" id="BPMNShape_XXX-JUNITUserTask1">
        <omgdc:Bounds height="55.0" width="105.0" x="130.0" y="153.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="600.0" y="163.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="signalintermediatethrowevent1" id="BPMNShape_signalintermediatethrowevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="280.0" y="163.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="signalintermediatecatchevent1" id="BPMNShape_signalintermediatecatchevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="360.0" y="163.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flowToTaskCopyRefFilesToSoll" id="BPMNEdge_flowToTaskCopyRefFilesToSoll">
        <omgdi:waypoint x="55.0" y="180.0"></omgdi:waypoint>
        <omgdi:waypoint x="130.0" y="180.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="545.0" y="180.0"></omgdi:waypoint>
        <omgdi:waypoint x="600.0" y="180.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="235.0" y="180.0"></omgdi:waypoint>
        <omgdi:waypoint x="280.0" y="180.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="395.0" y="180.0"></omgdi:waypoint>
        <omgdi:waypoint x="440.0" y="180.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

Outcomes