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