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:endEvent id="EndEvent_0bmuv13">
9 <bpmn:incoming>SequenceFlow_0tu3w40</bpmn:incoming>
11 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1u3snd0">
12 <bpmn:incoming>SequenceFlow_0jebdb9</bpmn:incoming>
13 <bpmn:outgoing>SequenceFlow_0tu3w40</bpmn:outgoing>
14 <bpmn:timerEventDefinition>
15 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
16 </bpmn:timerEventDefinition>
17 </bpmn:intermediateCatchEvent>
18 <bpmn:userTask id="Task_1e7059p" name="download pdf" camunda:formKey="embedded:deployment:download-pdf.html">
19 <bpmn:incoming>SequenceFlow_0ez6lnk</bpmn:incoming>
20 <bpmn:outgoing>SequenceFlow_0jebdb9</bpmn:outgoing>
22 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1rxh4ec">
23 <bpmn:incoming>SequenceFlow_03ohp0o</bpmn:incoming>
24 <bpmn:outgoing>SequenceFlow_12s5p9s</bpmn:outgoing>
25 <bpmn:timerEventDefinition>
26 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
27 </bpmn:timerEventDefinition>
28 </bpmn:intermediateCatchEvent>
29 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0zbs0zv">
30 <bpmn:incoming>SequenceFlow_1gdqfur</bpmn:incoming>
31 <bpmn:outgoing>SequenceFlow_1inwzje</bpmn:outgoing>
32 <bpmn:timerEventDefinition>
33 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
34 </bpmn:timerEventDefinition>
35 </bpmn:intermediateCatchEvent>
36 <bpmn:startEvent id="StartEvent_1t6nxib" camunda:formKey="embedded:deployment:input-terms.html">
37 <bpmn:outgoing>SequenceFlow_11xavl5</bpmn:outgoing>
39 <bpmn:task id="Task_1n6iu8h" name="Report Service">
40 <bpmn:incoming>SequenceFlow_12s5p9s</bpmn:incoming>
42 <bpmn:task id="Task_1rt5mbt" name="Twitter Service">
43 <bpmn:incoming>SequenceFlow_1inwzje</bpmn:incoming>
44 <bpmn:outgoing>SequenceFlow_0h1h7gs</bpmn:outgoing>
46 <bpmn:task id="Task_1cfglzc" name="Analysis Service">
47 <bpmn:incoming>SequenceFlow_0fct5f2</bpmn:incoming>
49 <bpmn:scriptTask id="Task_1tosag4" name="Generate Report">
50 <bpmn:incoming>SequenceFlow_0ra8hjs</bpmn:incoming>
51 <bpmn:outgoing>SequenceFlow_0ez6lnk</bpmn:outgoing>
52 <bpmn:outgoing>SequenceFlow_03ohp0o</bpmn:outgoing>
53 <bpmn:script>""</bpmn:script>
55 <bpmn:scriptTask id="Task_1slpwnp" name="forward tweets to analyzer">
56 <bpmn:incoming>SequenceFlow_07bm292</bpmn:incoming>
57 <bpmn:outgoing>SequenceFlow_0bzf3di</bpmn:outgoing>
58 <bpmn:script>""</bpmn:script>
60 <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_1h9izac">
61 <bpmn:incoming>SequenceFlow_0h1h7gs</bpmn:incoming>
62 <bpmn:outgoing>SequenceFlow_07bm292</bpmn:outgoing>
63 <bpmn:timerEventDefinition id="TimerEventDefinition_0i6ti1o">
64 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
65 </bpmn:timerEventDefinition>
66 </bpmn:intermediateCatchEvent>
67 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1pwlz5c">
68 <bpmn:incoming>SequenceFlow_1gbx7mw</bpmn:incoming>
69 <bpmn:outgoing>SequenceFlow_0yqo6md</bpmn:outgoing>
70 <bpmn:timerEventDefinition>
71 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
72 </bpmn:timerEventDefinition>
73 </bpmn:intermediateCatchEvent>
74 <bpmn:exclusiveGateway id="ExclusiveGateway_0onybdl">
75 <bpmn:incoming>SequenceFlow_0yqo6md</bpmn:incoming>
76 <bpmn:outgoing>SequenceFlow_0okj60f</bpmn:outgoing>
77 <bpmn:outgoing>SequenceFlow_10v2c9r</bpmn:outgoing>
78 </bpmn:exclusiveGateway>
79 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0d8ns1p">
80 <bpmn:incoming>SequenceFlow_10v2c9r</bpmn:incoming>
81 <bpmn:outgoing>SequenceFlow_0e9hshn</bpmn:outgoing>
82 <bpmn:timerEventDefinition>
83 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
84 </bpmn:timerEventDefinition>
85 </bpmn:intermediateCatchEvent>
86 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_09eb9xc">
87 <bpmn:incoming>SequenceFlow_0okj60f</bpmn:incoming>
88 <bpmn:outgoing>SequenceFlow_0ra8hjs</bpmn:outgoing>
89 <bpmn:timerEventDefinition>
90 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
91 </bpmn:timerEventDefinition>
92 </bpmn:intermediateCatchEvent>
93 <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_192yjst">
94 <bpmn:incoming>SequenceFlow_0bzf3di</bpmn:incoming>
95 <bpmn:outgoing>SequenceFlow_0fct5f2</bpmn:outgoing>
96 <bpmn:timerEventDefinition>
97 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
98 </bpmn:timerEventDefinition>
99 </bpmn:intermediateCatchEvent>
100 <bpmn:scriptTask id="Task_1kanz3j" name="Load Twitter Data">
101 <bpmn:incoming>SequenceFlow_0e9hshn</bpmn:incoming>
102 <bpmn:incoming>SequenceFlow_11ge7w6</bpmn:incoming>
103 <bpmn:outgoing>SequenceFlow_1gdqfur</bpmn:outgoing>
104 <bpmn:outgoing>SequenceFlow_1gbx7mw</bpmn:outgoing>
105 <bpmn:script>""</bpmn:script>
107 <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_050nd2m">
108 <bpmn:incoming>SequenceFlow_0f33zny</bpmn:incoming>
109 <bpmn:outgoing>SequenceFlow_11ge7w6</bpmn:outgoing>
110 <bpmn:timerEventDefinition id="TimerEventDefinition_0nq95t6">
111 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
112 </bpmn:timerEventDefinition>
113 </bpmn:intermediateCatchEvent>
114 <bpmn:scriptTask id="Task_14xmt44" name="Input terms automated" scriptFormat="groovy" camunda:resultVariable="terms_groovy">
115 <bpmn:incoming>SequenceFlow_11xavl5</bpmn:incoming>
116 <bpmn:outgoing>SequenceFlow_0f33zny</bpmn:outgoing>
117 <bpmn:script>for ( i in terms) {
118 println "line found: " + i
121 nt["term"] = "newterm"
123 return ""</bpmn:script>
125 <bpmn:sequenceFlow id="SequenceFlow_0ez6lnk" sourceRef="Task_1tosag4" targetRef="Task_1e7059p" />
126 <bpmn:sequenceFlow id="SequenceFlow_0f33zny" sourceRef="Task_14xmt44" targetRef="IntermediateCatchEvent_050nd2m" />
127 <bpmn:sequenceFlow id="SequenceFlow_11xavl5" sourceRef="StartEvent_1t6nxib" targetRef="Task_14xmt44" />
128 <bpmn:sequenceFlow id="SequenceFlow_0tu3w40" sourceRef="IntermediateThrowEvent_1u3snd0" targetRef="EndEvent_0bmuv13" />
129 <bpmn:sequenceFlow id="SequenceFlow_0ra8hjs" sourceRef="IntermediateThrowEvent_09eb9xc" targetRef="Task_1tosag4" />
130 <bpmn:sequenceFlow id="SequenceFlow_0yqo6md" sourceRef="IntermediateThrowEvent_1pwlz5c" targetRef="ExclusiveGateway_0onybdl" />
131 <bpmn:sequenceFlow id="SequenceFlow_0e9hshn" sourceRef="IntermediateThrowEvent_0d8ns1p" targetRef="Task_1kanz3j" />
132 <bpmn:sequenceFlow id="SequenceFlow_12s5p9s" sourceRef="IntermediateThrowEvent_1rxh4ec" targetRef="Task_1n6iu8h" />
133 <bpmn:sequenceFlow id="SequenceFlow_0fct5f2" sourceRef="IntermediateThrowEvent_192yjst" targetRef="Task_1cfglzc" />
134 <bpmn:sequenceFlow id="SequenceFlow_1inwzje" sourceRef="IntermediateThrowEvent_0zbs0zv" targetRef="Task_1rt5mbt" />
135 <bpmn:sequenceFlow id="SequenceFlow_1gdqfur" sourceRef="Task_1kanz3j" targetRef="IntermediateThrowEvent_0zbs0zv" />
136 <bpmn:sequenceFlow id="SequenceFlow_0jebdb9" sourceRef="Task_1e7059p" targetRef="IntermediateThrowEvent_1u3snd0" />
137 <bpmn:sequenceFlow id="SequenceFlow_03ohp0o" sourceRef="Task_1tosag4" targetRef="IntermediateThrowEvent_1rxh4ec" />
138 <bpmn:sequenceFlow id="SequenceFlow_0okj60f" name="All terms are analyzed" sourceRef="ExclusiveGateway_0onybdl" targetRef="IntermediateThrowEvent_09eb9xc">
139 <bpmn:documentation>All terms are analyzed</bpmn:documentation>
140 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${terms}==[]</bpmn:conditionExpression>
142 <bpmn:sequenceFlow id="SequenceFlow_10v2c9r" sourceRef="ExclusiveGateway_0onybdl" targetRef="IntermediateThrowEvent_0d8ns1p" />
143 <bpmn:sequenceFlow id="SequenceFlow_1gbx7mw" sourceRef="Task_1kanz3j" targetRef="IntermediateThrowEvent_1pwlz5c" />
144 <bpmn:sequenceFlow id="SequenceFlow_0h1h7gs" sourceRef="Task_1rt5mbt" targetRef="IntermediateCatchEvent_1h9izac" />
145 <bpmn:sequenceFlow id="SequenceFlow_0bzf3di" sourceRef="Task_1slpwnp" targetRef="IntermediateThrowEvent_192yjst" />
146 <bpmn:sequenceFlow id="SequenceFlow_07bm292" sourceRef="IntermediateCatchEvent_1h9izac" targetRef="Task_1slpwnp" />
147 <bpmn:sequenceFlow id="SequenceFlow_11ge7w6" sourceRef="IntermediateCatchEvent_050nd2m" targetRef="Task_1kanz3j" />
148 <bpmn:textAnnotation id="TextAnnotation_08dib8t">
149 <bpmn:text>collect all analyze results</bpmn:text>
150 </bpmn:textAnnotation>
151 <bpmn:association id="Association_1bcr79m" sourceRef="Task_1cfglzc" targetRef="TextAnnotation_08dib8t" />
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="0" y="0" width="1380" height="352" />
158 <bpmndi:BPMNShape id="EndEvent_0bmuv13_di" bpmnElement="EndEvent_0bmuv13">
159 <dc:Bounds x="1306" y="231" width="36" height="36" />
161 <bpmndi:BPMNShape id="StartEvent_1t6nxib_di" bpmnElement="StartEvent_1t6nxib">
162 <dc:Bounds x="50" y="231" width="36" height="36" />
164 <bpmndi:BPMNEdge id="SequenceFlow_03ohp0o_di" bpmnElement="SequenceFlow_03ohp0o">
165 <di:waypoint x="983" y="209" />
166 <di:waypoint x="983" y="178" />
168 <bpmndi:BPMNEdge id="SequenceFlow_0okj60f_di" bpmnElement="SequenceFlow_0okj60f">
169 <di:waypoint x="614" y="249" />
170 <di:waypoint x="788" y="249" />
172 <dc:Bounds x="666" y="235" width="62" height="27" />
175 <bpmndi:BPMNEdge id="SequenceFlow_10v2c9r_di" bpmnElement="SequenceFlow_10v2c9r">
176 <di:waypoint x="589" y="274" />
177 <di:waypoint x="589" y="323" />
178 <di:waypoint x="479" y="323" />
180 <bpmndi:BPMNEdge id="SequenceFlow_1gbx7mw_di" bpmnElement="SequenceFlow_1gbx7mw">
181 <di:waypoint x="390" y="249" />
182 <di:waypoint x="443" y="249" />
184 <bpmndi:BPMNShape id="ExclusiveGateway_0pzjnfx_di" bpmnElement="ExclusiveGateway_0onybdl" isMarkerVisible="true">
185 <dc:Bounds x="564" y="224" width="50" height="50" />
187 <bpmndi:BPMNEdge id="SequenceFlow_0jebdb9_di" bpmnElement="SequenceFlow_0jebdb9">
188 <di:waypoint x="1199" y="249" />
189 <di:waypoint x="1233" y="249" />
191 <bpmndi:BPMNShape id="UserTask_0iooc2g_di" bpmnElement="Task_1e7059p">
192 <dc:Bounds x="1099" y="209" width="100" height="80" />
194 <bpmndi:BPMNShape id="IntermediateCatchEvent_1dguuge_di" bpmnElement="IntermediateThrowEvent_0zbs0zv">
195 <dc:Bounds x="322" y="142" width="36" height="36" />
197 <bpmndi:BPMNEdge id="SequenceFlow_1gdqfur_di" bpmnElement="SequenceFlow_1gdqfur">
198 <di:waypoint x="340" y="209" />
199 <di:waypoint x="340" y="178" />
201 <bpmndi:BPMNEdge id="SequenceFlow_1inwzje_di" bpmnElement="SequenceFlow_1inwzje">
202 <di:waypoint x="340" y="142" />
203 <di:waypoint x="340" y="112" />
205 <bpmndi:BPMNEdge id="SequenceFlow_0fct5f2_di" bpmnElement="SequenceFlow_0fct5f2">
206 <di:waypoint x="717" y="72" />
207 <di:waypoint x="756" y="72" />
209 <bpmndi:BPMNShape id="IntermediateCatchEvent_1vje2lu_di" bpmnElement="IntermediateThrowEvent_192yjst">
210 <dc:Bounds x="681" y="54" width="36" height="36" />
212 <bpmndi:BPMNEdge id="SequenceFlow_12s5p9s_di" bpmnElement="SequenceFlow_12s5p9s">
213 <di:waypoint x="983" y="142" />
214 <di:waypoint x="983" y="112" />
216 <bpmndi:BPMNEdge id="SequenceFlow_0e9hshn_di" bpmnElement="SequenceFlow_0e9hshn">
217 <di:waypoint x="443" y="323" />
218 <di:waypoint x="340" y="323" />
219 <di:waypoint x="340" y="289" />
221 <bpmndi:BPMNEdge id="SequenceFlow_0yqo6md_di" bpmnElement="SequenceFlow_0yqo6md">
222 <di:waypoint x="479" y="249" />
223 <di:waypoint x="564" y="249" />
225 <bpmndi:BPMNEdge id="SequenceFlow_0ra8hjs_di" bpmnElement="SequenceFlow_0ra8hjs">
226 <di:waypoint x="824" y="249" />
227 <di:waypoint x="933" y="249" />
229 <bpmndi:BPMNEdge id="SequenceFlow_0tu3w40_di" bpmnElement="SequenceFlow_0tu3w40">
230 <di:waypoint x="1269" y="249" />
231 <di:waypoint x="1306" y="249" />
233 <bpmndi:BPMNShape id="IntermediateCatchEvent_15xr8tf_di" bpmnElement="IntermediateThrowEvent_0d8ns1p">
234 <dc:Bounds x="443" y="305" width="36" height="36" />
236 <bpmndi:BPMNShape id="IntermediateCatchEvent_16kp9qx_di" bpmnElement="IntermediateThrowEvent_1pwlz5c">
237 <dc:Bounds x="443" y="231" width="36" height="36" />
239 <bpmndi:BPMNShape id="IntermediateCatchEvent_1k8uu2s_di" bpmnElement="IntermediateThrowEvent_09eb9xc">
240 <dc:Bounds x="788" y="231" width="36" height="36" />
242 <bpmndi:BPMNShape id="IntermediateCatchEvent_0l6h0iz_di" bpmnElement="IntermediateThrowEvent_1rxh4ec">
243 <dc:Bounds x="965" y="142" width="36" height="36" />
245 <bpmndi:BPMNShape id="IntermediateCatchEvent_14dhjgv_di" bpmnElement="IntermediateThrowEvent_1u3snd0">
246 <dc:Bounds x="1233" y="231" width="36" height="36" />
248 <bpmndi:BPMNShape id="Task_19kl2q9_di" bpmnElement="Task_1rt5mbt">
249 <dc:Bounds x="290" y="32" width="100" height="80" />
251 <bpmndi:BPMNShape id="Task_1walrai_di" bpmnElement="Task_1cfglzc">
252 <dc:Bounds x="756" y="32" width="100" height="80" />
254 <bpmndi:BPMNShape id="Task_0pek2di_di" bpmnElement="Task_1n6iu8h">
255 <dc:Bounds x="933" y="32" width="100" height="80" />
257 <bpmndi:BPMNShape id="ScriptTask_1ui5yru_di" bpmnElement="Task_14xmt44">
258 <dc:Bounds x="116" y="209" width="100" height="80" />
260 <bpmndi:BPMNEdge id="SequenceFlow_11xavl5_di" bpmnElement="SequenceFlow_11xavl5">
261 <di:waypoint x="86" y="249" />
262 <di:waypoint x="116" y="249" />
264 <bpmndi:BPMNEdge id="SequenceFlow_0f33zny_di" bpmnElement="SequenceFlow_0f33zny">
265 <di:waypoint x="216" y="249" />
266 <di:waypoint x="236" y="249" />
268 <bpmndi:BPMNEdge id="SequenceFlow_0ez6lnk_di" bpmnElement="SequenceFlow_0ez6lnk">
269 <di:waypoint x="1033" y="249" />
270 <di:waypoint x="1099" y="249" />
272 <bpmndi:BPMNEdge id="SequenceFlow_0h1h7gs_di" bpmnElement="SequenceFlow_0h1h7gs">
273 <di:waypoint x="390" y="72" />
274 <di:waypoint x="443" y="72" />
276 <bpmndi:BPMNEdge id="SequenceFlow_0bzf3di_di" bpmnElement="SequenceFlow_0bzf3di">
277 <di:waypoint x="639" y="72" />
278 <di:waypoint x="681" y="72" />
280 <bpmndi:BPMNShape id="ScriptTask_1wgv8e0_di" bpmnElement="Task_1slpwnp">
281 <dc:Bounds x="539" y="32" width="100" height="80" />
283 <bpmndi:BPMNShape id="TextAnnotation_08dib8t_di" bpmnElement="TextAnnotation_08dib8t">
284 <dc:Bounds x="821" y="158" width="100" height="40" />
286 <bpmndi:BPMNEdge id="Association_1bcr79m_di" bpmnElement="Association_1bcr79m">
287 <di:waypoint x="831" y="112" />
288 <di:waypoint x="859" y="158" />
290 <bpmndi:BPMNShape id="ScriptTask_0h8sco9_di" bpmnElement="Task_1tosag4">
291 <dc:Bounds x="933" y="209" width="100" height="80" />
293 <bpmndi:BPMNShape id="IntermediateCatchEvent_1h9izac_di" bpmnElement="IntermediateCatchEvent_1h9izac">
294 <dc:Bounds x="443" y="54" width="36" height="36" />
296 <bpmndi:BPMNEdge id="SequenceFlow_07bm292_di" bpmnElement="SequenceFlow_07bm292">
297 <di:waypoint x="479" y="72" />
298 <di:waypoint x="539" y="72" />
300 <bpmndi:BPMNShape id="ScriptTask_1yoc45k_di" bpmnElement="Task_1kanz3j">
301 <dc:Bounds x="290" y="209" width="100" height="80" />
303 <bpmndi:BPMNShape id="IntermediateCatchEvent_050nd2m_di" bpmnElement="IntermediateCatchEvent_050nd2m">
304 <dc:Bounds x="236" y="231" width="36" height="36" />
306 <bpmndi:BPMNEdge id="SequenceFlow_11ge7w6_di" bpmnElement="SequenceFlow_11ge7w6">
307 <di:waypoint x="272" y="249" />
308 <di:waypoint x="290" y="249" />
311 </bpmndi:BPMNDiagram>