talking to twitter-service
authorDavid Kaufmann <david.kaufmann@student.tuwien.ac.at>
Sat, 24 Nov 2018 05:04:19 +0000 (06:04 +0100)
committerDavid Kaufmann <david.kaufmann@student.tuwien.ac.at>
Sat, 24 Nov 2018 05:04:19 +0000 (06:04 +0100)
camunda-overlay/sentiment-analysis.bpmn

index f5a55e8d6a1e87bebc6ecfd81079dfb6cb3eb0a1..1bdd8d7bdb1d60d15445e5ec0c0854538e05ce5d 100644 (file)
@@ -5,6 +5,12 @@
   </bpmn:collaboration>
   <bpmn:process id="sentiment-analysis" name="Sentiment Analysis" isExecutable="true" camunda:versionTag="0.0.1">
     <bpmn:laneSet id="LaneSet_1u08y0e" />
+    <bpmn:sequenceFlow id="SequenceFlow_0jumhlh" sourceRef="IntermediateThrowEvent_0d8ns1p" targetRef="Task_1n6iu8h" />
+    <bpmn:sequenceFlow id="SequenceFlow_14nqu0e" sourceRef="Task_1n6iu8h" targetRef="Task_1e7059p" />
+    <bpmn:sequenceFlow id="SequenceFlow_0htopx7" sourceRef="SubProcess_1skl2rb" targetRef="IntermediateThrowEvent_0d8ns1p" />
+    <bpmn:sequenceFlow id="SequenceFlow_11xavl5" sourceRef="StartEvent_1t6nxib" targetRef="SubProcess_1skl2rb" />
+    <bpmn:sequenceFlow id="SequenceFlow_0tu3w40" sourceRef="IntermediateThrowEvent_1u3snd0" targetRef="EndEvent_0bmuv13" />
+    <bpmn:sequenceFlow id="SequenceFlow_0jebdb9" sourceRef="Task_1e7059p" targetRef="IntermediateThrowEvent_1u3snd0" />
     <bpmn:endEvent id="EndEvent_0bmuv13">
       <bpmn:incoming>SequenceFlow_0tu3w40</bpmn:incoming>
     </bpmn:endEvent>
       <bpmn:incoming>SequenceFlow_0jebdb9</bpmn:incoming>
       <bpmn:outgoing>SequenceFlow_0tu3w40</bpmn:outgoing>
       <bpmn:timerEventDefinition>
-        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
+        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5S</bpmn:timeDuration>
       </bpmn:timerEventDefinition>
     </bpmn:intermediateCatchEvent>
     <bpmn:userTask id="Task_1e7059p" name="download pdf" camunda:formKey="embedded:deployment:download-pdf.html">
-      <bpmn:incoming>SequenceFlow_0ez6lnk</bpmn:incoming>
+      <bpmn:incoming>SequenceFlow_14nqu0e</bpmn:incoming>
       <bpmn:outgoing>SequenceFlow_0jebdb9</bpmn:outgoing>
     </bpmn:userTask>
-    <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1rxh4ec">
-      <bpmn:incoming>SequenceFlow_03ohp0o</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_12s5p9s</bpmn:outgoing>
-      <bpmn:timerEventDefinition>
-        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
-      </bpmn:timerEventDefinition>
-    </bpmn:intermediateCatchEvent>
-    <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0zbs0zv">
-      <bpmn:incoming>SequenceFlow_1gdqfur</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_1inwzje</bpmn:outgoing>
-      <bpmn:timerEventDefinition>
-        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
-      </bpmn:timerEventDefinition>
-    </bpmn:intermediateCatchEvent>
     <bpmn:startEvent id="StartEvent_1t6nxib" camunda:formKey="embedded:deployment:input-terms.html">
       <bpmn:outgoing>SequenceFlow_11xavl5</bpmn:outgoing>
     </bpmn:startEvent>
