AnsweredAssumed Answered

Simple flow with Timer not repeating

Question asked by castyn on Sep 16, 2015
Latest reply on Sep 24, 2015 by martin.grofcik
Hello all, I have a fairly simply process setup that gets an object, performs some logic via JavaDelegate tasks, and repeats if the process did not go through properly.  There is a 10 second wait as well. 

What I am observing happening is that after the notifySupervisorTask, the process exists and does not go through the timer or reenter the first task again.  I am not sure what I am doing wrong.  When deploying I am also seeing a warning

254 - org.activiti.engine - 5.17.0 | Error while generating process diagram, image will not be stored in repository
java.lang.IllegalArgumentException: input == null!
        at javax.imageio.ImageIO.read(ImageIO.java:1348)[:1.7.0_80]…


Not sure if it is related or not


<?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">
  <process id="assignServiceRequest" name="Assign Service Request" isExecutable="true">
    <startEvent id="start">
      <documentation>The start of this process is a task looking to be assigned</documentation>
    </startEvent>
    <serviceTask id="attendantDetailsTask" name="Check Attendents Details" activiti:class="com.vizexplorer.techviz.tasks.AttendantDetailsTask"></serviceTask>
    <sequenceFlow id="flow1" sourceRef="start" targetRef="attendantDetailsTask"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow2" sourceRef="attendantDetailsTask" targetRef="exclusivegateway1"></sequenceFlow>
    <serviceTask id="assignTaskToUserTask" name="Assign Task to Attendant" activiti:class="com.vizexplorer.techviz.tasks.AttendantAssignTask"></serviceTask>
    <sequenceFlow id="flow3" name="Attendants available in section" sourceRef="exclusivegateway1" targetRef="assignTaskToUserTask">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${attendantAvailable == true}]]></conditionExpression>
    </sequenceFlow>
    <serviceTask id="notifySupervisorTask" name="Notify Supervisor" activiti:class="com.vizexplorer.techviz.tasks.NotifySupervisorTask"></serviceTask>
    <sequenceFlow id="flow4" name="No attendants available" sourceRef="exclusivegateway1" targetRef="notifySupervisorTask">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${attendantAvailable == false}]]></conditionExpression>
    </sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow6" sourceRef="assignTaskToUserTask" targetRef="endevent1"></sequenceFlow>
    <intermediateCatchEvent id="timerintermediatecatchevent1" name="TimerCatchEvent">
      <timerEventDefinition>
        <timeDuration>PT10S</timeDuration>
      </timerEventDefinition>
    </intermediateCatchEvent>
    <sequenceFlow id="flow7" sourceRef="notifySupervisorTask" targetRef="timerintermediatecatchevent1"></sequenceFlow>
    <sequenceFlow id="flow8" sourceRef="timerintermediatecatchevent1" targetRef="attendantDetailsTask"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_assignServiceRequest">
    <bpmndi:BPMNPlane bpmnElement="assignServiceRequest" id="BPMNPlane_assignServiceRequest">
      <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
        <omgdc:Bounds height="35.0" width="35.0" x="50.0" y="115.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="attendantDetailsTask" id="BPMNShape_attendantDetailsTask">
        <omgdc:Bounds height="65.0" width="105.0" x="160.0" y="100.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="340.0" y="112.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="assignTaskToUserTask" id="BPMNShape_assignTaskToUserTask">
        <omgdc:Bounds height="61.0" width="105.0" x="520.0" y="102.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="notifySupervisorTask" id="BPMNShape_notifySupervisorTask">
        <omgdc:Bounds height="55.0" width="105.0" x="308.0" y="240.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="750.0" y="115.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="timerintermediatecatchevent1" id="BPMNShape_timerintermediatecatchevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="195.0" y="250.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="85.0" y="132.0"></omgdi:waypoint>
        <omgdi:waypoint x="160.0" y="132.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="265.0" y="132.0"></omgdi:waypoint>
        <omgdi:waypoint x="340.0" y="132.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="380.0" y="132.0"></omgdi:waypoint>
        <omgdi:waypoint x="520.0" y="132.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="389.0" y="100.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
        <omgdi:waypoint x="360.0" y="152.0"></omgdi:waypoint>
        <omgdi:waypoint x="360.0" y="240.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="369.0" y="169.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
        <omgdi:waypoint x="625.0" y="132.0"></omgdi:waypoint>
        <omgdi:waypoint x="750.0" y="132.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
        <omgdi:waypoint x="308.0" y="267.0"></omgdi:waypoint>
        <omgdi:waypoint x="230.0" y="267.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
        <omgdi:waypoint x="212.0" y="250.0"></omgdi:waypoint>
        <omgdi:waypoint x="212.0" y="227.0"></omgdi:waypoint>
        <omgdi:waypoint x="212.0" y="165.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>


Outcomes