1 <?xml version="1.0" encoding="UTF-8"?>
 
   2 <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_12gnsyw" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1">
 
   3   <bpmn:process id="MonitorSol003AdapterCreateJob" name="MonitorSol003AdapterCreateJob" isExecutable="true">
 
   4     <bpmn:startEvent id="StartEvent_1">
 
   5       <bpmn:outgoing>SequenceFlow_1x3tbl0</bpmn:outgoing>
 
   7     <bpmn:endEvent id="EndEvent_0rf1gde">
 
   8       <bpmn:incoming>SequenceFlow_1543qy7</bpmn:incoming>
 
  10     <bpmn:subProcess id="SubProcess_19j0v63">
 
  11       <bpmn:incoming>SequenceFlow_1x3tbl0</bpmn:incoming>
 
  12       <bpmn:outgoing>SequenceFlow_1v4yr3f</bpmn:outgoing>
 
  13       <bpmn:startEvent id="StartEvent_01r97z2">
 
  14         <bpmn:outgoing>SequenceFlow_0s1plu9</bpmn:outgoing>
 
  16       <bpmn:exclusiveGateway id="ExclusiveGateway_1hkl6yy" default="SequenceFlow_1vmxw9g">
 
  17         <bpmn:incoming>SequenceFlow_153a3kp</bpmn:incoming>
 
  18         <bpmn:outgoing>SequenceFlow_1vmxw9g</bpmn:outgoing>
 
  19         <bpmn:outgoing>SequenceFlow_0is7myf</bpmn:outgoing>
 
  20       </bpmn:exclusiveGateway>
 
  21       <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_1besn3n" name="Wait between checks" camunda:asyncAfter="true">
 
  22         <bpmn:incoming>SequenceFlow_1vmxw9g</bpmn:incoming>
 
  23         <bpmn:outgoing>SequenceFlow_0etw572</bpmn:outgoing>
 
  24         <bpmn:timerEventDefinition id="TimerEventDefinition_0qgh11t">
 
  25           <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT15S</bpmn:timeDuration>
 
  26         </bpmn:timerEventDefinition>
 
  27       </bpmn:intermediateCatchEvent>
 
  28       <bpmn:endEvent id="EndEvent_1ohsce9">
 
  29         <bpmn:incoming>SequenceFlow_0is7myf</bpmn:incoming>
 
  31       <bpmn:sequenceFlow id="SequenceFlow_0s1plu9" sourceRef="StartEvent_01r97z2" targetRef="ServiceTask_17jlnng" />
 
  32       <bpmn:sequenceFlow id="SequenceFlow_0etw572" sourceRef="IntermediateCatchEvent_1besn3n" targetRef="ServiceTask_17jlnng" />
 
  33       <bpmn:serviceTask id="ServiceTask_17jlnng" name="
Get Current Operation Status
" camunda:asyncAfter="true" camunda:expression="${MonitorSol003AdapterCreateJobTask.getCurrentOperationStatus(execution)}">
 
  34         <bpmn:incoming>SequenceFlow_0etw572</bpmn:incoming>
 
  35         <bpmn:incoming>SequenceFlow_0s1plu9</bpmn:incoming>
 
  36         <bpmn:outgoing>SequenceFlow_153a3kp</bpmn:outgoing>
 
  38       <bpmn:sequenceFlow id="SequenceFlow_1vmxw9g" sourceRef="ExclusiveGateway_1hkl6yy" targetRef="IntermediateCatchEvent_1besn3n" />
 
  39       <bpmn:sequenceFlow id="SequenceFlow_0is7myf" sourceRef="ExclusiveGateway_1hkl6yy" targetRef="EndEvent_1ohsce9">
 
  40         <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${MonitorSol003AdapterCreateJobTask.hasOperationFinished(execution)}</bpmn:conditionExpression>
 
  42       <bpmn:sequenceFlow id="SequenceFlow_153a3kp" sourceRef="ServiceTask_17jlnng" targetRef="ExclusiveGateway_1hkl6yy" />
 
  44     <bpmn:endEvent id="EndEvent_1w3t3t0" name="Timeout Exception">
 
  45       <bpmn:incoming>SequenceFlow_0bcgtzj</bpmn:incoming>
 
  46       <bpmn:terminateEventDefinition id="TerminateEventDefinition_0fjecl3" />
 
  48     <bpmn:boundaryEvent id="BoundaryEvent_0xiabzp" name="Overall Wait" attachedToRef="SubProcess_19j0v63">
 
  49       <bpmn:outgoing>SequenceFlow_1i1o9sh</bpmn:outgoing>
 
  50       <bpmn:timerEventDefinition id="TimerEventDefinition_10kqw61">
 
  51         <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT3H</bpmn:timeDuration>
 
  52       </bpmn:timerEventDefinition>
 
  54     <bpmn:sequenceFlow id="SequenceFlow_1v4yr3f" sourceRef="SubProcess_19j0v63" targetRef="ServiceTask_1gms128" />
 
  55     <bpmn:sequenceFlow id="SequenceFlow_1i1o9sh" sourceRef="BoundaryEvent_0xiabzp" targetRef="ServiceTask_1s87b92" />
 
  56     <bpmn:sequenceFlow id="SequenceFlow_1x3tbl0" sourceRef="StartEvent_1" targetRef="SubProcess_19j0v63" />
 
  57     <bpmn:serviceTask id="ServiceTask_1s87b92" name="