-    <bpmn:task id="Task_1n6iu8h" name="Report Service">
-      <bpmn:incoming>SequenceFlow_12s5p9s</bpmn:incoming>
-    </bpmn:task>
-    <bpmn:task id="Task_1rt5mbt" name="Twitter Service">
-      <bpmn:incoming>SequenceFlow_1inwzje</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0h1h7gs</bpmn:outgoing>
-    </bpmn:task>
-    <bpmn:task id="Task_1cfglzc" name="Analysis Service">
-      <bpmn:incoming>SequenceFlow_0fct5f2</bpmn:incoming>
-    </bpmn:task>
-    <bpmn:scriptTask id="Task_1tosag4" name="Generate Report">
-      <bpmn:incoming>SequenceFlow_0ra8hjs</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0ez6lnk</bpmn:outgoing>
-      <bpmn:outgoing>SequenceFlow_03ohp0o</bpmn:outgoing>
-      <bpmn:script>""</bpmn:script>
-    </bpmn:scriptTask>
-    <bpmn:scriptTask id="Task_1slpwnp" name="forward tweets to analyzer">
-      <bpmn:incoming>SequenceFlow_07bm292</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0bzf3di</bpmn:outgoing>
-      <bpmn:script>""</bpmn:script>
-    </bpmn:scriptTask>
-    <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_1h9izac">
-      <bpmn:incoming>SequenceFlow_0h1h7gs</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_07bm292</bpmn:outgoing>
-      <bpmn:timerEventDefinition id="TimerEventDefinition_0i6ti1o">
-        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
-      </bpmn:timerEventDefinition>
-    </bpmn:intermediateCatchEvent>
-    <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1pwlz5c">
-      <bpmn:incoming>SequenceFlow_1gbx7mw</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0yqo6md</bpmn:outgoing>
-      <bpmn:timerEventDefinition>
-        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
-      </bpmn:timerEventDefinition>
-    </bpmn:intermediateCatchEvent>
-    <bpmn:exclusiveGateway id="ExclusiveGateway_0onybdl">
-      <bpmn:incoming>SequenceFlow_0yqo6md</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0okj60f</bpmn:outgoing>
-      <bpmn:outgoing>SequenceFlow_10v2c9r</bpmn:outgoing>
-    </bpmn:exclusiveGateway>
+    <bpmn:serviceTask id="Task_1n6iu8h" name="Report Service" camunda:expression="&#34;&#34;">
+      <bpmn:incoming>SequenceFlow_0jumhlh</bpmn:incoming>
+      <bpmn:outgoing>SequenceFlow_14nqu0e</bpmn:outgoing>
+    </bpmn:serviceTask>
     <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0d8ns1p">
-      <bpmn:incoming>SequenceFlow_10v2c9r</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0e9hshn</bpmn:outgoing>
+      <bpmn:incoming>SequenceFlow_0htopx7</bpmn:incoming>
+      <bpmn:outgoing>SequenceFlow_0jumhlh</bpmn:outgoing>
       <bpmn:timerEventDefinition>
-        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
+        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5S</bpmn:timeDuration>
       </bpmn:timerEventDefinition>
     </bpmn:intermediateCatchEvent>
-    <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_09eb9xc">
-      <bpmn:incoming>SequenceFlow_0okj60f</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0ra8hjs</bpmn:outgoing>
-      <bpmn:timerEventDefinition>
-        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
-      </bpmn:timerEventDefinition>
-    </bpmn:intermediateCatchEvent>
-    <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_192yjst">
-      <bpmn:incoming>SequenceFlow_0bzf3di</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0fct5f2</bpmn:outgoing>
-      <bpmn:timerEventDefinition>
-        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
-      </bpmn:timerEventDefinition>
-    </bpmn:intermediateCatchEvent>
-    <bpmn:scriptTask id="Task_1kanz3j" name="Load Twitter Data">
-      <bpmn:incoming>SequenceFlow_0e9hshn</bpmn:incoming>
-      <bpmn:incoming>SequenceFlow_11ge7w6</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_1gdqfur</bpmn:outgoing>
-      <bpmn:outgoing>SequenceFlow_1gbx7mw</bpmn:outgoing>
-      <bpmn:script>""</bpmn:script>
-    </bpmn:scriptTask>
-    <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_050nd2m">
-      <bpmn:incoming>SequenceFlow_0f33zny</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_11ge7w6</bpmn:outgoing>
-      <bpmn:timerEventDefinition id="TimerEventDefinition_0nq95t6">
-        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
-      </bpmn:timerEventDefinition>
-    </bpmn:intermediateCatchEvent>
-    <bpmn:scriptTask id="Task_14xmt44" name="Input terms automated" scriptFormat="groovy" camunda:resultVariable="terms_groovy">
+    <bpmn:subProcess id="SubProcess_1skl2rb">
       <bpmn:incoming>SequenceFlow_11xavl5</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0f33zny</bpmn:outgoing>
