[SO] Release so 1.13.0 image
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / process / CreateVFCNSResource.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:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.10.0">
3   <bpmn:process id="CreateVFCNSResource" name="CreateVFCNSResource" isExecutable="true">
4     <bpmn:startEvent id="createNS_StartEvent" name="createNS_StartEvent">
5       <bpmn:outgoing>SequenceFlow_1qo2pln</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:sequenceFlow id="SequenceFlow_1qo2pln" sourceRef="createNS_StartEvent" targetRef="PreprocessIncomingRequest_task" />
8     <bpmn:sequenceFlow id="SequenceFlow_0khtova" sourceRef="PreprocessIncomingRequest_task" targetRef="Task_09nzhwk" />
9     <bpmn:sequenceFlow id="SequenceFlow_1uiz85h" sourceRef="Task_09nzhwk" targetRef="ExclusiveGateway_0zfksms" />
10     <bpmn:scriptTask id="Task_09nzhwk" name="Create Network Service" scriptFormat="groovy">
11       <bpmn:incoming>SequenceFlow_0khtova</bpmn:incoming>
12       <bpmn:outgoing>SequenceFlow_1uiz85h</bpmn:outgoing>
13       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
14 def dcsi = new CreateVFCNSResource()
15 dcsi.createNetworkService(execution)]]></bpmn:script>
16     </bpmn:scriptTask>
17     <bpmn:scriptTask id="PreprocessIncomingRequest_task" name="Preprocess Incoming Request" scriptFormat="groovy">
18       <bpmn:incoming>SequenceFlow_1qo2pln</bpmn:incoming>
19       <bpmn:outgoing>SequenceFlow_0khtova</bpmn:outgoing>
20       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
21 def dcsi = new CreateVFCNSResource()
22 dcsi.preProcessRequest(execution)]]></bpmn:script>
23     </bpmn:scriptTask>
24     <bpmn:scriptTask id="instantiate_NSTask" name="Instantiate Network Service" scriptFormat="groovy">
25       <bpmn:incoming>createNSSuccess_SequenceFlow</bpmn:incoming>
26       <bpmn:outgoing>SequenceFlow_1ywe21t</bpmn:outgoing>
27       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
28 def dcsi = new CreateVFCNSResource()
29 dcsi.instantiateNetworkService(execution)]]></bpmn:script>
30     </bpmn:scriptTask>
31     <bpmn:exclusiveGateway id="ExclusiveGateway_0zfksms" name="Create NS Success?">
32       <bpmn:incoming>SequenceFlow_1uiz85h</bpmn:incoming>
33       <bpmn:outgoing>createNSSuccess_SequenceFlow</bpmn:outgoing>
34       <bpmn:outgoing>createNSFailed_SequenceFlow</bpmn:outgoing>
35     </bpmn:exclusiveGateway>
36     <bpmn:sequenceFlow id="createNSSuccess_SequenceFlow" name="yes" sourceRef="ExclusiveGateway_0zfksms" targetRef="instantiate_NSTask">
37       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("nsInstanceId" )  != null && execution.getVariable("nsInstanceId" )  != "" )}]]></bpmn:conditionExpression>
38     </bpmn:sequenceFlow>
39     <bpmn:sequenceFlow id="createNSFailed_SequenceFlow" name="no" sourceRef="ExclusiveGateway_0zfksms" targetRef="createNSFailed_EndEvent">
40       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("nsInstanceId" )  == null || execution.getVariable("nsInstanceId" )  == "" )}]]></bpmn:conditionExpression>
41     </bpmn:sequenceFlow>
42     <bpmn:exclusiveGateway id="ExclusiveGateway_1is7zys" name="Instantiate NS Success?">
43       <bpmn:incoming>SequenceFlow_1ywe21t</bpmn:incoming>
44       <bpmn:outgoing>instantiateFailed_SequenceFlow</bpmn:outgoing>
45       <bpmn:outgoing>instantiateSuccess_SequenceFlow</bpmn:outgoing>
46     </bpmn:exclusiveGateway>
47     <bpmn:sequenceFlow id="SequenceFlow_1ywe21t" sourceRef="instantiate_NSTask" targetRef="ExclusiveGateway_1is7zys" />
48     <bpmn:sequenceFlow id="instantiateFailed_SequenceFlow" name="no" sourceRef="ExclusiveGateway_1is7zys" targetRef="EndEvent_1gkvvpn">
49       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("jobId" )  == null || execution.getVariable("jobId" )  == "" )}]]></bpmn:conditionExpression>
50     </bpmn:sequenceFlow>
51     <bpmn:sequenceFlow id="instantiateSuccess_SequenceFlow" name="yes" sourceRef="ExclusiveGateway_1is7zys" targetRef="queryJob_Task">
52       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("jobId" )  != null && execution.getVariable("jobId" )  != "" )}]]></bpmn:conditionExpression>
53     </bpmn:sequenceFlow>
54     <bpmn:exclusiveGateway id="ExclusiveGateway_15492gl" name="Instantiate Finished?">
55       <bpmn:incoming>SequenceFlow_0xqo13p</bpmn:incoming>
56       <bpmn:outgoing>operationFinished_SequenceFlow</bpmn:outgoing>
57       <bpmn:outgoing>operationProcessing_SequenceFlow</bpmn:outgoing>
58     </bpmn:exclusiveGateway>
59     <bpmn:sequenceFlow id="operationFinished_SequenceFlow" name="yes" sourceRef="ExclusiveGateway_15492gl" targetRef="finishNSCreate_Task">
60       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("operationStatus" )  != "processing" )}]]></bpmn:conditionExpression>
61     </bpmn:sequenceFlow>
62     <bpmn:sequenceFlow id="operationProcessing_SequenceFlow" name="no" sourceRef="ExclusiveGateway_15492gl" targetRef="timeDelay_Task">
63       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("operationStatus" )  == "processing" )}]]></bpmn:conditionExpression>
64     </bpmn:sequenceFlow>
65     <bpmn:sequenceFlow id="SequenceFlow_0cq2q6g" sourceRef="finishNSCreate_Task" targetRef="ScriptTask_1890l78" />
66     <bpmn:endEvent id="createNSFailed_EndEvent" name="createNSFailed">
67       <bpmn:incoming>createNSFailed_SequenceFlow</bpmn:incoming>
68     </bpmn:endEvent>
69     <bpmn:endEvent id="EndEvent_1gkvvpn">
70       <bpmn:incoming>instantiateFailed_SequenceFlow</bpmn:incoming>
71     </bpmn:endEvent>
72     <bpmn:endEvent id="EndEvent_1x6k78c">
73       <bpmn:incoming>SequenceFlow_1lwqmo9</bpmn:incoming>
74     </bpmn:endEvent>
75     <bpmn:scriptTask id="queryJob_Task" name="Query NS Progress" scriptFormat="groovy">
76       <bpmn:incoming>instantiateSuccess_SequenceFlow</bpmn:incoming>
77       <bpmn:incoming>SequenceFlow_1gsbpxj</bpmn:incoming>
78       <bpmn:outgoing>SequenceFlow_0xqo13p</bpmn:outgoing>
79       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
80 def dcsi = new CreateVFCNSResource()
81 dcsi.queryNSProgress(execution)]]></bpmn:script>
82     </bpmn:scriptTask>
83     <bpmn:scriptTask id="finishNSCreate_Task" name="Add NS Relationship" scriptFormat="groovy">
84       <bpmn:incoming>operationFinished_SequenceFlow</bpmn:incoming>
85       <bpmn:outgoing>SequenceFlow_0cq2q6g</bpmn:outgoing>
86       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
87 def dcsi = new CreateVFCNSResource()
88 dcsi.addNSRelationship(execution)]]></bpmn:script>
89     </bpmn:scriptTask>
90     <bpmn:sequenceFlow id="SequenceFlow_0xqo13p" sourceRef="queryJob_Task" targetRef="ExclusiveGateway_15492gl" />
91     <bpmn:scriptTask id="timeDelay_Task" name="timeDelay" scriptFormat="groovy">
92       <bpmn:incoming>operationProcessing_SequenceFlow</bpmn:incoming>
93       <bpmn:outgoing>SequenceFlow_1gsbpxj</bpmn:outgoing>
94       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
95 def dcsi = new CreateVFCNSResource()
96 dcsi.timeDelay(execution)]]></bpmn:script>
97     </bpmn:scriptTask>
98     <bpmn:sequenceFlow id="SequenceFlow_1gsbpxj" sourceRef="timeDelay_Task" targetRef="queryJob_Task" />
99     <bpmn:scriptTask id="ScriptTask_1890l78" name="Send Sync Ack Response" scriptFormat="groovy">
100       <bpmn:incoming>SequenceFlow_0cq2q6g</bpmn:incoming>
101       <bpmn:outgoing>SequenceFlow_1lwqmo9</bpmn:outgoing>
102       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
103 def csi = new  CreateVFCNSResource()
104 csi.sendSyncResponse(execution)]]></bpmn:script>
105     </bpmn:scriptTask>
106     <bpmn:sequenceFlow id="SequenceFlow_1lwqmo9" sourceRef="ScriptTask_1890l78" targetRef="EndEvent_1x6k78c" />
107   </bpmn:process>
108   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
109     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateVFCNSResource">
110       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent">
111         <dc:Bounds x="175" y="111" width="36" height="36" />
112         <bpmndi:BPMNLabel>
113           <dc:Bounds x="152" y="147" width="83" height="24" />
114         </bpmndi:BPMNLabel>
115       </bpmndi:BPMNShape>
116       <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln">
117         <di:waypoint xsi:type="dc:Point" x="211" y="129" />
118         <di:waypoint xsi:type="dc:Point" x="251" y="129" />
119         <di:waypoint xsi:type="dc:Point" x="251" y="129" />
120         <di:waypoint xsi:type="dc:Point" x="293" y="129" />
121         <bpmndi:BPMNLabel>
122           <dc:Bounds x="266" y="123" width="0" height="12" />
123         </bpmndi:BPMNLabel>
124       </bpmndi:BPMNEdge>
125       <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova">
126         <di:waypoint xsi:type="dc:Point" x="393" y="129" />
127         <di:waypoint xsi:type="dc:Point" x="479" y="129" />
128         <bpmndi:BPMNLabel>
129           <dc:Bounds x="436" y="108" width="0" height="12" />
130         </bpmndi:BPMNLabel>
131       </bpmndi:BPMNEdge>
132       <bpmndi:BPMNEdge id="SequenceFlow_1uiz85h_di" bpmnElement="SequenceFlow_1uiz85h">
133         <di:waypoint xsi:type="dc:Point" x="579" y="129" />
134         <di:waypoint xsi:type="dc:Point" x="683" y="129" />
135         <bpmndi:BPMNLabel>
136           <dc:Bounds x="631" y="108" width="0" height="12" />
137         </bpmndi:BPMNLabel>
138       </bpmndi:BPMNEdge>
139       <bpmndi:BPMNShape id="ScriptTask_1dw39hg_di" bpmnElement="Task_09nzhwk">
140         <dc:Bounds x="479" y="89" width="100" height="80" />
141       </bpmndi:BPMNShape>
142       <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task">
143         <dc:Bounds x="293" y="89" width="100" height="80" />
144       </bpmndi:BPMNShape>
145       <bpmndi:BPMNShape id="ScriptTask_1qmmew8_di" bpmnElement="instantiate_NSTask">
146         <dc:Bounds x="839" y="89" width="100" height="80" />
147       </bpmndi:BPMNShape>
148       <bpmndi:BPMNShape id="ExclusiveGateway_0zfksms_di" bpmnElement="ExclusiveGateway_0zfksms" isMarkerVisible="true">
149         <dc:Bounds x="683" y="104" width="50" height="50" />
150         <bpmndi:BPMNLabel>
151           <dc:Bounds x="685" y="158" width="52" height="24" />
152         </bpmndi:BPMNLabel>
153       </bpmndi:BPMNShape>
154       <bpmndi:BPMNEdge id="SequenceFlow_1rt03zl_di" bpmnElement="createNSSuccess_SequenceFlow">
155         <di:waypoint xsi:type="dc:Point" x="733" y="129" />
156         <di:waypoint xsi:type="dc:Point" x="839" y="129" />
157         <bpmndi:BPMNLabel>
158           <dc:Bounds x="777" y="108" width="19" height="12" />
159         </bpmndi:BPMNLabel>
160       </bpmndi:BPMNEdge>
161       <bpmndi:BPMNEdge id="SequenceFlow_0df541u_di" bpmnElement="createNSFailed_SequenceFlow">
162         <di:waypoint xsi:type="dc:Point" x="708" y="104" />
163         <di:waypoint xsi:type="dc:Point" x="708" y="33" />
164         <bpmndi:BPMNLabel>
165           <dc:Bounds x="717" y="63" width="12" height="12" />
166         </bpmndi:BPMNLabel>
167       </bpmndi:BPMNEdge>
168       <bpmndi:BPMNShape id="ExclusiveGateway_1is7zys_di" bpmnElement="ExclusiveGateway_1is7zys" isMarkerVisible="true">
169         <dc:Bounds x="1034" y="105" width="50" height="50" />
170         <bpmndi:BPMNLabel>
171           <dc:Bounds x="1029" y="159" width="69" height="24" />
172         </bpmndi:BPMNLabel>
173       </bpmndi:BPMNShape>
174       <bpmndi:BPMNEdge id="SequenceFlow_1ywe21t_di" bpmnElement="SequenceFlow_1ywe21t">
175         <di:waypoint xsi:type="dc:Point" x="939" y="129" />
176         <di:waypoint xsi:type="dc:Point" x="1034" y="130" />
177         <bpmndi:BPMNLabel>
178           <dc:Bounds x="986.5" y="108.5" width="0" height="12" />
179         </bpmndi:BPMNLabel>
180       </bpmndi:BPMNEdge>
181       <bpmndi:BPMNEdge id="SequenceFlow_0j7xo94_di" bpmnElement="instantiateFailed_SequenceFlow">
182         <di:waypoint xsi:type="dc:Point" x="1059" y="105" />
183         <di:waypoint xsi:type="dc:Point" x="1059" y="33" />
184         <bpmndi:BPMNLabel>
185           <dc:Bounds x="1068" y="63" width="12" height="12" />
186         </bpmndi:BPMNLabel>
187       </bpmndi:BPMNEdge>
188       <bpmndi:BPMNEdge id="SequenceFlow_1ui2n9l_di" bpmnElement="instantiateSuccess_SequenceFlow">
189         <di:waypoint xsi:type="dc:Point" x="1059" y="155" />
190         <di:waypoint xsi:type="dc:Point" x="1059" y="271" />
191         <bpmndi:BPMNLabel>
192           <dc:Bounds x="1066" y="207" width="19" height="12" />
193         </bpmndi:BPMNLabel>
194       </bpmndi:BPMNEdge>
195       <bpmndi:BPMNShape id="ExclusiveGateway_15492gl_di" bpmnElement="ExclusiveGateway_15492gl" isMarkerVisible="true">
196         <dc:Bounds x="1034" y="570" width="50" height="50" />
197         <bpmndi:BPMNLabel>
198           <dc:Bounds x="1038" y="624" width="50" height="24" />
199         </bpmndi:BPMNLabel>
200       </bpmndi:BPMNShape>
201       <bpmndi:BPMNEdge id="SequenceFlow_0hftgi6_di" bpmnElement="operationFinished_SequenceFlow">
202         <di:waypoint xsi:type="dc:Point" x="1034" y="595" />
203         <di:waypoint xsi:type="dc:Point" x="902" y="595" />
204         <bpmndi:BPMNLabel>
205           <dc:Bounds x="929.1428571428571" y="574" width="18" height="14" />
206         </bpmndi:BPMNLabel>
207       </bpmndi:BPMNEdge>
208       <bpmndi:BPMNEdge id="SequenceFlow_0omec46_di" bpmnElement="operationProcessing_SequenceFlow">
209         <di:waypoint xsi:type="dc:Point" x="1084" y="595" />
210         <di:waypoint xsi:type="dc:Point" x="1212" y="595" />
211         <di:waypoint xsi:type="dc:Point" x="1212" y="486" />
212         <bpmndi:BPMNLabel>
213           <dc:Bounds x="1131" y="607" width="12" height="12" />
214         </bpmndi:BPMNLabel>
215       </bpmndi:BPMNEdge>
216       <bpmndi:BPMNEdge id="SequenceFlow_0cq2q6g_di" bpmnElement="SequenceFlow_0cq2q6g">
217         <di:waypoint xsi:type="dc:Point" x="802" y="595" />
218         <di:waypoint xsi:type="dc:Point" x="690" y="595" />
219         <bpmndi:BPMNLabel>
220           <dc:Bounds x="701" y="574" width="90" height="12" />
221         </bpmndi:BPMNLabel>
222       </bpmndi:BPMNEdge>
223       <bpmndi:BPMNShape id="EndEvent_1ido9wi_di" bpmnElement="createNSFailed_EndEvent">
224         <dc:Bounds x="690" y="-3" width="36" height="36" />
225         <bpmndi:BPMNLabel>
226           <dc:Bounds x="626" y="37" width="75" height="12" />
227         </bpmndi:BPMNLabel>
228       </bpmndi:BPMNShape>
229       <bpmndi:BPMNShape id="EndEvent_0xgvlmx_di" bpmnElement="EndEvent_1gkvvpn">
230         <dc:Bounds x="1041" y="-3" width="36" height="36" />
231         <bpmndi:BPMNLabel>
232           <dc:Bounds x="1014" y="37" width="0" height="12" />
233         </bpmndi:BPMNLabel>
234       </bpmndi:BPMNShape>
235       <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
236         <dc:Bounds x="484" y="577" width="36" height="36" />
237         <bpmndi:BPMNLabel>
238           <dc:Bounds x="412" y="617" width="90" height="12" />
239         </bpmndi:BPMNLabel>
240       </bpmndi:BPMNShape>
241       <bpmndi:BPMNShape id="ScriptTask_0sxy5we_di" bpmnElement="queryJob_Task">
242         <dc:Bounds x="1009" y="271" width="100" height="80" />
243       </bpmndi:BPMNShape>
244       <bpmndi:BPMNShape id="ScriptTask_0xxyfku_di" bpmnElement="finishNSCreate_Task">
245         <dc:Bounds x="802" y="555" width="100" height="80" />
246       </bpmndi:BPMNShape>
247       <bpmndi:BPMNEdge id="SequenceFlow_0xqo13p_di" bpmnElement="SequenceFlow_0xqo13p">
248         <di:waypoint xsi:type="dc:Point" x="1059" y="351" />
249         <di:waypoint xsi:type="dc:Point" x="1059" y="570" />
250         <bpmndi:BPMNLabel>
251           <dc:Bounds x="1074" y="454.5" width="0" height="12" />
252         </bpmndi:BPMNLabel>
253       </bpmndi:BPMNEdge>
254       <bpmndi:BPMNShape id="ScriptTask_0rb5agx_di" bpmnElement="timeDelay_Task">
255         <dc:Bounds x="1162" y="406" width="100" height="80" />
256       </bpmndi:BPMNShape>
257       <bpmndi:BPMNEdge id="SequenceFlow_1gsbpxj_di" bpmnElement="SequenceFlow_1gsbpxj">
258         <di:waypoint xsi:type="dc:Point" x="1212" y="406" />
259         <di:waypoint xsi:type="dc:Point" x="1212" y="311" />
260         <di:waypoint xsi:type="dc:Point" x="1109" y="311" />
261         <bpmndi:BPMNLabel>
262           <dc:Bounds x="1227" y="352.5" width="0" height="12" />
263         </bpmndi:BPMNLabel>
264       </bpmndi:BPMNEdge>
265       <bpmndi:BPMNShape id="ScriptTask_1890l78_di" bpmnElement="ScriptTask_1890l78">
266         <dc:Bounds x="590" y="555" width="100" height="80" />
267       </bpmndi:BPMNShape>
268       <bpmndi:BPMNEdge id="SequenceFlow_1lwqmo9_di" bpmnElement="SequenceFlow_1lwqmo9">
269         <di:waypoint xsi:type="dc:Point" x="590" y="595" />
270         <di:waypoint xsi:type="dc:Point" x="520" y="595" />
271         <bpmndi:BPMNLabel>
272           <dc:Bounds x="555" y="573" width="0" height="14" />
273         </bpmndi:BPMNLabel>
274       </bpmndi:BPMNEdge>
275     </bpmndi:BPMNPlane>
276   </bpmndi:BPMNDiagram>
277 </bpmn:definitions>