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="IntermediateCatchEvent_050nd2m" />
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_0e9hshn" sourceRef="IntermediateThrowEvent_0d8ns1p" targetRef="Task_1kanz3j" />
15 <bpmn:sequenceFlow id="SequenceFlow_12s5p9s" sourceRef="IntermediateThrowEvent_1rxh4ec" targetRef="Task_1n6iu8h" />
16 <bpmn:sequenceFlow id="SequenceFlow_0fct5f2" sourceRef="IntermediateThrowEvent_192yjst" targetRef="Task_1cfglzc" />
17 <bpmn:sequenceFlow id="SequenceFlow_1inwzje" sourceRef="IntermediateThrowEvent_0zbs0zv" targetRef="Task_1rt5mbt" />
18 <bpmn:sequenceFlow id="SequenceFlow_1gdqfur" sourceRef="Task_1kanz3j" targetRef="IntermediateThrowEvent_0zbs0zv" />
19 <bpmn:sequenceFlow id="SequenceFlow_0jebdb9" sourceRef="Task_1e7059p" targetRef="IntermediateThrowEvent_1u3snd0" />
20 <bpmn:sequenceFlow id="SequenceFlow_03ohp0o" sourceRef="Task_1tosag4" targetRef="IntermediateThrowEvent_1rxh4ec" />
21 <bpmn:sequenceFlow id="SequenceFlow_0okj60f" name="All terms are analyzed" sourceRef="ExclusiveGateway_0onybdl" targetRef="IntermediateThrowEvent_09eb9xc">
22 <bpmn:documentation>All terms are analyzed</bpmn:documentation>
23 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${terms}==[]</bpmn:conditionExpression>
25 <bpmn:sequenceFlow id="SequenceFlow_10v2c9r" sourceRef="ExclusiveGateway_0onybdl" targetRef="IntermediateThrowEvent_0d8ns1p" />
26 <bpmn:sequenceFlow id="SequenceFlow_1gbx7mw" sourceRef="Task_1kanz3j" targetRef="IntermediateThrowEvent_1pwlz5c" />
27 <bpmn:endEvent id="EndEvent_0bmuv13">
28 <bpmn:incoming>SequenceFlow_0tu3w40</bpmn:incoming>
30 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1u3snd0">
31 <bpmn:incoming>SequenceFlow_0jebdb9</bpmn:incoming>
32 <bpmn:outgoing>SequenceFlow_0tu3w40</bpmn:outgoing>
33 <bpmn:timerEventDefinition>
34 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
35 </bpmn:timerEventDefinition>
36 </bpmn:intermediateCatchEvent>
37 <bpmn:userTask id="Task_1e7059p" name="download pdf" camunda:formKey="embedded:deployment:download-pdf.html">
38 <bpmn:incoming>SequenceFlow_0ez6lnk</bpmn:incoming>
39 <bpmn:outgoing>SequenceFlow_0jebdb9</bpmn:outgoing>
41 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1rxh4ec">
42 <bpmn:incoming>SequenceFlow_03ohp0o</bpmn:incoming>
43 <bpmn:outgoing>SequenceFlow_12s5p9s</bpmn:outgoing>
44 <bpmn:timerEventDefinition>
45 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
46 </bpmn:timerEventDefinition>
47 </bpmn:intermediateCatchEvent>
48 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0zbs0zv">
49 <bpmn:incoming>SequenceFlow_1gdqfur</bpmn:incoming>
50 <bpmn:outgoing>SequenceFlow_1inwzje</bpmn:outgoing>
51 <bpmn:timerEventDefinition>
52 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
53 </bpmn:timerEventDefinition>
54 </bpmn:intermediateCatchEvent>
55 <bpmn:startEvent id="StartEvent_1t6nxib" camunda:formKey="embedded:deployment:input-terms.html">
56 <bpmn:outgoing>SequenceFlow_11xavl5</bpmn:outgoing>
58 <bpmn:task id="Task_1n6iu8h" name="Report Service">
59 <bpmn:incoming>SequenceFlow_12s5p9s</bpmn:incoming>
61 <bpmn:task id="Task_1rt5mbt" name="Twitter Service">
62 <bpmn:incoming>SequenceFlow_1inwzje</bpmn:incoming>
63 <bpmn:outgoing>SequenceFlow_0h1h7gs</bpmn:outgoing>
65 <bpmn:sequenceFlow id="SequenceFlow_0h1h7gs" sourceRef="Task_1rt5mbt" targetRef="IntermediateCatchEvent_1h9izac" />
66 <bpmn:sequenceFlow id="SequenceFlow_0bzf3di" sourceRef="Task_1slpwnp" targetRef="IntermediateThrowEvent_192yjst" />
67 <bpmn:task id="Task_1cfglzc" name="Analysis Service">
68 <bpmn:incoming>SequenceFlow_0fct5f2</bpmn:incoming>
70 <bpmn:scriptTask id="Task_1tosag4" name="Generate Report">
71 <bpmn:incoming>SequenceFlow_0ra8hjs</bpmn:incoming>
72 <bpmn:outgoing>SequenceFlow_0ez6lnk</bpmn:outgoing>
73 <bpmn:outgoing>SequenceFlow_03ohp0o</bpmn:outgoing>
74 <bpmn:script>""</bpmn:script>
76 <bpmn:scriptTask id="Task_1slpwnp" name="forward tweets to analyzer">
77 <bpmn:incoming>SequenceFlow_07bm292</bpmn:incoming>
78 <bpmn:outgoing>SequenceFlow_0bzf3di</bpmn:outgoing>
79 <bpmn:script>""</bpmn:script>
81 <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_1h9izac">
82 <bpmn:incoming>SequenceFlow_0h1h7gs</bpmn:incoming>
83 <bpmn:outgoing>SequenceFlow_07bm292</bpmn:outgoing>
84 <bpmn:timerEventDefinition id="TimerEventDefinition_0i6ti1o">
85 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
86 </bpmn:timerEventDefinition>
87 </bpmn:intermediateCatchEvent>
88 <bpmn:sequenceFlow id="SequenceFlow_07bm292" sourceRef="IntermediateCatchEvent_1h9izac" targetRef="Task_1slpwnp" />
89 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1pwlz5c">
90 <bpmn:incoming>SequenceFlow_1gbx7mw</bpmn:incoming>
91 <bpmn:outgoing>SequenceFlow_0yqo6md</bpmn:outgoing>
92 <bpmn:timerEventDefinition>
93 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
94 </bpmn:timerEventDefinition>
95 </bpmn:intermediateCatchEvent>
96 <bpmn:exclusiveGateway id="ExclusiveGateway_0onybdl">
97 <bpmn:incoming>SequenceFlow_0yqo6md</bpmn:incoming>
98 <bpmn:outgoing>SequenceFlow_0okj60f</bpmn:outgoing>
99 <bpmn:outgoing>SequenceFlow_10v2c9r</bpmn:outgoing>
100 </bpmn:exclusiveGateway>
101 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0d8ns1p">
102 <bpmn:incoming>SequenceFlow_10v2c9r</bpmn:incoming>
103 <bpmn:outgoing>SequenceFlow_0e9hshn</bpmn:outgoing>
104 <bpmn:timerEventDefinition>
105 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
106 </bpmn:timerEventDefinition>
107 </bpmn:intermediateCatchEvent>
108 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_09eb9xc">
109 <bpmn:incoming>SequenceFlow_0okj60f</bpmn:incoming>
110 <bpmn:outgoing>SequenceFlow_0ra8hjs</bpmn:outgoing>
111 <bpmn:timerEventDefinition>
112 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
113 </bpmn:timerEventDefinition>
114 </bpmn:intermediateCatchEvent>
115 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_192yjst">
116 <bpmn:incoming>SequenceFlow_0bzf3di</bpmn:incoming>
117 <bpmn:outgoing>SequenceFlow_0fct5f2</bpmn:outgoing>
118 <bpmn:timerEventDefinition>
119 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
120 </bpmn:timerEventDefinition>
121 </bpmn:intermediateCatchEvent>
122 <bpmn:scriptTask id="Task_1kanz3j" name="Load Twitter Data">
123 <bpmn:incoming>SequenceFlow_0e9hshn</bpmn:incoming>
124 <bpmn:incoming>SequenceFlow_11ge7w6</bpmn:incoming>
125 <bpmn:outgoing>SequenceFlow_1gdqfur</bpmn:outgoing>
126 <bpmn:outgoing>SequenceFlow_1gbx7mw</bpmn:outgoing>
127 <bpmn:script>""</bpmn:script>
129 <bpmn:sequenceFlow id="SequenceFlow_11ge7w6" sourceRef="IntermediateCatchEvent_050nd2m" targetRef="Task_1kanz3j" />
130 <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_050nd2m">
131 <bpmn:incoming>SequenceFlow_0f33zny</bpmn:incoming>
132 <bpmn:outgoing>SequenceFlow_11ge7w6</bpmn:outgoing>
133 <bpmn:timerEventDefinition id="TimerEventDefinition_0nq95t6">
134 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
135 </bpmn:timerEventDefinition>
136 </bpmn:intermediateCatchEvent>
137 <bpmn:scriptTask id="Task_14xmt44" name="Input terms automated" scriptFormat="groovy" camunda:resultVariable="terms_groovy">
138 <bpmn:incoming>SequenceFlow_11xavl5</bpmn:incoming>
139 <bpmn:outgoing>SequenceFlow_0f33zny</bpmn:outgoing>
140 <bpmn:script>for ( i in terms) {
141 println "line found: " + i
144 nt["term"] = "newterm"
146 return ""</bpmn:script>
148 <bpmn:association id="Association_1bcr79m" sourceRef="Task_1cfglzc" targetRef="TextAnnotation_08dib8t" />
149 <bpmn:textAnnotation id="TextAnnotation_08dib8t">
150 <bpmn:text>collect all analyze results</bpmn:text>
151 </bpmn:textAnnotation>
153 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
154 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1x8eoy3">
155 <bpmndi:BPMNShape id="Participant_0gzc3m9_di" bpmnElement="Participant_0gzc3m9">
156 <dc:Bounds x="93" y="-237" width="1444" height="543" />
158 <bpmndi:BPMNShape id="EndEvent_0bmuv13_di" bpmnElement="EndEvent_0bmuv13">
159 <dc:Bounds x="1393" y="185" width="36" height="36" />
161 <bpmndi:BPMNShape id="StartEvent_1t6nxib_di" bpmnElement="StartEvent_1t6nxib">
162 <dc:Bounds x="137" y="185" width="36" height="36" />
164 <bpmndi:BPMNEdge id="SequenceFlow_03ohp0o_di" bpmnElement="SequenceFlow_03ohp0o">
165 <di:waypoint x="1070" y="163" />
166 <di:waypoint x="1070" y="132" />
168 <bpmndi:BPMNEdge id="SequenceFlow_0okj60f_di" bpmnElement="SequenceFlow_0okj60f">
169 <di:waypoint x="701" y="203" />
170 <di:waypoint x="875" y="203" />
172 <dc:Bounds x="753" y="189" width="62" height="27" />
175 <bpmndi:BPMNEdge id="SequenceFlow_10v2c9r_di" bpmnElement="SequenceFlow_10v2c9r">
176 <di:waypoint x="676" y="228" />
177 <di:waypoint x="676" y="277" />
178 <di:waypoint x="566" y="277" />
180 <bpmndi:BPMNEdge id="SequenceFlow_1gbx7mw_di" bpmnElement="SequenceFlow_1gbx7mw">
181 <di:waypoint x="477" y="203" />
182 <di:waypoint x="530" y="203" />
184 <bpmndi:BPMNShape id="ExclusiveGateway_0pzjnfx_di" bpmnElement="ExclusiveGateway_0onybdl" isMarkerVisible="true">
185 <dc:Bounds x="651" y="178" width="50" height="50" />
187 <bpmndi:BPMNEdge id="SequenceFlow_0jebdb9_di" bpmnElement="SequenceFlow_0jebdb9">
188 <di:waypoint x="1286" y="203" />
189 <di:waypoint x="1320" y="203" />
191 <bpmndi:BPMNShape id="UserTask_0iooc2g_di" bpmnElement="Task_1e7059p">
192 <dc:Bounds x="1186" y="163" width="100" height="80" />
194 <bpmndi:BPMNShape id="IntermediateCatchEvent_1dguuge_di" bpmnElement="IntermediateThrowEvent_0zbs0zv">
195 <dc:Bounds x="409" y="96" width="36" height="36" />
197 <bpmndi:BPMNEdge id="SequenceFlow_1gdqfur_di" bpmnElement="SequenceFlow_1gdqfur">
198 <di:waypoint x="427" y="163" />
199 <di:waypoint x="427" y="132" />
201 <bpmndi:BPMNEdge id="SequenceFlow_1inwzje_di" bpmnElement="SequenceFlow_1inwzje">
202 <di:waypoint x="427" y="96" />
203 <di:waypoint x="427" y="66" />
205 <bpmndi:BPMNEdge id="SequenceFlow_0fct5f2_di" bpmnElement="SequenceFlow_0fct5f2">
206 <di:waypoint x="804" y="26" />
207 <di:waypoint x="843" y="26" />
209 <bpmndi:BPMNShape id="IntermediateCatchEvent_1vje2lu_di" bpmnElement="IntermediateThrowEvent_192yjst">
210 <dc:Bounds x="768" y="8" width="36" height="36" />
212 <bpmndi:BPMNEdge id="SequenceFlow_12s5p9s_di" bpmnElement="SequenceFlow_12s5p9s">
213 <di:waypoint x="1070" y="96" />
214 <di:waypoint x="1070" y="66" />
216 <bpmndi:BPMNEdge id="SequenceFlow_0e9hshn_di" bpmnElement="SequenceFlow_0e9hshn">
217 <di:waypoint x="530" y="277" />
218 <di:waypoint x="427" y="277" />
219 <di:waypoint x="427" y="243" />
221 <bpmndi:BPMNEdge id="SequenceFlow_0yqo6md_di" bpmnElement="SequenceFlow_0yqo6md">
222 <di:waypoint x="566" y="203" />
223 <di:waypoint x="651" y="203" />
225 <bpmndi:BPMNEdge id="SequenceFlow_0ra8hjs_di" bpmnElement="SequenceFlow_0ra8hjs">
226 <di:waypoint x="911" y="203" />
227 <di:waypoint x="1020" y="203" />
229 <bpmndi:BPMNEdge id="SequenceFlow_0tu3w40_di" bpmnElement="SequenceFlow_0tu3w40">
230 <di:waypoint x="1356" y="203" />
231 <di:waypoint x="1393" y="203" />
233 <bpmndi:BPMNShape id="IntermediateCatchEvent_15xr8tf_di" bpmnElement="IntermediateThrowEvent_0d8ns1p">
234 <dc:Bounds x="530" y="259" width="36" height="36" />
236 <bpmndi:BPMNShape id="IntermediateCatchEvent_16kp9qx_di" bpmnElement="IntermediateThrowEvent_1pwlz5c">
237 <dc:Bounds x="530" y="185" width="36" height="36" />
239 <bpmndi:BPMNShape id="IntermediateCatchEvent_1k8uu2s_di" bpmnElement="IntermediateThrowEvent_09eb9xc">
240 <dc:Bounds x="875" y="185" width="36" height="36" />
242 <bpmndi:BPMNShape id="IntermediateCatchEvent_0l6h0iz_di" bpmnElement="IntermediateThrowEvent_1rxh4ec">
243 <dc:Bounds x="1052" y="96" width="36" height="36" />
245 <bpmndi:BPMNShape id="IntermediateCatchEvent_14dhjgv_di" bpmnElement="IntermediateThrowEvent_1u3snd0">
246 <dc:Bounds x="1320" y="185" width="36" height="36" />
248 <bpmndi:BPMNShape id="Task_19kl2q9_di" bpmnElement="Task_1rt5mbt">
249 <dc:Bounds x="377" y="-14" width="100" height="80" />
251 <bpmndi:BPMNShape id="Task_1walrai_di" bpmnElement="Task_1cfglzc">
252 <dc:Bounds x="843" y="-14" width="100" height="80" />
254 <bpmndi:BPMNShape id="Task_0pek2di_di" bpmnElement="Task_1n6iu8h">
255 <dc:Bounds x="1020" y="-14" width="100" height="80" />
257 <bpmndi:BPMNShape id="ScriptTask_1ui5yru_di" bpmnElement="Task_14xmt44">
258 <dc:Bounds x="203" y="163" width="100" height="80" />
260 <bpmndi:BPMNEdge id="SequenceFlow_11xavl5_di" bpmnElement="SequenceFlow_11xavl5">
261 <di:waypoint x="173" y="203" />
262 <di:waypoint x="203" y="203" />
264 <bpmndi:BPMNEdge id="SequenceFlow_0f33zny_di" bpmnElement="SequenceFlow_0f33zny">
265 <di:waypoint x="303" y="203" />
266 <di:waypoint x="323" y="203" />
268 <bpmndi:BPMNEdge id="SequenceFlow_0ez6lnk_di" bpmnElement="SequenceFlow_0ez6lnk">
269 <di:waypoint x="1120" y="203" />
270 <di:waypoint x="1186" y="203" />
272 <bpmndi:BPMNEdge id="SequenceFlow_0h1h7gs_di" bpmnElement="SequenceFlow_0h1h7gs">
273 <di:waypoint x="477" y="26" />
274 <di:waypoint x="530" y="26" />
276 <bpmndi:BPMNEdge id="SequenceFlow_0bzf3di_di" bpmnElement="SequenceFlow_0bzf3di">
277 <di:waypoint x="726" y="26" />
278 <di:waypoint x="768" y="26" />
280 <bpmndi:BPMNShape id="ScriptTask_1wgv8e0_di" bpmnElement="Task_1slpwnp">
281 <dc:Bounds x="626" y="-14" width="100" height="80" />
283 <bpmndi:BPMNShape id="TextAnnotation_08dib8t_di" bpmnElement="TextAnnotation_08dib8t">
284 <dc:Bounds x="908" y="112" width="100" height="40" />
286 <bpmndi:BPMNEdge id="Association_1bcr79m_di" bpmnElement="Association_1bcr79m">
287 <di:waypoint x="918" y="66" />
288 <di:waypoint x="946" y="112" />
290 <bpmndi:BPMNShape id="ScriptTask_0h8sco9_di" bpmnElement="Task_1tosag4">
291 <dc:Bounds x="1020" y="163" width="100" height="80" />
293 <bpmndi:BPMNShape id="IntermediateCatchEvent_1h9izac_di" bpmnElement="IntermediateCatchEvent_1h9izac">
294 <dc:Bounds x="530" y="8" width="36" height="36" />
296 <bpmndi:BPMNEdge id="SequenceFlow_07bm292_di" bpmnElement="SequenceFlow_07bm292">
297 <di:waypoint x="566" y="26" />
298 <di:waypoint x="626" y="26" />
300 <bpmndi:BPMNShape id="ScriptTask_1yoc45k_di" bpmnElement="Task_1kanz3j">
301 <dc:Bounds x="377" y="163" width="100" height="80" />
303 <bpmndi:BPMNShape id="IntermediateCatchEvent_050nd2m_di" bpmnElement="IntermediateCatchEvent_050nd2m">
304 <dc:Bounds x="323" y="185" width="36" height="36" />
306 <bpmndi:BPMNEdge id="SequenceFlow_11ge7w6_di" bpmnElement="SequenceFlow_11ge7w6">
307 <di:waypoint x="359" y="203" />
308 <di:waypoint x="377" y="203" />
311 </bpmndi:BPMNDiagram>