-      <bpmn:script>for ( i in terms) {
-  println "line found: " + i
-}
-nt = {}
-nt["term"] = "newterm"
-terms += nt
-return ""</bpmn:script>
-    </bpmn:scriptTask>
-    <bpmn:sequenceFlow id="SequenceFlow_0ez6lnk" sourceRef="Task_1tosag4" targetRef="Task_1e7059p" />
-    <bpmn:sequenceFlow id="SequenceFlow_0f33zny" sourceRef="Task_14xmt44" targetRef="IntermediateCatchEvent_050nd2m" />
-    <bpmn:sequenceFlow id="SequenceFlow_11xavl5" sourceRef="StartEvent_1t6nxib" targetRef="Task_14xmt44" />
-    <bpmn:sequenceFlow id="SequenceFlow_0tu3w40" sourceRef="IntermediateThrowEvent_1u3snd0" targetRef="EndEvent_0bmuv13" />
-    <bpmn:sequenceFlow id="SequenceFlow_0ra8hjs" sourceRef="IntermediateThrowEvent_09eb9xc" targetRef="Task_1tosag4" />
-    <bpmn:sequenceFlow id="SequenceFlow_0yqo6md" sourceRef="IntermediateThrowEvent_1pwlz5c" targetRef="ExclusiveGateway_0onybdl" />
-    <bpmn:sequenceFlow id="SequenceFlow_0e9hshn" sourceRef="IntermediateThrowEvent_0d8ns1p" targetRef="Task_1kanz3j" />
-    <bpmn:sequenceFlow id="SequenceFlow_12s5p9s" sourceRef="IntermediateThrowEvent_1rxh4ec" targetRef="Task_1n6iu8h" />
-    <bpmn:sequenceFlow id="SequenceFlow_0fct5f2" sourceRef="IntermediateThrowEvent_192yjst" targetRef="Task_1cfglzc" />
-    <bpmn:sequenceFlow id="SequenceFlow_1inwzje" sourceRef="IntermediateThrowEvent_0zbs0zv" targetRef="Task_1rt5mbt" />
-    <bpmn:sequenceFlow id="SequenceFlow_1gdqfur" sourceRef="Task_1kanz3j" targetRef="IntermediateThrowEvent_0zbs0zv" />
-    <bpmn:sequenceFlow id="SequenceFlow_0jebdb9" sourceRef="Task_1e7059p" targetRef="IntermediateThrowEvent_1u3snd0" />
-    <bpmn:sequenceFlow id="SequenceFlow_03ohp0o" sourceRef="Task_1tosag4" targetRef="IntermediateThrowEvent_1rxh4ec" />
-    <bpmn:sequenceFlow id="SequenceFlow_0okj60f" name="All terms are analyzed" sourceRef="ExclusiveGateway_0onybdl" targetRef="IntermediateThrowEvent_09eb9xc">
-      <bpmn:documentation>All terms are analyzed</bpmn:documentation>
-      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${terms}==[]</bpmn:conditionExpression>
-    </bpmn:sequenceFlow>
-    <bpmn:sequenceFlow id="SequenceFlow_10v2c9r" sourceRef="ExclusiveGateway_0onybdl" targetRef="IntermediateThrowEvent_0d8ns1p" />
-    <bpmn:sequenceFlow id="SequenceFlow_1gbx7mw" sourceRef="Task_1kanz3j" targetRef="IntermediateThrowEvent_1pwlz5c" />
-    <bpmn:sequenceFlow id="SequenceFlow_0h1h7gs" sourceRef="Task_1rt5mbt" targetRef="IntermediateCatchEvent_1h9izac" />
-    <bpmn:sequenceFlow id="SequenceFlow_0bzf3di" sourceRef="Task_1slpwnp" targetRef="IntermediateThrowEvent_192yjst" />
-    <bpmn:sequenceFlow id="SequenceFlow_07bm292" sourceRef="IntermediateCatchEvent_1h9izac" targetRef="Task_1slpwnp" />
-    <bpmn:sequenceFlow id="SequenceFlow_11ge7w6" sourceRef="IntermediateCatchEvent_050nd2m" targetRef="Task_1kanz3j" />
-    <bpmn:textAnnotation id="TextAnnotation_08dib8t">
-      <bpmn:text>collect all analyze results</bpmn:text>
-    </bpmn:textAnnotation>
-    <bpmn:association id="Association_1bcr79m" sourceRef="Task_1cfglzc" targetRef="TextAnnotation_08dib8t" />
+      <bpmn:outgoing>SequenceFlow_0htopx7</bpmn:outgoing>
+      <bpmn:multiInstanceLoopCharacteristics camunda:collection="${terms.elements()}" camunda:elementVariable="term" />
+      <bpmn:startEvent id="StartEvent_1nx6b6f">
+        <bpmn:outgoing>SequenceFlow_0f6v4j4</bpmn:outgoing>
+      </bpmn:startEvent>
+      <bpmn:serviceTask id="ServiceTask_1o2usc9" name="Twitter Service">
+        <bpmn:extensionElements>
+          <camunda:connector>
+            <camunda:inputOutput>
+              <camunda:inputParameter name="url">http://twitter:8084/search/tweets.json</camunda:inputParameter>
+              <camunda:inputParameter name="method">GET</camunda:inputParameter>
+              <camunda:inputParameter name="headers">
+                <camunda:map>
+                  <camunda:entry key="Accept">application/json</camunda:entry>
+                </camunda:map>
+              </camunda:inputParameter>
+              <camunda:inputParameter name="payload">
+                <camunda:script scriptFormat="Javascript">"q=${term}"</camunda:script>
+              </camunda:inputParameter>
+              <camunda:outputParameter name="tweets">
+                <camunda:script scriptFormat="Javascript">var response = connector.getVariable("response");
+S(response);</camunda:script>
+              </camunda:outputParameter>
+            </camunda:inputOutput>
+            <camunda:connectorId>http-connector</camunda:connectorId>
+          </camunda:connector>
+        </bpmn:extensionElements>
+        <bpmn:incoming>SequenceFlow_08cvkud</bpmn:incoming>
+        <bpmn:outgoing>SequenceFlow_0g6bfz6</bpmn:outgoing>
+      </bpmn:serviceTask>
+      <bpmn:sequenceFlow id="SequenceFlow_0f6v4j4" sourceRef="StartEvent_1nx6b6f" targetRef="IntermediateCatchEvent_18phl41" />
+      <bpmn:sequenceFlow id="SequenceFlow_0g6bfz6" sourceRef="ServiceTask_1o2usc9" targetRef="IntermediateCatchEvent_0rrmr11" />
+      <bpmn:endEvent id="EndEvent_1b95153">
+        <bpmn:incoming>SequenceFlow_1bz7zx2</bpmn:incoming>
+      </bpmn:endEvent>
+      <bpmn:sequenceFlow id="SequenceFlow_1bz7zx2" sourceRef="Task_12o1uz7" targetRef="EndEvent_1b95153" />
+      <bpmn:serviceTask id="Task_12o1uz7" name="Analysis Service" camunda:expression="&#34;&#34;">
+        <bpmn:incoming>SequenceFlow_0dcynq6</bpmn:incoming>
+        <bpmn:outgoing>SequenceFlow_1bz7zx2</bpmn:outgoing>
+      </bpmn:serviceTask>
+      <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_0rrmr11">
+        <bpmn:incoming>SequenceFlow_0g6bfz6</bpmn:incoming>
+        <bpmn:outgoing>SequenceFlow_0dcynq6</bpmn:outgoing>
+        <bpmn:timerEventDefinition id="TimerEventDefinition_0mlb6ia">
+          <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5S</bpmn:timeDuration>
+        </bpmn:timerEventDefinition>
+      </bpmn:intermediateCatchEvent>
+      <bpmn:sequenceFlow id="SequenceFlow_0dcynq6" sourceRef="IntermediateCatchEvent_0rrmr11" targetRef="Task_12o1uz7" />
+      <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_18phl41">
+        <bpmn:incoming>SequenceFlow_0f6v4j4</bpmn:incoming>
+        <bpmn:outgoing>SequenceFlow_08cvkud</bpmn:outgoing>
+        <bpmn:timerEventDefinition id="TimerEventDefinition_0n31tww">
+          <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5S</bpmn:timeDuration>
+        </bpmn:timerEventDefinition>
+      </bpmn:intermediateCatchEvent>
+      <bpmn:sequenceFlow id="SequenceFlow_08cvkud" sourceRef="IntermediateCatchEvent_18phl41" targetRef="ServiceTask_1o2usc9" />
+    </bpmn:subProcess>
   </bpmn:process>
   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1x8eoy3">
       <bpmndi:BPMNShape id="Participant_0gzc3m9_di" bpmnElement="Participant_0gzc3m9">
