blob: 5fd2c6960885b164d74d7977ad4a0a5048b88cba [file] [log] [blame]
Yulian Han32fdbf92018-08-20 11:05:37 +08001<?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" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.11.3">
Yulian Hane992deb2018-09-20 11:30:15 +08003 <bpmn:process id="CreateDeviceResource" name="CreateDeviceResource" isExecutable="true">
Yulian Han32fdbf92018-08-20 11:05:37 +08004 <bpmn:endEvent id="EndEvent_1x6k78c" name="create Dev end">
5 <bpmn:incoming>SequenceFlow_0auvfvm</bpmn:incoming>
6 </bpmn:endEvent>
7 <bpmn:scriptTask id="ScriptTask_1g5zyi6" name="Send Sync Ack Response" scriptFormat="groovy">
8 <bpmn:incoming>SequenceFlow_05niqbf</bpmn:incoming>
9 <bpmn:outgoing>SequenceFlow_0auvfvm</bpmn:outgoing>
10 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
Yulian Hane992deb2018-09-20 11:30:15 +080011def csi = new CreateDeviceResource()
Yulian Han32fdbf92018-08-20 11:05:37 +080012csi.sendSyncResponse(execution)]]></bpmn:script>
13 </bpmn:scriptTask>
14 <bpmn:sequenceFlow id="SequenceFlow_05niqbf" sourceRef="Task_0bga3e8" targetRef="ScriptTask_1g5zyi6" />
15 <bpmn:sequenceFlow id="SequenceFlow_0auvfvm" sourceRef="ScriptTask_1g5zyi6" targetRef="EndEvent_1x6k78c" />
16 <bpmn:callActivity id="Task_0bga3e8" name="call Create SDNC Network Resource" calledElement="CreateSDNCNetworkResource">
17 <bpmn:extensionElements>
18 <camunda:in source="mso-request-id" target="mso-request-id" />
19 <camunda:in source="requestAction" target="requestAction" />
20 <camunda:in source="recipeParams" target="recipeParams" />
21 <camunda:in source="resourceInput" target="resourceInput" />
22 <camunda:in source="recipeParamXsd" target="recipeParamXsd" />
23 <camunda:in source="operationId" target="operationId" />
24 <camunda:in source="svcAction" target="svcAction" />
25 <camunda:in source="requestAction" target="requestAction" />
26 <camunda:in source="URN_mso_workflow_sdncadapter_callback" target="URN_mso_workflow_sdncadapter_callback" />
27 <camunda:in source="networkRequest" target="networkRequest" />
28 </bpmn:extensionElements>
29 <bpmn:incoming>SequenceFlow_1gu13by</bpmn:incoming>
30 <bpmn:outgoing>SequenceFlow_05niqbf</bpmn:outgoing>
31 </bpmn:callActivity>
32 <bpmn:startEvent id="StartEvent_1vjxae6" name="createDev_StartEvent">
33 <bpmn:outgoing>SequenceFlow_1rwaeun</bpmn:outgoing>
34 </bpmn:startEvent>
35 <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_1caax8u" name="GoTo StartCreateDevinSDNC">
Yulian Han76ab7b12018-11-13 20:40:26 +080036 <bpmn:incoming>SequenceFlow_1ss02ik</bpmn:incoming>
Yulian Han32fdbf92018-08-20 11:05:37 +080037 <bpmn:linkEventDefinition name="StartCreateDevinSDNC" />
38 </bpmn:intermediateThrowEvent>
39 <bpmn:scriptTask id="ScriptTask_00y93jj" name="Check DevType" scriptFormat="groovy">
40 <bpmn:incoming>SequenceFlow_0rq2jb1</bpmn:incoming>
41 <bpmn:outgoing>SequenceFlow_1hp2h5t</bpmn:outgoing>
42 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
43def dcsi = new CreateDeviceResource()
44dcsi.checkDevType(execution)]]></bpmn:script>
45 </bpmn:scriptTask>
Yulian Hane992deb2018-09-20 11:30:15 +080046 <bpmn:exclusiveGateway id="ExclusiveGateway_0kba700" name="Dev Type" default="SequenceFlow_0b5nrig">
Yulian Han32fdbf92018-08-20 11:05:37 +080047 <bpmn:incoming>SequenceFlow_1hp2h5t</bpmn:incoming>
48 <bpmn:outgoing>SequenceFlow_1ss02ik</bpmn:outgoing>
49 <bpmn:outgoing>SequenceFlow_0h4378g</bpmn:outgoing>
Yulian Hane992deb2018-09-20 11:30:15 +080050 <bpmn:outgoing>SequenceFlow_0b5nrig</bpmn:outgoing>
Yulian Han32fdbf92018-08-20 11:05:37 +080051 </bpmn:exclusiveGateway>
52 <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_1chnlq6" name="GoTo StartCreateDevinSDNC">
53 <bpmn:incoming>SequenceFlow_0h4378g</bpmn:incoming>
54 <bpmn:linkEventDefinition name="StartCreateDevinSDNC" />
55 </bpmn:intermediateThrowEvent>
Yulian Han76ab7b12018-11-13 20:40:26 +080056 <bpmn:sequenceFlow id="SequenceFlow_1ss02ik" name="VNF" sourceRef="ExclusiveGateway_0kba700" targetRef="IntermediateThrowEvent_1caax8u">
Yulian Han32fdbf92018-08-20 11:05:37 +080057 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("device_class" ) == "VNF" )}]]></bpmn:conditionExpression>
58 </bpmn:sequenceFlow>
59 <bpmn:sequenceFlow id="SequenceFlow_1hp2h5t" sourceRef="ScriptTask_00y93jj" targetRef="ExclusiveGateway_0kba700" />
60 <bpmn:sequenceFlow id="SequenceFlow_0h4378g" name="PNF" sourceRef="ExclusiveGateway_0kba700" targetRef="IntermediateThrowEvent_1chnlq6">
61 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("device_class" ) == "PNF" )}]]></bpmn:conditionExpression>
62 </bpmn:sequenceFlow>
63 <bpmn:sequenceFlow id="SequenceFlow_1rwaeun" sourceRef="StartEvent_1vjxae6" targetRef="ScriptTask_14dav1d" />
64 <bpmn:scriptTask id="ScriptTask_14dav1d" name="Pre Process Request" scriptFormat="groovy">
65 <bpmn:incoming>SequenceFlow_1rwaeun</bpmn:incoming>
66 <bpmn:outgoing>SequenceFlow_0rq2jb1</bpmn:outgoing>
67 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
68def dcsi = new CreateDeviceResource()
69dcsi.preProcessRequest(execution)]]></bpmn:script>
70 </bpmn:scriptTask>
71 <bpmn:sequenceFlow id="SequenceFlow_0rq2jb1" sourceRef="ScriptTask_14dav1d" targetRef="ScriptTask_00y93jj" />
72 <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_0slgrxw" name="StartCreateDevinSDNC">
73 <bpmn:outgoing>SequenceFlow_1gu13by</bpmn:outgoing>
74 <bpmn:linkEventDefinition name="StartCreateDevinSDNC" />
75 </bpmn:intermediateCatchEvent>
76 <bpmn:sequenceFlow id="SequenceFlow_1gu13by" sourceRef="IntermediateCatchEvent_0slgrxw" targetRef="Task_0bga3e8" />
Yulian Hane992deb2018-09-20 11:30:15 +080077 <bpmn:scriptTask id="ScriptTask_0p4b5vu" name="Prepare Create resource progress" scriptFormat="groovy">
78 <bpmn:incoming>SequenceFlow_0b5nrig</bpmn:incoming>
79 <bpmn:outgoing>SequenceFlow_09s5dfc</bpmn:outgoing>
80 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
81execution.setVariable("progress", "100")
82execution.setVariable("status", "finished")
83execution.setVariable("statusDescription", "Finished for the devType")
84def dcsi = new CreateDeviceResource()
85dcsi.prepareUpdateProgress(execution)]]></bpmn:script>
86 </bpmn:scriptTask>
87 <bpmn:sequenceFlow id="SequenceFlow_0b5nrig" sourceRef="ExclusiveGateway_0kba700" targetRef="ScriptTask_0p4b5vu" />
88 <bpmn:serviceTask id="ServiceTask_08e6hpm" name="resource progress update">
89 <bpmn:extensionElements>
90 <camunda:connector>
91 <camunda:inputOutput>
92 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
93 <camunda:inputParameter name="headers">
94 <camunda:map>
95 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
96 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
97 </camunda:map>
98 </camunda:inputParameter>
99 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
100 <camunda:inputParameter name="method">POST</camunda:inputParameter>
101 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
102 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
103 </camunda:inputOutput>
104 <camunda:connectorId>http-connector</camunda:connectorId>
105 </camunda:connector>
106 </bpmn:extensionElements>
107 <bpmn:incoming>SequenceFlow_09s5dfc</bpmn:incoming>
108 <bpmn:outgoing>SequenceFlow_0kt3xbf</bpmn:outgoing>
109 </bpmn:serviceTask>
110 <bpmn:sequenceFlow id="SequenceFlow_09s5dfc" sourceRef="ScriptTask_0p4b5vu" targetRef="ServiceTask_08e6hpm" />
111 <bpmn:endEvent id="EndEvent_0ntv40y">
112 <bpmn:incoming>SequenceFlow_0kt3xbf</bpmn:incoming>
113 </bpmn:endEvent>
114 <bpmn:sequenceFlow id="SequenceFlow_0kt3xbf" sourceRef="ServiceTask_08e6hpm" targetRef="EndEvent_0ntv40y" />
Yulian Han32fdbf92018-08-20 11:05:37 +0800115 </bpmn:process>
116 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
Yulian Hane992deb2018-09-20 11:30:15 +0800117 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateDeviceResource">
Yulian Han32fdbf92018-08-20 11:05:37 +0800118 <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
119 <dc:Bounds x="1026" y="111" width="36" height="36" />
120 <bpmndi:BPMNLabel>
121 <dc:Bounds x="994" y="153" width="75" height="12" />
122 </bpmndi:BPMNLabel>
123 </bpmndi:BPMNShape>
124 <bpmndi:BPMNShape id="ScriptTask_1g5zyi6_di" bpmnElement="ScriptTask_1g5zyi6">
125 <dc:Bounds x="494" y="89" width="100" height="80" />
126 </bpmndi:BPMNShape>
127 <bpmndi:BPMNEdge id="SequenceFlow_05niqbf_di" bpmnElement="SequenceFlow_05niqbf">
128 <di:waypoint xsi:type="dc:Point" x="191" y="129" />
129 <di:waypoint xsi:type="dc:Point" x="494" y="129" />
130 <bpmndi:BPMNLabel>
131 <dc:Bounds x="297.5" y="104" width="90" height="20" />
132 </bpmndi:BPMNLabel>
133 </bpmndi:BPMNEdge>
134 <bpmndi:BPMNEdge id="SequenceFlow_0auvfvm_di" bpmnElement="SequenceFlow_0auvfvm">
135 <di:waypoint xsi:type="dc:Point" x="594" y="129" />
136 <di:waypoint xsi:type="dc:Point" x="1026" y="129" />
137 <bpmndi:BPMNLabel>
138 <dc:Bounds x="765" y="104" width="90" height="20" />
139 </bpmndi:BPMNLabel>
140 </bpmndi:BPMNEdge>
141 <bpmndi:BPMNShape id="CallActivity_0aywvn3_di" bpmnElement="Task_0bga3e8">
142 <dc:Bounds x="91" y="89" width="100" height="80" />
143 </bpmndi:BPMNShape>
144 <bpmndi:BPMNShape id="StartEvent_1vjxae6_di" bpmnElement="StartEvent_1vjxae6">
145 <dc:Bounds x="-188" y="-145" width="36" height="36" />
146 <bpmndi:BPMNLabel>
147 <dc:Bounds x="-211" y="-109" width="88" height="24" />
148 </bpmndi:BPMNLabel>
149 </bpmndi:BPMNShape>
150 <bpmndi:BPMNShape id="IntermediateThrowEvent_1caax8u_di" bpmnElement="IntermediateThrowEvent_1caax8u">
151 <dc:Bounds x="1026" y="-145" width="36" height="36" />
152 <bpmndi:BPMNLabel>
153 <dc:Bounds x="1009" y="-104" width="78" height="36" />
154 </bpmndi:BPMNLabel>
155 </bpmndi:BPMNShape>
156 <bpmndi:BPMNShape id="ScriptTask_00y93jj_di" bpmnElement="ScriptTask_00y93jj">
157 <dc:Bounds x="141" y="-167" width="100" height="80" />
158 </bpmndi:BPMNShape>
159 <bpmndi:BPMNShape id="ExclusiveGateway_0kba700_di" bpmnElement="ExclusiveGateway_0kba700" isMarkerVisible="true">
160 <dc:Bounds x="334" y="-152" width="50" height="50" />
161 <bpmndi:BPMNLabel>
Yulian Hane992deb2018-09-20 11:30:15 +0800162 <dc:Bounds x="302" y="-166" width="48" height="12" />
Yulian Han32fdbf92018-08-20 11:05:37 +0800163 </bpmndi:BPMNLabel>
164 </bpmndi:BPMNShape>
165 <bpmndi:BPMNShape id="IntermediateThrowEvent_1chnlq6_di" bpmnElement="IntermediateThrowEvent_1chnlq6">
166 <dc:Bounds x="341" y="-28" width="36" height="36" />
167 <bpmndi:BPMNLabel>
168 <dc:Bounds x="325" y="13" width="78" height="36" />
169 </bpmndi:BPMNLabel>
170 </bpmndi:BPMNShape>
171 <bpmndi:BPMNEdge id="SequenceFlow_1ss02ik_di" bpmnElement="SequenceFlow_1ss02ik">
172 <di:waypoint xsi:type="dc:Point" x="384" y="-127" />
Yulian Han76ab7b12018-11-13 20:40:26 +0800173 <di:waypoint xsi:type="dc:Point" x="1026" y="-127" />
Yulian Han32fdbf92018-08-20 11:05:37 +0800174 <bpmndi:BPMNLabel>
Yulian Han76ab7b12018-11-13 20:40:26 +0800175 <dc:Bounds x="696.8437500000002" y="-148" width="23" height="12" />
Yulian Han32fdbf92018-08-20 11:05:37 +0800176 </bpmndi:BPMNLabel>
177 </bpmndi:BPMNEdge>
178 <bpmndi:BPMNEdge id="SequenceFlow_1hp2h5t_di" bpmnElement="SequenceFlow_1hp2h5t">
179 <di:waypoint xsi:type="dc:Point" x="241" y="-127" />
180 <di:waypoint xsi:type="dc:Point" x="334" y="-127" />
181 <bpmndi:BPMNLabel>
182 <dc:Bounds x="242.5" y="-148" width="90" height="12" />
183 </bpmndi:BPMNLabel>
184 </bpmndi:BPMNEdge>
185 <bpmndi:BPMNEdge id="SequenceFlow_0h4378g_di" bpmnElement="SequenceFlow_0h4378g">
186 <di:waypoint xsi:type="dc:Point" x="359" y="-102" />
187 <di:waypoint xsi:type="dc:Point" x="359" y="-28" />
188 <bpmndi:BPMNLabel>
189 <dc:Bounds x="365" y="-67.27272727272728" width="22" height="12" />
190 </bpmndi:BPMNLabel>
191 </bpmndi:BPMNEdge>
192 <bpmndi:BPMNEdge id="SequenceFlow_1rwaeun_di" bpmnElement="SequenceFlow_1rwaeun">
193 <di:waypoint xsi:type="dc:Point" x="-152" y="-127" />
194 <di:waypoint xsi:type="dc:Point" x="-53" y="-127" />
195 <bpmndi:BPMNLabel>
196 <dc:Bounds x="-147.5" y="-148" width="90" height="12" />
197 </bpmndi:BPMNLabel>
198 </bpmndi:BPMNEdge>
199 <bpmndi:BPMNShape id="ScriptTask_14dav1d_di" bpmnElement="ScriptTask_14dav1d">
200 <dc:Bounds x="-53" y="-167" width="100" height="80" />
201 </bpmndi:BPMNShape>
202 <bpmndi:BPMNEdge id="SequenceFlow_0rq2jb1_di" bpmnElement="SequenceFlow_0rq2jb1">
203 <di:waypoint xsi:type="dc:Point" x="47" y="-127" />
204 <di:waypoint xsi:type="dc:Point" x="141" y="-127" />
205 <bpmndi:BPMNLabel>
206 <dc:Bounds x="49" y="-148" width="90" height="12" />
207 </bpmndi:BPMNLabel>
208 </bpmndi:BPMNEdge>
209 <bpmndi:BPMNShape id="IntermediateCatchEvent_0slgrxw_di" bpmnElement="IntermediateCatchEvent_0slgrxw">
210 <dc:Bounds x="-188" y="111" width="36" height="36" />
211 <bpmndi:BPMNLabel>
212 <dc:Bounds x="-203" y="147" width="79" height="24" />
213 </bpmndi:BPMNLabel>
214 </bpmndi:BPMNShape>
215 <bpmndi:BPMNEdge id="SequenceFlow_1gu13by_di" bpmnElement="SequenceFlow_1gu13by">
216 <di:waypoint xsi:type="dc:Point" x="-152" y="129" />
217 <di:waypoint xsi:type="dc:Point" x="91" y="129" />
218 <bpmndi:BPMNLabel>
219 <dc:Bounds x="-75.5" y="108" width="90" height="12" />
220 </bpmndi:BPMNLabel>
221 </bpmndi:BPMNEdge>
Yulian Hane992deb2018-09-20 11:30:15 +0800222 <bpmndi:BPMNShape id="ScriptTask_0p4b5vu_di" bpmnElement="ScriptTask_0p4b5vu">
223 <dc:Bounds x="309" y="-290" width="100" height="80" />
224 </bpmndi:BPMNShape>
225 <bpmndi:BPMNEdge id="SequenceFlow_0b5nrig_di" bpmnElement="SequenceFlow_0b5nrig">
226 <di:waypoint xsi:type="dc:Point" x="359" y="-152" />
227 <di:waypoint xsi:type="dc:Point" x="359" y="-181" />
228 <di:waypoint xsi:type="dc:Point" x="359" y="-181" />
229 <di:waypoint xsi:type="dc:Point" x="359" y="-210" />
230 <bpmndi:BPMNLabel>
231 <dc:Bounds x="374" y="-187" width="0" height="12" />
232 </bpmndi:BPMNLabel>
233 </bpmndi:BPMNEdge>
234 <bpmndi:BPMNShape id="ServiceTask_08e6hpm_di" bpmnElement="ServiceTask_08e6hpm">
235 <dc:Bounds x="530" y="-290" width="100" height="80" />
236 </bpmndi:BPMNShape>
237 <bpmndi:BPMNEdge id="SequenceFlow_09s5dfc_di" bpmnElement="SequenceFlow_09s5dfc">
238 <di:waypoint xsi:type="dc:Point" x="409" y="-250" />
239 <di:waypoint xsi:type="dc:Point" x="477" y="-250" />
240 <di:waypoint xsi:type="dc:Point" x="477" y="-250" />
241 <di:waypoint xsi:type="dc:Point" x="530" y="-250" />
242 <bpmndi:BPMNLabel>
243 <dc:Bounds x="492" y="-256" width="0" height="12" />
244 </bpmndi:BPMNLabel>
245 </bpmndi:BPMNEdge>
246 <bpmndi:BPMNShape id="EndEvent_0ntv40y_di" bpmnElement="EndEvent_0ntv40y">
247 <dc:Bounds x="705" y="-268" width="36" height="36" />
248 <bpmndi:BPMNLabel>
249 <dc:Bounds x="723" y="-228" width="0" height="12" />
250 </bpmndi:BPMNLabel>
251 </bpmndi:BPMNShape>
252 <bpmndi:BPMNEdge id="SequenceFlow_0kt3xbf_di" bpmnElement="SequenceFlow_0kt3xbf">
253 <di:waypoint xsi:type="dc:Point" x="630" y="-250" />
254 <di:waypoint xsi:type="dc:Point" x="705" y="-250" />
255 <bpmndi:BPMNLabel>
256 <dc:Bounds x="667.5" y="-271" width="0" height="12" />
257 </bpmndi:BPMNLabel>
258 </bpmndi:BPMNEdge>
Yulian Han32fdbf92018-08-20 11:05:37 +0800259 </bpmndi:BPMNPlane>
260 </bpmndi:BPMNDiagram>
261</bpmn:definitions>