]> git.somenet.org - pub/jan/aic18.git/blob - camunda-overlay/sentiment-analysis.bpmn
talking to twitter-service
[pub/jan/aic18.git] / camunda-overlay / sentiment-analysis.bpmn
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" />
5   </bpmn:collaboration>
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_0jumhlh" sourceRef="IntermediateThrowEvent_0d8ns1p" targetRef="Task_1n6iu8h" />
9     <bpmn:sequenceFlow id="SequenceFlow_14nqu0e" sourceRef="Task_1n6iu8h" targetRef="Task_1e7059p" />
10     <bpmn:sequenceFlow id="SequenceFlow_0htopx7" sourceRef="SubProcess_1skl2rb" targetRef="IntermediateThrowEvent_0d8ns1p" />
11     <bpmn:sequenceFlow id="SequenceFlow_11xavl5" sourceRef="StartEvent_1t6nxib" targetRef="SubProcess_1skl2rb" />
12     <bpmn:sequenceFlow id="SequenceFlow_0tu3w40" sourceRef="IntermediateThrowEvent_1u3snd0" targetRef="EndEvent_0bmuv13" />
13     <bpmn:sequenceFlow id="SequenceFlow_0jebdb9" sourceRef="Task_1e7059p" targetRef="IntermediateThrowEvent_1u3snd0" />
14     <bpmn:endEvent id="EndEvent_0bmuv13">
15       <bpmn:incoming>SequenceFlow_0tu3w40</bpmn:incoming>
16     </bpmn:endEvent>
17     <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1u3snd0">
18       <bpmn:incoming>SequenceFlow_0jebdb9</bpmn:incoming>
19       <bpmn:outgoing>SequenceFlow_0tu3w40</bpmn:outgoing>
20       <bpmn:timerEventDefinition>
21         <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5S</bpmn:timeDuration>
22       </bpmn:timerEventDefinition>
23     </bpmn:intermediateCatchEvent>
24     <bpmn:userTask id="Task_1e7059p" name="download pdf" camunda:formKey="embedded:deployment:download-pdf.html">
25       <bpmn:incoming>SequenceFlow_14nqu0e</bpmn:incoming>
26       <bpmn:outgoing>SequenceFlow_0jebdb9</bpmn:outgoing>
27     </bpmn:userTask>
28     <bpmn:startEvent id="StartEvent_1t6nxib" camunda:formKey="embedded:deployment:input-terms.html">
29       <bpmn:outgoing>SequenceFlow_11xavl5</bpmn:outgoing>
30     </bpmn:startEvent>
31     <bpmn:serviceTask id="Task_1n6iu8h" name="Report Service" camunda:expression="&#34;&#34;">
32       <bpmn:incoming>SequenceFlow_0jumhlh</bpmn:incoming>
33       <bpmn:outgoing>SequenceFlow_14nqu0e</bpmn:outgoing>
34     </bpmn:serviceTask>
35     <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0d8ns1p">
36       <bpmn:incoming>SequenceFlow_0htopx7</bpmn:incoming>
37       <bpmn:outgoing>SequenceFlow_0jumhlh</bpmn:outgoing>
38       <bpmn:timerEventDefinition>
39         <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5S</bpmn:timeDuration>
40       </bpmn:timerEventDefinition>
41     </bpmn:intermediateCatchEvent>
42     <bpmn:subProcess id="SubProcess_1skl2rb">
43       <bpmn:incoming>SequenceFlow_11xavl5</bpmn:incoming>
44       <bpmn:outgoing>SequenceFlow_0htopx7</bpmn:outgoing>
45       <bpmn:multiInstanceLoopCharacteristics camunda:collection="${terms.elements()}" camunda:elementVariable="term" />
46       <bpmn:startEvent id="StartEvent_1nx6b6f">
47         <bpmn:outgoing>SequenceFlow_0f6v4j4</bpmn:outgoing>
48       </bpmn:startEvent>
49       <bpmn:serviceTask id="ServiceTask_1o2usc9" name="Twitter Service">
50         <bpmn:extensionElements>
51           <camunda:connector>
52             <camunda:inputOutput>
53               <camunda:inputParameter name="url">http://twitter:8084/search/tweets.json</camunda:inputParameter>
54               <camunda:inputParameter name="method">GET</camunda:inputParameter>
55               <camunda:inputParameter name="headers">
56                 <camunda:map>
57                   <camunda:entry key="Accept">application/json</camunda:entry>
58                 </camunda:map>
59               </camunda:inputParameter>
60               <camunda:inputParameter name="payload">
61                 <camunda:script scriptFormat="Javascript">"q=${term}"</camunda:script>
62               </camunda:inputParameter>
63               <camunda:outputParameter name="tweets">
64                 <camunda:script scriptFormat="Javascript">var response = connector.getVariable("response");
65 S(response);</camunda:script>
66               </camunda:outputParameter>
67             </camunda:inputOutput>
68             <camunda:connectorId>http-connector</camunda:connectorId>
69           </camunda:connector>
70         </bpmn:extensionElements>
71         <bpmn:incoming>SequenceFlow_08cvkud</bpmn:incoming>
72         <bpmn:outgoing>SequenceFlow_0g6bfz6</bpmn:outgoing>
73       </bpmn:serviceTask>
74       <bpmn:sequenceFlow id="SequenceFlow_0f6v4j4" sourceRef="StartEvent_1nx6b6f" targetRef="IntermediateCatchEvent_18phl41" />
75       <bpmn:sequenceFlow id="SequenceFlow_0g6bfz6" sourceRef="ServiceTask_1o2usc9" targetRef="IntermediateCatchEvent_0rrmr11" />
76       <bpmn:endEvent id="EndEvent_1b95153">
77         <bpmn:incoming>SequenceFlow_1bz7zx2</bpmn:incoming>
78       </bpmn:endEvent>
79       <bpmn:sequenceFlow id="SequenceFlow_1bz7zx2" sourceRef="Task_12o1uz7" targetRef="EndEvent_1b95153" />
80       <bpmn:serviceTask id="Task_12o1uz7" name="Analysis Service" camunda:expression="&#34;&#34;">
81         <bpmn:incoming>SequenceFlow_0dcynq6</bpmn:incoming>
82         <bpmn:outgoing>SequenceFlow_1bz7zx2</bpmn:outgoing>
83       </bpmn:serviceTask>
84       <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_0rrmr11">
85         <bpmn:incoming>SequenceFlow_0g6bfz6</bpmn:incoming>
86         <bpmn:outgoing>SequenceFlow_0dcynq6</bpmn:outgoing>
87         <bpmn:timerEventDefinition id="TimerEventDefinition_0mlb6ia">
88           <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5S</bpmn:timeDuration>
89         </bpmn:timerEventDefinition>
90       </bpmn:intermediateCatchEvent>
91       <bpmn:sequenceFlow id="SequenceFlow_0dcynq6" sourceRef="IntermediateCatchEvent_0rrmr11" targetRef="Task_12o1uz7" />
92       <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_18phl41">
93         <bpmn:incoming>SequenceFlow_0f6v4j4</bpmn:incoming>
94         <bpmn:outgoing>SequenceFlow_08cvkud</bpmn:outgoing>
95         <bpmn:timerEventDefinition id="TimerEventDefinition_0n31tww">
96           <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5S</bpmn:timeDuration>
97         </bpmn:timerEventDefinition>
98       </bpmn:intermediateCatchEvent>
99       <bpmn:sequenceFlow id="SequenceFlow_08cvkud" sourceRef="IntermediateCatchEvent_18phl41" targetRef="ServiceTask_1o2usc9" />
100     </bpmn:subProcess>
101   </bpmn:process>
102   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
103     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1x8eoy3">
104       <bpmndi:BPMNShape id="Participant_0gzc3m9_di" bpmnElement="Participant_0gzc3m9">
105         <dc:Bounds x="0" y="0" width="1383" height="569" />
106       </bpmndi:BPMNShape>
107       <bpmndi:BPMNShape id="EndEvent_0bmuv13_di" bpmnElement="EndEvent_0bmuv13">
108         <dc:Bounds x="1306" y="231" width="36" height="36" />
109       </bpmndi:BPMNShape>
110       <bpmndi:BPMNShape id="StartEvent_1t6nxib_di" bpmnElement="StartEvent_1t6nxib">
111         <dc:Bounds x="50" y="231" width="36" height="36" />
112       </bpmndi:BPMNShape>
113       <bpmndi:BPMNEdge id="SequenceFlow_0jebdb9_di" bpmnElement="SequenceFlow_0jebdb9">
114         <di:waypoint x="1199" y="249" />
115         <di:waypoint x="1233" y="249" />
116       </bpmndi:BPMNEdge>
117       <bpmndi:BPMNShape id="UserTask_0iooc2g_di" bpmnElement="Task_1e7059p">
118         <dc:Bounds x="1099" y="209" width="100" height="80" />
119       </bpmndi:BPMNShape>
120       <bpmndi:BPMNEdge id="SequenceFlow_0tu3w40_di" bpmnElement="SequenceFlow_0tu3w40">
121         <di:waypoint x="1269" y="249" />
122         <di:waypoint x="1306" y="249" />
123       </bpmndi:BPMNEdge>
124       <bpmndi:BPMNShape id="IntermediateCatchEvent_15xr8tf_di" bpmnElement="IntermediateThrowEvent_0d8ns1p">
125         <dc:Bounds x="867" y="231" width="36" height="36" />
126       </bpmndi:BPMNShape>
127       <bpmndi:BPMNShape id="IntermediateCatchEvent_14dhjgv_di" bpmnElement="IntermediateThrowEvent_1u3snd0">
128         <dc:Bounds x="1233" y="231" width="36" height="36" />
129       </bpmndi:BPMNShape>
130       <bpmndi:BPMNEdge id="SequenceFlow_11xavl5_di" bpmnElement="SequenceFlow_11xavl5">
131         <di:waypoint x="86" y="249" />
132         <di:waypoint x="163" y="249" />
133         <di:waypoint x="163" y="248" />
134         <di:waypoint x="239" y="248" />
135       </bpmndi:BPMNEdge>
136       <bpmndi:BPMNShape id="SubProcess_1skl2rb_di" bpmnElement="SubProcess_1skl2rb" isExpanded="true">
137         <dc:Bounds x="239" y="165" width="552" height="164" />
138       </bpmndi:BPMNShape>
139       <bpmndi:BPMNShape id="StartEvent_1nx6b6f_di" bpmnElement="StartEvent_1nx6b6f">
140         <dc:Bounds x="260" y="228" width="36" height="36" />
141       </bpmndi:BPMNShape>
142       <bpmndi:BPMNShape id="ServiceTask_1o2usc9_di" bpmnElement="ServiceTask_1o2usc9">
143         <dc:Bounds x="388" y="206" width="100" height="80" />
144       </bpmndi:BPMNShape>
145       <bpmndi:BPMNEdge id="SequenceFlow_0f6v4j4_di" bpmnElement="SequenceFlow_0f6v4j4">
146         <di:waypoint x="296" y="246" />
147         <di:waypoint x="316" y="246" />
148       </bpmndi:BPMNEdge>
149       <bpmndi:BPMNEdge id="SequenceFlow_0g6bfz6_di" bpmnElement="SequenceFlow_0g6bfz6">
150         <di:waypoint x="488" y="246" />
151         <di:waypoint x="510" y="246" />
152       </bpmndi:BPMNEdge>
153       <bpmndi:BPMNShape id="EndEvent_1b95153_di" bpmnElement="EndEvent_1b95153">
154         <dc:Bounds x="726" y="228" width="36" height="36" />
155       </bpmndi:BPMNShape>
156       <bpmndi:BPMNEdge id="SequenceFlow_1bz7zx2_di" bpmnElement="SequenceFlow_1bz7zx2">
157         <di:waypoint x="679" y="246" />
158         <di:waypoint x="726" y="246" />
159       </bpmndi:BPMNEdge>
160       <bpmndi:BPMNEdge id="SequenceFlow_0htopx7_di" bpmnElement="SequenceFlow_0htopx7">
161         <di:waypoint x="791" y="248" />
162         <di:waypoint x="829" y="248" />
163         <di:waypoint x="829" y="249" />
164         <di:waypoint x="867" y="249" />
165       </bpmndi:BPMNEdge>
166       <bpmndi:BPMNEdge id="SequenceFlow_14nqu0e_di" bpmnElement="SequenceFlow_14nqu0e">
167         <di:waypoint x="1043" y="249" />
168         <di:waypoint x="1099" y="249" />
169       </bpmndi:BPMNEdge>
170       <bpmndi:BPMNShape id="ServiceTask_1gaqtzh_di" bpmnElement="Task_1n6iu8h">
171         <dc:Bounds x="943" y="209" width="100" height="80" />
172       </bpmndi:BPMNShape>
173       <bpmndi:BPMNEdge id="SequenceFlow_0jumhlh_di" bpmnElement="SequenceFlow_0jumhlh">
174         <di:waypoint x="903" y="249" />
175         <di:waypoint x="943" y="249" />
176       </bpmndi:BPMNEdge>
177       <bpmndi:BPMNShape id="ServiceTask_1ledx9h_di" bpmnElement="Task_12o1uz7">
178         <dc:Bounds x="579" y="206" width="100" height="80" />
179       </bpmndi:BPMNShape>
180       <bpmndi:BPMNShape id="IntermediateCatchEvent_0rrmr11_di" bpmnElement="IntermediateCatchEvent_0rrmr11">
181         <dc:Bounds x="510" y="228" width="36" height="36" />
182       </bpmndi:BPMNShape>
183       <bpmndi:BPMNEdge id="SequenceFlow_0dcynq6_di" bpmnElement="SequenceFlow_0dcynq6">
184         <di:waypoint x="546" y="246" />
185         <di:waypoint x="579" y="246" />
186       </bpmndi:BPMNEdge>
187       <bpmndi:BPMNShape id="IntermediateCatchEvent_18phl41_di" bpmnElement="IntermediateCatchEvent_18phl41">
188         <dc:Bounds x="316" y="228" width="36" height="36" />
189       </bpmndi:BPMNShape>
190       <bpmndi:BPMNEdge id="SequenceFlow_08cvkud_di" bpmnElement="SequenceFlow_08cvkud">
191         <di:waypoint x="352" y="246" />
192         <di:waypoint x="388" y="246" />
193       </bpmndi:BPMNEdge>
194     </bpmndi:BPMNPlane>
195   </bpmndi:BPMNDiagram>
196 </bpmn:definitions>