-        <dc:Bounds x="0" y="0" width="1380" height="352" />
+        <dc:Bounds x="0" y="0" width="1383" height="569" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="EndEvent_0bmuv13_di" bpmnElement="EndEvent_0bmuv13">
         <dc:Bounds x="1306" y="231" width="36" height="36" />
@@ -161,29 +110,6 @@ return ""</bpmn:script>
       <bpmndi:BPMNShape id="StartEvent_1t6nxib_di" bpmnElement="StartEvent_1t6nxib">
         <dc:Bounds x="50" y="231" width="36" height="36" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNEdge id="SequenceFlow_03ohp0o_di" bpmnElement="SequenceFlow_03ohp0o">
-        <di:waypoint x="983" y="209" />
-        <di:waypoint x="983" y="178" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0okj60f_di" bpmnElement="SequenceFlow_0okj60f">
-        <di:waypoint x="614" y="249" />
-        <di:waypoint x="788" y="249" />
-        <bpmndi:BPMNLabel>
-          <dc:Bounds x="666" y="235" width="62" height="27" />
-        </bpmndi:BPMNLabel>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_10v2c9r_di" bpmnElement="SequenceFlow_10v2c9r">
-        <di:waypoint x="589" y="274" />
-        <di:waypoint x="589" y="323" />
-        <di:waypoint x="479" y="323" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_1gbx7mw_di" bpmnElement="SequenceFlow_1gbx7mw">
-        <di:waypoint x="390" y="249" />
-        <di:waypoint x="443" y="249" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNShape id="ExclusiveGateway_0pzjnfx_di" bpmnElement="ExclusiveGateway_0onybdl" isMarkerVisible="true">
-        <dc:Bounds x="564" y="224" width="50" height="50" />
-      </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge id="SequenceFlow_0jebdb9_di" bpmnElement="SequenceFlow_0jebdb9">
         <di:waypoint x="1199" y="249" />
         <di:waypoint x="1233" y="249" />
