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_0co5an7" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="2.0.3">
3 <bpmn:collaboration id="Collaboration_1x8eoy3">
4 <bpmn:participant id="Participant_0gzc3m9" name="Sentiment Analysis" processRef="Sentiment_Analysis" />
6 <bpmn:process id="Sentiment_Analysis" name="Sentiment Analysis" isExecutable="true" camunda:versionTag="0.0.1">
7 <bpmn:laneSet id="LaneSet_1u08y0e" />
8 <bpmn:sequenceFlow id="SequenceFlow_0ez6lnk" sourceRef="Task_1tosag4" targetRef="Task_1e7059p" />
9 <bpmn:sequenceFlow id="SequenceFlow_0f33zny" sourceRef="Task_14xmt44" targetRef="Task_1kanz3j" />
10 <bpmn:sequenceFlow id="SequenceFlow_11xavl5" sourceRef="StartEvent_1t6nxib" targetRef="Task_14xmt44" />
11 <bpmn:sequenceFlow id="SequenceFlow_0tu3w40" sourceRef="IntermediateThrowEvent_1u3snd0" targetRef="EndEvent_0bmuv13" />
12 <bpmn:sequenceFlow id="SequenceFlow_0ra8hjs" sourceRef="IntermediateThrowEvent_09eb9xc" targetRef="Task_1tosag4" />
13 <bpmn:sequenceFlow id="SequenceFlow_0yqo6md" sourceRef="IntermediateThrowEvent_1pwlz5c" targetRef="ExclusiveGateway_0onybdl" />
14 <bpmn:sequenceFlow id="SequenceFlow_0970mq7" sourceRef="IntermediateThrowEvent_0w0ep0t" targetRef="Task_0fs65yp" />
15 <bpmn:sequenceFlow id="SequenceFlow_0e9hshn" sourceRef="IntermediateThrowEvent_0d8ns1p" targetRef="Task_1kanz3j" />
16 <bpmn:sequenceFlow id="SequenceFlow_12s5p9s" sourceRef="IntermediateThrowEvent_1rxh4ec" targetRef="Task_1n6iu8h" />
17 <bpmn:sequenceFlow id="SequenceFlow_0fct5f2" sourceRef="IntermediateThrowEvent_192yjst" targetRef="Task_1cfglzc" />
18 <bpmn:sequenceFlow id="SequenceFlow_1inwzje" sourceRef="IntermediateThrowEvent_0zbs0zv" targetRef="Task_1rt5mbt" />
19 <bpmn:sequenceFlow id="SequenceFlow_1gdqfur" sourceRef="Task_1kanz3j" targetRef="IntermediateThrowEvent_0zbs0zv" />
20 <bpmn:sequenceFlow id="SequenceFlow_0jebdb9" sourceRef="Task_1e7059p" targetRef="IntermediateThrowEvent_1u3snd0" />
21 <bpmn:sequenceFlow id="SequenceFlow_03ohp0o" sourceRef="Task_1tosag4" targetRef="IntermediateThrowEvent_1rxh4ec" />
22 <bpmn:sequenceFlow id="SequenceFlow_0okj60f" name="All terms are analyzed" sourceRef="ExclusiveGateway_0onybdl" targetRef="IntermediateThrowEvent_09eb9xc">
23 <bpmn:documentation>All terms are analyzed</bpmn:documentation>
24 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">$terms==[]</bpmn:conditionExpression>
26 <bpmn:sequenceFlow id="SequenceFlow_10v2c9r" sourceRef="ExclusiveGateway_0onybdl" targetRef="IntermediateThrowEvent_0d8ns1p" />
27 <bpmn:sequenceFlow id="SequenceFlow_0azv06r" sourceRef="Task_0fs65yp" targetRef="IntermediateThrowEvent_192yjst" />
28 <bpmn:sequenceFlow id="SequenceFlow_1gbx7mw" sourceRef="Task_1kanz3j" targetRef="IntermediateThrowEvent_0w0ep0t" />
29 <bpmn:sequenceFlow id="SequenceFlow_032ipyi" sourceRef="Task_0fs65yp" targetRef="IntermediateThrowEvent_1pwlz5c" />
30 <bpmn:endEvent id="EndEvent_0bmuv13">
31 <bpmn:incoming>SequenceFlow_0tu3w40</bpmn:incoming>
33 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1u3snd0">
34 <bpmn:incoming>SequenceFlow_0jebdb9</bpmn:incoming>
35 <bpmn:outgoing>SequenceFlow_0tu3w40</bpmn:outgoing>
36 <bpmn:timerEventDefinition>
37 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
38 </bpmn:timerEventDefinition>
39 </bpmn:intermediateCatchEvent>
40 <bpmn:userTask id="Task_1e7059p" name="download pdf" camunda:formKey="embedded:deployment:download-pdf.html">
41 <bpmn:incoming>SequenceFlow_0ez6lnk</bpmn:incoming>
42 <bpmn:outgoing>SequenceFlow_0jebdb9</bpmn:outgoing>
44 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1rxh4ec">
45 <bpmn:incoming>SequenceFlow_03ohp0o</bpmn:incoming>
46 <bpmn:outgoing>SequenceFlow_12s5p9s</bpmn:outgoing>
47 <bpmn:timerEventDefinition>
48 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
49 </bpmn:timerEventDefinition>
50 </bpmn:intermediateCatchEvent>
51 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0d8ns1p">
52 <bpmn:incoming>SequenceFlow_10v2c9r</bpmn:incoming>
53 <bpmn:outgoing>SequenceFlow_0e9hshn</bpmn:outgoing>
54 <bpmn:timerEventDefinition>
55 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
56 </bpmn:timerEventDefinition>
57 </bpmn:intermediateCatchEvent>
58 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0w0ep0t">
59 <bpmn:incoming>SequenceFlow_1gbx7mw</bpmn:incoming>
60 <bpmn:outgoing>SequenceFlow_0970mq7</bpmn:outgoing>
61 <bpmn:timerEventDefinition>
62 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
63 </bpmn:timerEventDefinition>
64 </bpmn:intermediateCatchEvent>
65 <bpmn:task id="Task_1tosag4" name="Generate Report">
66 <bpmn:incoming>SequenceFlow_0ra8hjs</bpmn:incoming>
67 <bpmn:outgoing>SequenceFlow_03ohp0o</bpmn:outgoing>
68 <bpmn:outgoing>SequenceFlow_0ez6lnk</bpmn:outgoing>
70 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0zbs0zv">
71 <bpmn:incoming>SequenceFlow_1gdqfur</bpmn:incoming>
72 <bpmn:outgoing>SequenceFlow_1inwzje</bpmn:outgoing>
73 <bpmn:timerEventDefinition>
74 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
75 </bpmn:timerEventDefinition>
76 </bpmn:intermediateCatchEvent>
77 <bpmn:startEvent id="StartEvent_1t6nxib" camunda:formKey="embedded:deployment:input-terms.html">
78 <bpmn:outgoing>SequenceFlow_11xavl5</bpmn:outgoing>
80 <bpmn:task id="Task_1kanz3j" name="Load Twitter Data">
81 <bpmn:incoming>SequenceFlow_0e9hshn</bpmn:incoming>
82 <bpmn:incoming>SequenceFlow_0f33zny</bpmn:incoming>
83 <bpmn:outgoing>SequenceFlow_1gbx7mw</bpmn:outgoing>
84 <bpmn:outgoing>SequenceFlow_1gdqfur</bpmn:outgoing>
86 <bpmn:scriptTask id="Task_14xmt44" name="Input terms automated" scriptFormat="groovy" camunda:resultVariable="terms_groovy">
87 <bpmn:incoming>SequenceFlow_11xavl5</bpmn:incoming>
88 <bpmn:outgoing>SequenceFlow_0f33zny</bpmn:outgoing>
91 println "line found: " + i
94 nt["term"] = "newterm"
98 <bpmn:task id="Task_1n6iu8h" name="Report Service">
99 <bpmn:incoming>SequenceFlow_12s5p9s</bpmn:incoming>
101 <bpmn:task id="Task_1rt5mbt" name="Twitter Service">
102 <bpmn:incoming>SequenceFlow_1inwzje</bpmn:incoming>
104 <bpmn:exclusiveGateway id="ExclusiveGateway_0onybdl">
105 <bpmn:incoming>SequenceFlow_0yqo6md</bpmn:incoming>
106 <bpmn:outgoing>SequenceFlow_0okj60f</bpmn:outgoing>
107 <bpmn:outgoing>SequenceFlow_10v2c9r</bpmn:outgoing>
108 </bpmn:exclusiveGateway>
109 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1pwlz5c">
110 <bpmn:incoming>SequenceFlow_032ipyi</bpmn:incoming>
111 <bpmn:outgoing>SequenceFlow_0yqo6md</bpmn:outgoing>
112 <bpmn:timerEventDefinition>
113 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
114 </bpmn:timerEventDefinition>
115 </bpmn:intermediateCatchEvent>
116 <bpmn:task id="Task_0fs65yp" name="Analyze">
117 <bpmn:incoming>SequenceFlow_0970mq7</bpmn:incoming>
118 <bpmn:outgoing>SequenceFlow_0azv06r</bpmn:outgoing>
119 <bpmn:outgoing>SequenceFlow_032ipyi</bpmn:outgoing>
121 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_192yjst">
122 <bpmn:incoming>SequenceFlow_0azv06r</bpmn:incoming>
123 <bpmn:outgoing>SequenceFlow_0fct5f2</bpmn:outgoing>
124 <bpmn:timerEventDefinition>
125 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
126 </bpmn:timerEventDefinition>
127 </bpmn:intermediateCatchEvent>
128 <bpmn:task id="Task_1cfglzc" name="Analysis Service">
129 <bpmn:incoming>SequenceFlow_0fct5f2</bpmn:incoming>
131 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_09eb9xc">
132 <bpmn:incoming>SequenceFlow_0okj60f</bpmn:incoming>
133 <bpmn:outgoing>SequenceFlow_0ra8hjs</bpmn:outgoing>
134 <bpmn:timerEventDefinition>
135 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
136 </bpmn:timerEventDefinition>
137 </bpmn:intermediateCatchEvent>
139 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
140 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1x8eoy3">
141 <bpmndi:BPMNShape id="Participant_0gzc3m9_di" bpmnElement="Participant_0gzc3m9">
142 <dc:Bounds x="93" y="-237" width="1444" height="543" />
144 <bpmndi:BPMNShape id="EndEvent_0bmuv13_di" bpmnElement="EndEvent_0bmuv13">
145 <dc:Bounds x="1393" y="185" width="36" height="36" />
147 <bpmndi:BPMNShape id="Task_1tosag4_di" bpmnElement="Task_1tosag4">
148 <dc:Bounds x="1020" y="163" width="100" height="80" />
150 <bpmndi:BPMNShape id="Task_0fs65yp_di" bpmnElement="Task_0fs65yp">
151 <dc:Bounds x="608" y="163" width="100" height="80" />
153 <bpmndi:BPMNShape id="Task_1kanz3j_di" bpmnElement="Task_1kanz3j">
154 <dc:Bounds x="377" y="163" width="100" height="80" />
156 <bpmndi:BPMNShape id="StartEvent_1t6nxib_di" bpmnElement="StartEvent_1t6nxib">
157 <dc:Bounds x="137" y="185" width="36" height="36" />
159 <bpmndi:BPMNEdge id="SequenceFlow_03ohp0o_di" bpmnElement="SequenceFlow_03ohp0o">
160 <di:waypoint x="1070" y="163" />
161 <di:waypoint x="1070" y="132" />
163 <bpmndi:BPMNEdge id="SequenceFlow_0okj60f_di" bpmnElement="SequenceFlow_0okj60f">
164 <di:waypoint x="850" y="203" />
165 <di:waypoint x="958" y="203" />
167 <dc:Bounds x="871" y="189" width="62" height="27" />
170 <bpmndi:BPMNEdge id="SequenceFlow_10v2c9r_di" bpmnElement="SequenceFlow_10v2c9r">
171 <di:waypoint x="825" y="228" />
172 <di:waypoint x="825" y="277" />
173 <di:waypoint x="612" y="277" />
175 <bpmndi:BPMNEdge id="SequenceFlow_0azv06r_di" bpmnElement="SequenceFlow_0azv06r">
176 <di:waypoint x="658" y="163" />
177 <di:waypoint x="658" y="132" />
179 <bpmndi:BPMNEdge id="SequenceFlow_1gbx7mw_di" bpmnElement="SequenceFlow_1gbx7mw">
180 <di:waypoint x="477" y="203" />
181 <di:waypoint x="494" y="203" />
183 <bpmndi:BPMNEdge id="SequenceFlow_032ipyi_di" bpmnElement="SequenceFlow_032ipyi">
184 <di:waypoint x="708" y="203" />
185 <di:waypoint x="736" y="203" />
187 <bpmndi:BPMNShape id="ExclusiveGateway_0pzjnfx_di" bpmnElement="ExclusiveGateway_0onybdl" isMarkerVisible="true">
188 <dc:Bounds x="800" y="178" width="50" height="50" />
190 <bpmndi:BPMNEdge id="SequenceFlow_0jebdb9_di" bpmnElement="SequenceFlow_0jebdb9">
191 <di:waypoint x="1286" y="203" />
192 <di:waypoint x="1320" y="203" />
194 <bpmndi:BPMNShape id="UserTask_0iooc2g_di" bpmnElement="Task_1e7059p">
195 <dc:Bounds x="1186" y="163" width="100" height="80" />
197 <bpmndi:BPMNShape id="IntermediateCatchEvent_1dguuge_di" bpmnElement="IntermediateThrowEvent_0zbs0zv">
198 <dc:Bounds x="409" y="96" width="36" height="36" />
200 <bpmndi:BPMNEdge id="SequenceFlow_1gdqfur_di" bpmnElement="SequenceFlow_1gdqfur">
201 <di:waypoint x="427" y="163" />
202 <di:waypoint x="427" y="132" />
204 <bpmndi:BPMNEdge id="SequenceFlow_1inwzje_di" bpmnElement="SequenceFlow_1inwzje">
205 <di:waypoint x="427" y="96" />
206 <di:waypoint x="427" y="66" />
208 <bpmndi:BPMNEdge id="SequenceFlow_0fct5f2_di" bpmnElement="SequenceFlow_0fct5f2">
209 <di:waypoint x="658" y="96" />
210 <di:waypoint x="658" y="66" />
212 <bpmndi:BPMNShape id="IntermediateCatchEvent_1vje2lu_di" bpmnElement="IntermediateThrowEvent_192yjst">
213 <dc:Bounds x="640" y="96" width="36" height="36" />
215 <bpmndi:BPMNEdge id="SequenceFlow_12s5p9s_di" bpmnElement="SequenceFlow_12s5p9s">
216 <di:waypoint x="1070" y="96" />
217 <di:waypoint x="1070" y="66" />
219 <bpmndi:BPMNEdge id="SequenceFlow_0e9hshn_di" bpmnElement="SequenceFlow_0e9hshn">
220 <di:waypoint x="576" y="277" />
221 <di:waypoint x="427" y="277" />
222 <di:waypoint x="427" y="243" />
224 <bpmndi:BPMNEdge id="SequenceFlow_0970mq7_di" bpmnElement="SequenceFlow_0970mq7">
225 <di:waypoint x="530" y="203" />
226 <di:waypoint x="608" y="203" />
228 <bpmndi:BPMNEdge id="SequenceFlow_0yqo6md_di" bpmnElement="SequenceFlow_0yqo6md">
229 <di:waypoint x="772" y="203" />
230 <di:waypoint x="800" y="203" />
232 <bpmndi:BPMNEdge id="SequenceFlow_0ra8hjs_di" bpmnElement="SequenceFlow_0ra8hjs">
233 <di:waypoint x="994" y="203" />
234 <di:waypoint x="1020" y="203" />
236 <bpmndi:BPMNEdge id="SequenceFlow_0tu3w40_di" bpmnElement="SequenceFlow_0tu3w40">
237 <di:waypoint x="1356" y="203" />
238 <di:waypoint x="1393" y="203" />
240 <bpmndi:BPMNShape id="IntermediateCatchEvent_1mfjj3t_di" bpmnElement="IntermediateThrowEvent_0w0ep0t">
241 <dc:Bounds x="494" y="185" width="36" height="36" />
243 <bpmndi:BPMNShape id="IntermediateCatchEvent_15xr8tf_di" bpmnElement="IntermediateThrowEvent_0d8ns1p">
244 <dc:Bounds x="576" y="259" width="36" height="36" />
246 <bpmndi:BPMNShape id="IntermediateCatchEvent_16kp9qx_di" bpmnElement="IntermediateThrowEvent_1pwlz5c">
247 <dc:Bounds x="736" y="185" width="36" height="36" />
249 <bpmndi:BPMNShape id="IntermediateCatchEvent_1k8uu2s_di" bpmnElement="IntermediateThrowEvent_09eb9xc">
250 <dc:Bounds x="958" y="185" width="36" height="36" />
252 <bpmndi:BPMNShape id="IntermediateCatchEvent_0l6h0iz_di" bpmnElement="IntermediateThrowEvent_1rxh4ec">
253 <dc:Bounds x="1052" y="96" width="36" height="36" />
255 <bpmndi:BPMNShape id="IntermediateCatchEvent_14dhjgv_di" bpmnElement="IntermediateThrowEvent_1u3snd0">
256 <dc:Bounds x="1320" y="185" width="36" height="36" />
258 <bpmndi:BPMNShape id="Task_19kl2q9_di" bpmnElement="Task_1rt5mbt">
259 <dc:Bounds x="377" y="-14" width="100" height="80" />
261 <bpmndi:BPMNShape id="Task_1walrai_di" bpmnElement="Task_1cfglzc">
262 <dc:Bounds x="608" y="-14" width="100" height="80" />
264 <bpmndi:BPMNShape id="Task_0pek2di_di" bpmnElement="Task_1n6iu8h">
265 <dc:Bounds x="1020" y="-14" width="100" height="80" />
267 <bpmndi:BPMNShape id="ScriptTask_1ui5yru_di" bpmnElement="Task_14xmt44">
268 <dc:Bounds x="215" y="163" width="100" height="80" />
270 <bpmndi:BPMNEdge id="SequenceFlow_11xavl5_di" bpmnElement="SequenceFlow_11xavl5">
271 <di:waypoint x="173" y="203" />
272 <di:waypoint x="215" y="203" />
274 <bpmndi:BPMNEdge id="SequenceFlow_0f33zny_di" bpmnElement="SequenceFlow_0f33zny">
275 <di:waypoint x="315" y="203" />
276 <di:waypoint x="377" y="203" />
278 <bpmndi:BPMNEdge id="SequenceFlow_0ez6lnk_di" bpmnElement="SequenceFlow_0ez6lnk">
279 <di:waypoint x="1120" y="203" />
280 <di:waypoint x="1186" y="203" />
283 </bpmndi:BPMNDiagram>