Time Out Log Failure
" camunda:asyncAfter="true" camunda:expression="${MonitorSol003AdapterCreateJobTask.timeOutLogFailue(execution)}">
 
  58       <bpmn:incoming>SequenceFlow_1i1o9sh</bpmn:incoming>
 
  59       <bpmn:outgoing>SequenceFlow_0bcgtzj</bpmn:outgoing>
 
  61     <bpmn:sequenceFlow id="SequenceFlow_0bcgtzj" sourceRef="ServiceTask_1s87b92" targetRef="EndEvent_1w3t3t0" />
 
  62     <bpmn:serviceTask id="ServiceTask_1gms128" name="
Check if operation was successful
" camunda:asyncAfter="true" camunda:expression="${MonitorSol003AdapterCreateJobTask.checkIfOperationWasSuccessful(execution)}">
 
  63       <bpmn:incoming>SequenceFlow_1v4yr3f</bpmn:incoming>
 
  64       <bpmn:outgoing>SequenceFlow_1543qy7</bpmn:outgoing>
 
  66     <bpmn:sequenceFlow id="SequenceFlow_1543qy7" sourceRef="ServiceTask_1gms128" targetRef="EndEvent_0rf1gde" />
 
  68   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
 
  69     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="MonitorSol003AdapterCreateJob">
 
  70       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
 
  71         <dc:Bounds x="161" y="330" width="36" height="36" />
 
  73       <bpmndi:BPMNShape id="EndEvent_0rf1gde_di" bpmnElement="EndEvent_0rf1gde">
 
  74         <dc:Bounds x="1102" y="100" width="36" height="36" />
 
  76       <bpmndi:BPMNShape id="SubProcess_19j0v63_di" bpmnElement="SubProcess_19j0v63" isExpanded="true">
 
  77         <dc:Bounds x="301" y="248" width="523" height="200" />
 
  79       <bpmndi:BPMNShape id="EndEvent_1w3t3t0_di" bpmnElement="EndEvent_1w3t3t0">
 
  80         <dc:Bounds x="1102" y="322" width="36" height="36" />
 
  82           <dc:Bounds x="1095" y="282" width="49" height="27" />
 
  85       <bpmndi:BPMNShape id="BoundaryEvent_0xiabzp_di" bpmnElement="BoundaryEvent_0xiabzp">
 
  86         <dc:Bounds x="806" y="322" width="36" height="36" />
 
  88           <dc:Bounds x="794" y="361" width="61" height="14" />
 
  91       <bpmndi:BPMNEdge id="SequenceFlow_1v4yr3f_di" bpmnElement="SequenceFlow_1v4yr3f">
 
  92         <di:waypoint x="563" y="248" />
 
  93         <di:waypoint x="563" y="118" />
 
  94         <di:waypoint x="923" y="118" />
 
  96       <bpmndi:BPMNEdge id="SequenceFlow_1i1o9sh_di" bpmnElement="SequenceFlow_1i1o9sh">
 
  97         <di:waypoint x="842" y="340" />
 
  98         <di:waypoint x="923" y="340" />
 
 100       <bpmndi:BPMNShape id="StartEvent_01r97z2_di" bpmnElement="StartEvent_01r97z2">
 
 101         <dc:Bounds x="330" y="306" width="36" height="36" />
 
 103       <bpmndi:BPMNShape id="ExclusiveGateway_1hkl6yy_di" bpmnElement="ExclusiveGateway_1hkl6yy" isMarkerVisible="true">
 
 104         <dc:Bounds x="609" y="299" width="50" height="50" />
 
 106       <bpmndi:BPMNShape id="IntermediateCatchEvent_1besn3n_di" bpmnElement="IntermediateCatchEvent_1besn3n">
 
 107         <dc:Bounds x="550" y="378" width="36" height="36" />
 
 109           <dc:Bounds x="537" y="421" width="66" height="27" />
 
 112       <bpmndi:BPMNShape id="EndEvent_1ohsce9_di" bpmnElement="EndEvent_1ohsce9">
 
 113         <dc:Bounds x="722" y="306" width="36" height="36" />
 
 115       <bpmndi:BPMNEdge id="SequenceFlow_1x3tbl0_di" bpmnElement="SequenceFlow_1x3tbl0">
 
 116         <di:waypoint x="197" y="348" />
 
 117         <di:waypoint x="301" y="348" />
 
 119       <bpmndi:BPMNShape id="ServiceTask_17jlnng_di" bpmnElement="ServiceTask_17jlnng">
 
 120         <dc:Bounds x="425" y="284" width="100" height="80" />
 
 122       <bpmndi:BPMNEdge id="SequenceFlow_0s1plu9_di" bpmnElement="SequenceFlow_0s1plu9">
 
 123         <di:waypoint x="366" y="324" />
 
 124         <di:waypoint x="425" y="324" />
 
 126       <bpmndi:BPMNEdge id="SequenceFlow_0etw572_di" bpmnElement="SequenceFlow_0etw572">
 
 127         <di:waypoint x="550" y="396" />
 
 128         <di:waypoint x="486" y="396" />
 
 129         <di:waypoint x="486" y="367" />
 
 131       <bpmndi:BPMNEdge id="SequenceFlow_1vmxw9g_di" bpmnElement="SequenceFlow_1vmxw9g">
 
 132         <di:waypoint x="634" y="349" />
 
 133         <di:waypoint x="634" y="396" />
 
 134         <di:waypoint x="586" y="396" />
 
 136       <bpmndi:BPMNEdge id="SequenceFlow_0is7myf_di" bpmnElement="SequenceFlow_0is7myf">
 
 137         <di:waypoint x="659" y="324" />
 
 138         <di:waypoint x="722" y="324" />
 
 140       <bpmndi:BPMNEdge id="SequenceFlow_153a3kp_di" bpmnElement="SequenceFlow_153a3kp">
 
 141         <di:waypoint x="525" y="324" />
 
 142         <di:waypoint x="609" y="324" />
 
 144       <bpmndi:BPMNShape id="ServiceTask_1s87b92_di" bpmnElement="ServiceTask_1s87b92">
 
 145         <dc:Bounds x="923" y="300" width="100" height="80" />
 
 147       <bpmndi:BPMNEdge id="SequenceFlow_0bcgtzj_di" bpmnElement="SequenceFlow_0bcgtzj">
 
 148         <di:waypoint x="1023" y="340" />
 
 149         <di:waypoint x="1102" y="340" />
 
 151       <bpmndi:BPMNShape id="ServiceTask_1gms128_di" bpmnElement="ServiceTask_1gms128">
 
 152         <dc:Bounds x="923" y="78" width="100" height="80" />
 
 154       <bpmndi:BPMNEdge id="SequenceFlow_1543qy7_di" bpmnElement="SequenceFlow_1543qy7">
 
 155         <di:waypoint x="1023" y="118" />
 
 156         <di:waypoint x="1102" y="118" />
 
 159   </bpmndi:BPMNDiagram>