@@ -191,121 +117,79 @@ return ""</bpmn:script>
       <bpmndi:BPMNShape id="UserTask_0iooc2g_di" bpmnElement="Task_1e7059p">
         <dc:Bounds x="1099" y="209" width="100" height="80" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="IntermediateCatchEvent_1dguuge_di" bpmnElement="IntermediateThrowEvent_0zbs0zv">
-        <dc:Bounds x="322" y="142" width="36" height="36" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNEdge id="SequenceFlow_1gdqfur_di" bpmnElement="SequenceFlow_1gdqfur">
-        <di:waypoint x="340" y="209" />
-        <di:waypoint x="340" y="178" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_1inwzje_di" bpmnElement="SequenceFlow_1inwzje">
-        <di:waypoint x="340" y="142" />
-        <di:waypoint x="340" y="112" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0fct5f2_di" bpmnElement="SequenceFlow_0fct5f2">
-        <di:waypoint x="717" y="72" />
-        <di:waypoint x="756" y="72" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNShape id="IntermediateCatchEvent_1vje2lu_di" bpmnElement="IntermediateThrowEvent_192yjst">
-        <dc:Bounds x="681" y="54" width="36" height="36" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNEdge id="SequenceFlow_12s5p9s_di" bpmnElement="SequenceFlow_12s5p9s">
-        <di:waypoint x="983" y="142" />
-        <di:waypoint x="983" y="112" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0e9hshn_di" bpmnElement="SequenceFlow_0e9hshn">
-        <di:waypoint x="443" y="323" />
-        <di:waypoint x="340" y="323" />
-        <di:waypoint x="340" y="289" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0yqo6md_di" bpmnElement="SequenceFlow_0yqo6md">
-        <di:waypoint x="479" y="249" />
-        <di:waypoint x="564" y="249" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0ra8hjs_di" bpmnElement="SequenceFlow_0ra8hjs">
-        <di:waypoint x="824" y="249" />
-        <di:waypoint x="933" y="249" />
-      </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge id="SequenceFlow_0tu3w40_di" bpmnElement="SequenceFlow_0tu3w40">
         <di:waypoint x="1269" y="249" />
         <di:waypoint x="1306" y="249" />
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNShape id="IntermediateCatchEvent_15xr8tf_di" bpmnElement="IntermediateThrowEvent_0d8ns1p">
-        <dc:Bounds x="443" y="305" width="36" height="36" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="IntermediateCatchEvent_16kp9qx_di" bpmnElement="IntermediateThrowEvent_1pwlz5c">
-        <dc:Bounds x="443" y="231" width="36" height="36" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="IntermediateCatchEvent_1k8uu2s_di" bpmnElement="IntermediateThrowEvent_09eb9xc">
-        <dc:Bounds x="788" y="231" width="36" height="36" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="IntermediateCatchEvent_0l6h0iz_di" bpmnElement="IntermediateThrowEvent_1rxh4ec">
-        <dc:Bounds x="965" y="142" width="36" height="36" />
+        <dc:Bounds x="867" y="231" width="36" height="36" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="IntermediateCatchEvent_14dhjgv_di" bpmnElement="IntermediateThrowEvent_1u3snd0">
         <dc:Bounds x="1233" y="231" width="36" height="36" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="Task_19kl2q9_di" bpmnElement="Task_1rt5mbt">
