AT&T 1712 and 1802 release code
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / subprocess / BuildingBlock / ManualHandling.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>
2 <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="_MagIIMOUEeW8asg-vCEgWQ" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.4.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3   <bpmn2:process id="ManualHandling" name="ManualHandling" isExecutable="true">
4     <bpmn2:startEvent id="createSI_startEvent" name="Start Flow">
5       <bpmn2:outgoing>SequenceFlow_0jav6cu</bpmn2:outgoing>
6     </bpmn2:startEvent>
7     <bpmn2:endEvent id="EndEvent_3">
8       <bpmn2:incoming>SequenceFlow_14cyk9v</bpmn2:incoming>
9     </bpmn2:endEvent>
10     <bpmn2:subProcess id="SubProcess_06d8lk8" name="Java Exception Handling Sub Process" triggeredByEvent="true">
11       <bpmn2:startEvent id="StartEvent_0yljq9y">
12         <bpmn2:outgoing>SequenceFlow_0tgrn11</bpmn2:outgoing>
13         <bpmn2:errorEventDefinition />
14       </bpmn2:startEvent>
15       <bpmn2:endEvent id="EndEvent_117lkk3">
16         <bpmn2:incoming>SequenceFlow_0g4aus9</bpmn2:incoming>
17       </bpmn2:endEvent>
18       <bpmn2:sequenceFlow id="SequenceFlow_0tgrn11" sourceRef="StartEvent_0yljq9y" targetRef="processJavaError" />
19       <bpmn2:scriptTask id="processJavaError" name="Process Error" scriptFormat="groovy">
20         <bpmn2:incoming>SequenceFlow_0tgrn11</bpmn2:incoming>
21         <bpmn2:outgoing>SequenceFlow_0g4aus9</bpmn2:outgoing>
22         <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
23 ExceptionUtil exceptionUtil = new ExceptionUtil()
24 exceptionUtil.processJavaException(execution)]]></bpmn2:script>
25       </bpmn2:scriptTask>
26       <bpmn2:sequenceFlow id="SequenceFlow_0g4aus9" sourceRef="processJavaError" targetRef="EndEvent_117lkk3" />
27     </bpmn2:subProcess>
28     <bpmn2:sequenceFlow id="SequenceFlow_0jav6cu" sourceRef="createSI_startEvent" targetRef="Task_1qrt7xw" />
29     <bpmn2:sequenceFlow id="SequenceFlow_192yimz" sourceRef="ManualHandlingUserTask" targetRef="Task_0r60vxk" />
30     <bpmn2:userTask id="ManualHandlingUserTask" name="Manual Handling User Task">
31       <bpmn2:extensionElements>
32         <camunda:taskListener event="complete">
33           <camunda:script scriptFormat="groovy"><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
34 def mh = new ManualHandling()
35 mh.completeTask(task)]]></camunda:script>
36         </camunda:taskListener>
37         <camunda:properties>
38           <camunda:property />
39         </camunda:properties>
40         <camunda:taskListener event="create">
41           <camunda:script scriptFormat="groovy"><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
42 def mh = new ManualHandling()
43 mh.setTaskVariables(task)]]></camunda:script>
44         </camunda:taskListener>
45       </bpmn2:extensionElements>
46       <bpmn2:incoming>SequenceFlow_0igra4l</bpmn2:incoming>
47       <bpmn2:outgoing>SequenceFlow_192yimz</bpmn2:outgoing>
48     </bpmn2:userTask>
49     <bpmn2:sequenceFlow id="SequenceFlow_0mbjrvr" sourceRef="Task_137bzdi" targetRef="Task_1kuxfdu" />
50     <bpmn2:sequenceFlow id="SequenceFlow_0b84ki5" sourceRef="Task_1kuxfdu" targetRef="CreateAOTSRubyTicket" />
51     <bpmn2:sequenceFlow id="SequenceFlow_0zer29a" sourceRef="Task_0r60vxk" targetRef="Task_02xybqx" />
52     <bpmn2:sequenceFlow id="SequenceFlow_14cyk9v" sourceRef="Task_02xybqx" targetRef="EndEvent_3" />
53     <bpmn2:serviceTask id="Task_1kuxfdu" name="Update Infra DB Status to PENDING_MANUAL_TASK">
54       <bpmn2:extensionElements>
55         <camunda:connector>
56           <camunda:inputOutput>
57             <camunda:inputParameter name="url">${URN_mso_adapters_openecomp_db_endpoint}</camunda:inputParameter>
58             <camunda:inputParameter name="payload"><![CDATA[${execution.getVariable("setUpdateDBstatusPayload")}]]></camunda:inputParameter>
59             <camunda:inputParameter name="headers">
60               <camunda:map>
61                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
62                 <camunda:entry key="Authorization">#{BasicAuthHeaderValueDB}</camunda:entry>
63               </camunda:map>
64             </camunda:inputParameter>
65             <camunda:inputParameter name="method">POST</camunda:inputParameter>
66             <camunda:outputParameter name="updateRequestResponse"><![CDATA[${statusCode == null || statusCode == 204 ? "" : response}]]></camunda:outputParameter>
67             <camunda:outputParameter name="updateRequestResponseCode">${statusCode}</camunda:outputParameter>
68           </camunda:inputOutput>
69           <camunda:connectorId>soap-http-connector</camunda:connectorId>
70         </camunda:connector>
71       </bpmn2:extensionElements>
72       <bpmn2:incoming>SequenceFlow_0mbjrvr</bpmn2:incoming>
73       <bpmn2:outgoing>SequenceFlow_0b84ki5</bpmn2:outgoing>
74     </bpmn2:serviceTask>
75     <bpmn2:scriptTask id="Task_137bzdi" name="Prepare Requests DB Status Update to PENDING_MANUAL_TASK" scriptFormat="groovy">
76       <bpmn2:incoming>SequenceFlow_0zgg47r</bpmn2:incoming>
77       <bpmn2:outgoing>SequenceFlow_0mbjrvr</bpmn2:outgoing>
78       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
79 def mh = new ManualHandling()
80 mh.prepareRequestsDBStatusUpdate(execution, "PENDING_MANUAL_TASK")]]></bpmn2:script>
81     </bpmn2:scriptTask>
82     <bpmn2:scriptTask id="Task_0r60vxk" name="Prepare Requests DB Status Update to IN_PROGRESS" scriptFormat="groovy">
83       <bpmn2:incoming>SequenceFlow_192yimz</bpmn2:incoming>
84       <bpmn2:outgoing>SequenceFlow_0zer29a</bpmn2:outgoing>
85       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
86 def mh = new ManualHandling()
87 mh.prepareRequestsDBStatusUpdate(execution, "IN_PROGRESS")]]></bpmn2:script>
88     </bpmn2:scriptTask>
89     <bpmn2:serviceTask id="Task_02xybqx" name="Update Infra DB Status to IN_PROGRESS">
90       <bpmn2:extensionElements>
91         <camunda:connector>
92           <camunda:inputOutput>
93             <camunda:inputParameter name="url">${URN_mso_adapters_openecomp_db_endpoint}</camunda:inputParameter>
94             <camunda:inputParameter name="payload"><![CDATA[${execution.getVariable("setUpdateDBstatusPayload")}]]></camunda:inputParameter>
95             <camunda:inputParameter name="headers">
96               <camunda:map>
97                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
98                 <camunda:entry key="Authorization">#{BasicAuthHeaderValueDB}</camunda:entry>
99               </camunda:map>
100             </camunda:inputParameter>
101             <camunda:inputParameter name="method">POST</camunda:inputParameter>
102             <camunda:outputParameter name="updateRequestResponse"><![CDATA[${statusCode == null || statusCode == 204 ? "" : response}]]></camunda:outputParameter>
103             <camunda:outputParameter name="updateRequestResponseCode">${statusCode}</camunda:outputParameter>
104           </camunda:inputOutput>
105           <camunda:connectorId>soap-http-connector</camunda:connectorId>
106         </camunda:connector>
107       </bpmn2:extensionElements>
108       <bpmn2:incoming>SequenceFlow_0zer29a</bpmn2:incoming>
109       <bpmn2:outgoing>SequenceFlow_14cyk9v</bpmn2:outgoing>
110     </bpmn2:serviceTask>
111     <bpmn2:scriptTask id="Task_1qrt7xw" name="PreProcess Request" scriptFormat="groovy">
112       <bpmn2:incoming>SequenceFlow_0jav6cu</bpmn2:incoming>
113       <bpmn2:outgoing>SequenceFlow_0zgg47r</bpmn2:outgoing>
114       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
115 def mh = new ManualHandling()
116 mh.preProcessRequest(execution)]]></bpmn2:script>
117     </bpmn2:scriptTask>
118     <bpmn2:sequenceFlow id="SequenceFlow_0zgg47r" sourceRef="Task_1qrt7xw" targetRef="Task_137bzdi" />
119     <bpmn2:sequenceFlow id="SequenceFlow_0igra4l" sourceRef="CreateAOTSRubyTicket" targetRef="ManualHandlingUserTask" />
120     <bpmn2:scriptTask id="CreateAOTSRubyTicket" name="Create AOTS Ruby Ticket" scriptFormat="groovy">
121       <bpmn2:incoming>SequenceFlow_0b84ki5</bpmn2:incoming>
122       <bpmn2:outgoing>SequenceFlow_0igra4l</bpmn2:outgoing>
123       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
124 def mh = new ManualHandling()
125 mh.createAOTSTicket(execution)]]></bpmn2:script>
126     </bpmn2:scriptTask>
127   </bpmn2:process>
128   <bpmn2:error id="Error_2" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
129   <bpmn2:error id="Error_1" name="java.lang.Exception" errorCode="java.lang.Exception" />
130   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
131     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ManualHandling">
132       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_47" bpmnElement="createSI_startEvent">
133         <dc:Bounds x="152" y="79" width="36" height="36" />
134         <bpmndi:BPMNLabel>
135           <dc:Bounds x="147" y="120" width="48" height="14" />
136         </bpmndi:BPMNLabel>
137       </bpmndi:BPMNShape>
138       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_177" bpmnElement="EndEvent_3">
139         <dc:Bounds x="1286" y="79" width="36" height="36" />
140         <bpmndi:BPMNLabel>
141           <dc:Bounds x="1304" y="120" width="0" height="0" />
142         </bpmndi:BPMNLabel>
143       </bpmndi:BPMNShape>
144       <bpmndi:BPMNShape id="SubProcess_06d8lk8_di" bpmnElement="SubProcess_06d8lk8" isExpanded="true">
145         <dc:Bounds x="137" y="408" width="417" height="161" />
146       </bpmndi:BPMNShape>
147       <bpmndi:BPMNShape id="StartEvent_0yljq9y_di" bpmnElement="StartEvent_0yljq9y">
148         <dc:Bounds x="174" y="475" width="36" height="36" />
149         <bpmndi:BPMNLabel>
150           <dc:Bounds x="192" y="516" width="0" height="0" />
151         </bpmndi:BPMNLabel>
152       </bpmndi:BPMNShape>
153       <bpmndi:BPMNShape id="EndEvent_117lkk3_di" bpmnElement="EndEvent_117lkk3">
154         <dc:Bounds x="460" y="475" width="36" height="36" />
155         <bpmndi:BPMNLabel>
156           <dc:Bounds x="478" y="516" width="0" height="0" />
157         </bpmndi:BPMNLabel>
158       </bpmndi:BPMNShape>
159       <bpmndi:BPMNEdge id="SequenceFlow_0tgrn11_di" bpmnElement="SequenceFlow_0tgrn11">
160         <di:waypoint xsi:type="dc:Point" x="210" y="493" />
161         <di:waypoint xsi:type="dc:Point" x="285" y="493" />
162         <bpmndi:BPMNLabel>
163           <dc:Bounds x="248" y="478" width="0" height="0" />
164         </bpmndi:BPMNLabel>
165       </bpmndi:BPMNEdge>
166       <bpmndi:BPMNShape id="ScriptTask_0b5155c_di" bpmnElement="processJavaError">
167         <dc:Bounds x="285" y="453" width="100" height="80" />
168       </bpmndi:BPMNShape>
169       <bpmndi:BPMNEdge id="SequenceFlow_0g4aus9_di" bpmnElement="SequenceFlow_0g4aus9">
170         <di:waypoint xsi:type="dc:Point" x="385" y="493" />
171         <di:waypoint xsi:type="dc:Point" x="460" y="493" />
172         <bpmndi:BPMNLabel>
173           <dc:Bounds x="423" y="478" width="0" height="0" />
174         </bpmndi:BPMNLabel>
175       </bpmndi:BPMNEdge>
176       <bpmndi:BPMNEdge id="SequenceFlow_0jav6cu_di" bpmnElement="SequenceFlow_0jav6cu">
177         <di:waypoint xsi:type="dc:Point" x="188" y="97" />
178         <di:waypoint xsi:type="dc:Point" x="238" y="97" />
179         <bpmndi:BPMNLabel>
180           <dc:Bounds x="214" y="82" width="0" height="0" />
181         </bpmndi:BPMNLabel>
182       </bpmndi:BPMNEdge>
183       <bpmndi:BPMNEdge id="SequenceFlow_192yimz_di" bpmnElement="SequenceFlow_192yimz">
184         <di:waypoint xsi:type="dc:Point" x="944" y="97" />
185         <di:waypoint xsi:type="dc:Point" x="982" y="97" />
186         <bpmndi:BPMNLabel>
187           <dc:Bounds x="963" y="82" width="0" height="0" />
188         </bpmndi:BPMNLabel>
189       </bpmndi:BPMNEdge>
190       <bpmndi:BPMNShape id="UserTask_1krqrz1_di" bpmnElement="ManualHandlingUserTask">
191         <dc:Bounds x="844" y="57" width="100" height="80" />
192       </bpmndi:BPMNShape>
193       <bpmndi:BPMNEdge id="SequenceFlow_0mbjrvr_di" bpmnElement="SequenceFlow_0mbjrvr">
194         <di:waypoint xsi:type="dc:Point" x="483" y="97" />
195         <di:waypoint xsi:type="dc:Point" x="527" y="97" />
196         <bpmndi:BPMNLabel>
197           <dc:Bounds x="505" y="82" width="0" height="0" />
198         </bpmndi:BPMNLabel>
199       </bpmndi:BPMNEdge>
200       <bpmndi:BPMNEdge id="SequenceFlow_0b84ki5_di" bpmnElement="SequenceFlow_0b84ki5">
201         <di:waypoint xsi:type="dc:Point" x="627" y="97" />
202         <di:waypoint xsi:type="dc:Point" x="689" y="97" />
203         <bpmndi:BPMNLabel>
204           <dc:Bounds x="658" y="82" width="0" height="0" />
205         </bpmndi:BPMNLabel>
206       </bpmndi:BPMNEdge>
207       <bpmndi:BPMNEdge id="SequenceFlow_0zer29a_di" bpmnElement="SequenceFlow_0zer29a">
208         <di:waypoint xsi:type="dc:Point" x="1082" y="97" />
209         <di:waypoint xsi:type="dc:Point" x="1128" y="97" />
210         <bpmndi:BPMNLabel>
211           <dc:Bounds x="1105" y="82" width="0" height="0" />
212         </bpmndi:BPMNLabel>
213       </bpmndi:BPMNEdge>
214       <bpmndi:BPMNEdge id="SequenceFlow_14cyk9v_di" bpmnElement="SequenceFlow_14cyk9v">
215         <di:waypoint xsi:type="dc:Point" x="1228" y="97" />
216         <di:waypoint xsi:type="dc:Point" x="1286" y="97" />
217         <bpmndi:BPMNLabel>
218           <dc:Bounds x="1257" y="82" width="0" height="0" />
219         </bpmndi:BPMNLabel>
220       </bpmndi:BPMNEdge>
221       <bpmndi:BPMNShape id="ServiceTask_0c0yopb_di" bpmnElement="Task_1kuxfdu">
222         <dc:Bounds x="527" y="57" width="100" height="80" />
223       </bpmndi:BPMNShape>
224       <bpmndi:BPMNShape id="ScriptTask_1o2jyrv_di" bpmnElement="Task_137bzdi">
225         <dc:Bounds x="383" y="57" width="100" height="80" />
226       </bpmndi:BPMNShape>
227       <bpmndi:BPMNShape id="ScriptTask_1mjq23a_di" bpmnElement="Task_0r60vxk">
228         <dc:Bounds x="982" y="57" width="100" height="80" />
229       </bpmndi:BPMNShape>
230       <bpmndi:BPMNShape id="ServiceTask_1hc2ewj_di" bpmnElement="Task_02xybqx">
231         <dc:Bounds x="1128" y="57" width="100" height="80" />
232       </bpmndi:BPMNShape>
233       <bpmndi:BPMNShape id="ScriptTask_055s81f_di" bpmnElement="Task_1qrt7xw">
234         <dc:Bounds x="238" y="57" width="100" height="80" />
235       </bpmndi:BPMNShape>
236       <bpmndi:BPMNEdge id="SequenceFlow_0zgg47r_di" bpmnElement="SequenceFlow_0zgg47r">
237         <di:waypoint xsi:type="dc:Point" x="338" y="97" />
238         <di:waypoint xsi:type="dc:Point" x="383" y="97" />
239         <bpmndi:BPMNLabel>
240           <dc:Bounds x="361" y="82" width="0" height="0" />
241         </bpmndi:BPMNLabel>
242       </bpmndi:BPMNEdge>
243       <bpmndi:BPMNEdge id="SequenceFlow_0igra4l_di" bpmnElement="SequenceFlow_0igra4l">
244         <di:waypoint xsi:type="dc:Point" x="789" y="97" />
245         <di:waypoint xsi:type="dc:Point" x="844" y="97" />
246         <bpmndi:BPMNLabel>
247           <dc:Bounds x="817" y="82" width="0" height="0" />
248         </bpmndi:BPMNLabel>
249       </bpmndi:BPMNEdge>
250       <bpmndi:BPMNShape id="ScriptTask_0yhlgfw_di" bpmnElement="CreateAOTSRubyTicket">
251         <dc:Bounds x="689" y="57" width="100" height="80" />
252       </bpmndi:BPMNShape>
253     </bpmndi:BPMNPlane>
254   </bpmndi:BPMNDiagram>
255 </bpmn2:definitions>