-        <dc:Bounds x="290" y="32" width="100" height="80" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="Task_1walrai_di" bpmnElement="Task_1cfglzc">
-        <dc:Bounds x="756" y="32" width="100" height="80" />
+      <bpmndi:BPMNEdge id="SequenceFlow_11xavl5_di" bpmnElement="SequenceFlow_11xavl5">
+        <di:waypoint x="86" y="249" />
+        <di:waypoint x="163" y="249" />
+        <di:waypoint x="163" y="248" />
+        <di:waypoint x="239" y="248" />
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNShape id="SubProcess_1skl2rb_di" bpmnElement="SubProcess_1skl2rb" isExpanded="true">
+        <dc:Bounds x="239" y="165" width="552" height="164" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="Task_0pek2di_di" bpmnElement="Task_1n6iu8h">
-        <dc:Bounds x="933" y="32" width="100" height="80" />
+      <bpmndi:BPMNShape id="StartEvent_1nx6b6f_di" bpmnElement="StartEvent_1nx6b6f">
+        <dc:Bounds x="260" y="228" width="36" height="36" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="ScriptTask_1ui5yru_di" bpmnElement="Task_14xmt44">
-        <dc:Bounds x="116" y="209" width="100" height="80" />
+      <bpmndi:BPMNShape id="ServiceTask_1o2usc9_di" bpmnElement="ServiceTask_1o2usc9">
+        <dc:Bounds x="388" y="206" width="100" height="80" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNEdge id="SequenceFlow_11xavl5_di" bpmnElement="SequenceFlow_11xavl5">
-        <di:waypoint x="86" y="249" />
-        <di:waypoint x="116" y="249" />
+      <bpmndi:BPMNEdge id="SequenceFlow_0f6v4j4_di" bpmnElement="SequenceFlow_0f6v4j4">
+        <di:waypoint x="296" y="246" />
+        <di:waypoint x="316" y="246" />
       </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0f33zny_di" bpmnElement="SequenceFlow_0f33zny">
-        <di:waypoint x="216" y="249" />
-        <di:waypoint x="236" y="249" />
+      <bpmndi:BPMNEdge id="SequenceFlow_0g6bfz6_di" bpmnElement="SequenceFlow_0g6bfz6">
+        <di:waypoint x="488" y="246" />
+        <di:waypoint x="510" y="246" />
       </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0ez6lnk_di" bpmnElement="SequenceFlow_0ez6lnk">
-        <di:waypoint x="1033" y="249" />
-        <di:waypoint x="1099" y="249" />
+      <bpmndi:BPMNShape id="EndEvent_1b95153_di" bpmnElement="EndEvent_1b95153">
+        <dc:Bounds x="726" y="228" width="36" height="36" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge id="SequenceFlow_1bz7zx2_di" bpmnElement="SequenceFlow_1bz7zx2">
+        <di:waypoint x="679" y="246" />
+        <di:waypoint x="726" y="246" />
       </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0h1h7gs_di" bpmnElement="SequenceFlow_0h1h7gs">
-        <di:waypoint x="390" y="72" />
-        <di:waypoint x="443" y="72" />
+      <bpmndi:BPMNEdge id="SequenceFlow_0htopx7_di" bpmnElement="SequenceFlow_0htopx7">
+        <di:waypoint x="791" y="248" />
+        <di:waypoint x="829" y="248" />
+        <di:waypoint x="829" y="249" />
+        <di:waypoint x="867" y="249" />
       </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0bzf3di_di" bpmnElement="SequenceFlow_0bzf3di">
-        <di:waypoint x="639" y="72" />
-        <di:waypoint x="681" y="72" />
+      <bpmndi:BPMNEdge id="SequenceFlow_14nqu0e_di" bpmnElement="SequenceFlow_14nqu0e">
+        <di:waypoint x="1043" y="249" />
+        <di:waypoint x="1099" y="249" />
       </bpmndi:BPMNEdge>
-      <bpmndi:BPMNShape id="ScriptTask_1wgv8e0_di" bpmnElement="Task_1slpwnp">
-        <dc:Bounds x="539" y="32" width="100" height="80" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="TextAnnotation_08dib8t_di" bpmnElement="TextAnnotation_08dib8t">
-        <dc:Bounds x="821" y="158" width="100" height="40" />
+      <bpmndi:BPMNShape id="ServiceTask_1gaqtzh_di" bpmnElement="Task_1n6iu8h">
+        <dc:Bounds x="943" y="209" width="100" height="80" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNEdge id="Association_1bcr79m_di" bpmnElement="Association_1bcr79m">
-        <di:waypoint x="831" y="112" />
-        <di:waypoint x="859" y="158" />
+      <bpmndi:BPMNEdge id="SequenceFlow_0jumhlh_di" bpmnElement="SequenceFlow_0jumhlh">
+        <di:waypoint x="903" y="249" />
+        <di:waypoint x="943" y="249" />
       </bpmndi:BPMNEdge>
-      <bpmndi:BPMNShape id="ScriptTask_0h8sco9_di" bpmnElement="Task_1tosag4">
-        <dc:Bounds x="933" y="209" width="100" height="80" />
+      <bpmndi:BPMNShape id="ServiceTask_1ledx9h_di" bpmnElement="Task_12o1uz7">
+        <dc:Bounds x="579" y="206" width="100" height="80" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="IntermediateCatchEvent_1h9izac_di" bpmnElement="IntermediateCatchEvent_1h9izac">
-        <dc:Bounds x="443" y="54" width="36" height="36" />
+      <bpmndi:BPMNShape id="IntermediateCatchEvent_0rrmr11_di" bpmnElement="IntermediateCatchEvent_0rrmr11">
+        <dc:Bounds x="510" y="228" width="36" height="36" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNEdge id="SequenceFlow_07bm292_di" bpmnElement="SequenceFlow_07bm292">
-        <di:waypoint x="479" y="72" />
-        <di:waypoint x="539" y="72" />
+      <bpmndi:BPMNEdge id="SequenceFlow_0dcynq6_di" bpmnElement="SequenceFlow_0dcynq6">
+        <di:waypoint x="546" y="246" />
+        <di:waypoint x="579" y="246" />
       </bpmndi:BPMNEdge>
-      <bpmndi:BPMNShape id="ScriptTask_1yoc45k_di" bpmnElement="Task_1kanz3j">
-        <dc:Bounds x="290" y="209" width="100" height="80" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="IntermediateCatchEvent_050nd2m_di" bpmnElement="IntermediateCatchEvent_050nd2m">
-        <dc:Bounds x="236" y="231" width="36" height="36" />
+      <bpmndi:BPMNShape id="IntermediateCatchEvent_18phl41_di" bpmnElement="IntermediateCatchEvent_18phl41">
+        <dc:Bounds x="316" y="228" width="36" height="36" />
       </bpmndi:BPMNShape>
-      <bpmndi:BPMNEdge id="SequenceFlow_11ge7w6_di" bpmnElement="SequenceFlow_11ge7w6">
-        <di:waypoint x="272" y="249" />
-        <di:waypoint x="290" y="249" />
+      <bpmndi:BPMNEdge id="SequenceFlow_08cvkud_di" bpmnElement="SequenceFlow_08cvkud">
+        <di:waypoint x="352" y="246" />
+        <di:waypoint x="388" y="246" />
       </bpmndi:BPMNEdge>
     </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>