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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="_DkzPAHB4EeaJwpcpVN5gXw" 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="CreateVnfInfra" name="CreateVnfInfra" isExecutable="true">
4 <bpmn2:startEvent id="StartEvent_1">
5 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
7 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="initialization" />
8 <bpmn2:scriptTask id="initialization" name="Initialization" scriptFormat="groovy">
9 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
10 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
11 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
12 CreateVnfInfra createVnf = new CreateVnfInfra()
13 createVnf.preProcessRequest(execution)]]></bpmn2:script>
15 <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="initialization" targetRef="sendResponse" />
16 <bpmn2:scriptTask id="sendResponse" name="Send Sync Response" scriptFormat="groovy">
17 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
18 <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
19 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
20 CreateVnfInfra createVnf = new CreateVnfInfra()
21 createVnf.sendSyncResponse(execution)]]></bpmn2:script>
23 <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="sendResponse" targetRef="QueryCatalogDB" />
24 <bpmn2:callActivity id="CreateVNF" name="Create VNF" calledElement="DoCreateVnf">
25 <bpmn2:extensionElements>
26 <camunda:in source="CREVI_requestId" target="msoRequestId" />
27 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
28 <camunda:in source="CREVI_serviceInstanceId" target="serviceInstanceId" />
29 <camunda:in source="CREVI_suppressRollback" target="disableRollback" />
30 <camunda:in source="CREVI_vnfModelInfo" target="vnfModelInfo" />
31 <camunda:in source="CREVI_vnfType" target="vnfType" />
32 <camunda:in source="CREVI_vnfName" target="vnfName" />
33 <camunda:in source="CREVI_vnfId" target="vnfId" />
34 <camunda:in source="CREVI_serviceId" target="productFamilyId" />
35 <camunda:in source="CREVI_vnfInputParameters" target="vnfInputParameters" />
36 <camunda:out source="vnfId" target="CREVI_vnfId" />
37 <camunda:out source="vnfOutputParameters" target="CREVI_vnfOutputParameters" />
38 <camunda:out source="WorkflowException" target="WorkflowException" />
39 <camunda:in source="CREVI_lcpCloudRegionId" target="lcpCloudRegionId" />
40 <camunda:in source="CREVI_tenantId" target="tenandId" />
41 <camunda:in source="CREVI_vnfResourceDecomposition" target="vnfResourceDecomposition" />
42 </bpmn2:extensionElements>
43 <bpmn2:incoming>SequenceFlow_0ed0uiq</bpmn2:incoming>
44 <bpmn2:outgoing>SequenceFlow_0lso26t</bpmn2:outgoing>
46 <bpmn2:subProcess id="javaErrorHandlingSubProcess" name="Java Exception Handling Sub Process" triggeredByEvent="true">
47 <bpmn2:scriptTask id="processJavaError" name="Process Error" scriptFormat="groovy">
48 <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
49 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
50 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.utils.*
51 ExceptionUtil exceptionUtil = new ExceptionUtil()
52 exceptionUtil.processJavaException(execution)]]></bpmn2:script>
54 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="processJavaError" targetRef="EndEvent_4" />
55 <bpmn2:endEvent id="EndEvent_4">
56 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
58 <bpmn2:startEvent id="StartEvent_2">
59 <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
60 <bpmn2:errorEventDefinition id="ErrorEventDefinition_3" errorRef="Error_1" />
62 <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="StartEvent_2" targetRef="processJavaError" />
64 <bpmn2:subProcess id="bpmnErrorHandlingSubProcess" name="Error Handling Sub Process" triggeredByEvent="true">
65 <bpmn2:callActivity id="callFalloutHandler" name="Call FalloutHandler" calledElement="FalloutHandler">
66 <bpmn2:extensionElements>
67 <camunda:in source="CREVI_falloutRequest" target="FalloutHandlerRequest" />
68 <camunda:in source="CREVI_requestId" target="requestId" />
69 <camunda:in source="CREVI_serviceInstanceId" target="serviceInstanceId" />
70 </bpmn2:extensionElements>
71 <bpmn2:incoming>SequenceFlow_13</bpmn2:incoming>
72 <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
74 <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="callFalloutHandler" targetRef="EndEvent_5" />
75 <bpmn2:scriptTask id="processError" name="Process Error" scriptFormat="groovy">
76 <bpmn2:incoming>SequenceFlow_15</bpmn2:incoming>
77 <bpmn2:outgoing>SequenceFlow_13</bpmn2:outgoing>
78 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
80 CreateVnfInfra createVnf = new CreateVnfInfra()
81 createVnf.prepareFalloutRequest(execution)]]></bpmn2:script>
83 <bpmn2:sequenceFlow id="SequenceFlow_13" name="" sourceRef="processError" targetRef="callFalloutHandler" />
84 <bpmn2:endEvent id="EndEvent_5">
85 <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
86 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_34" />
88 <bpmn2:scriptTask id="sendErrorResponse" name="Send Error Response" scriptFormat="groovy">
89 <bpmn2:incoming>SequenceFlow_12</bpmn2:incoming>
90 <bpmn2:outgoing>SequenceFlow_15</bpmn2:outgoing>
91 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
92 CreateVnfInfra createVnf = new CreateVnfInfra()
93 createVnf.sendErrorResponse(execution)]]></bpmn2:script>
95 <bpmn2:sequenceFlow id="SequenceFlow_15" name="" sourceRef="sendErrorResponse" targetRef="processError" />
96 <bpmn2:startEvent id="StartEvent_3">
97 <bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>
98 <bpmn2:errorEventDefinition id="ErrorEventDefinition_4" />
100 <bpmn2:sequenceFlow id="SequenceFlow_12" name="" sourceRef="StartEvent_3" targetRef="sendErrorResponse" />
102 <bpmn2:scriptTask id="postProcess" name="Prepare Completion Handler" scriptFormat="groovy">
103 <bpmn2:incoming>SequenceFlow_0lso26t</bpmn2:incoming>
104 <bpmn2:outgoing>SequenceFlow_16</bpmn2:outgoing>
105 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
106 CreateVnfInfra createVnf = new CreateVnfInfra()
107 createVnf.prepareCompletionHandlerRequest(execution)]]></bpmn2:script>
109 <bpmn2:sequenceFlow id="SequenceFlow_16" name="" sourceRef="postProcess" targetRef="callCompletionHandler" />
110 <bpmn2:endEvent id="EndEvent_3">
111 <bpmn2:incoming>SequenceFlow_17</bpmn2:incoming>
112 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_35" />
114 <bpmn2:callActivity id="callCompletionHandler" name="Completion Handler" calledElement="CompleteMsoProcess">
115 <bpmn2:extensionElements>
116 <camunda:in source="CREVI_completionHandlerRequest" target="CompleteMsoProcessRequest" />
117 <camunda:in source="CREVI_requestId" target="mso-request-id" />
118 <camunda:in source="CREVI_serviceInstanceId" target="mso-service-instance-id" />
119 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
120 </bpmn2:extensionElements>
121 <bpmn2:incoming>SequenceFlow_16</bpmn2:incoming>
122 <bpmn2:outgoing>SequenceFlow_17</bpmn2:outgoing>
123 </bpmn2:callActivity>
124 <bpmn2:sequenceFlow id="SequenceFlow_17" name="" sourceRef="callCompletionHandler" targetRef="EndEvent_3" />
125 <bpmn2:sequenceFlow id="SequenceFlow_0lso26t" sourceRef="CreateVNF" targetRef="postProcess" />
126 <bpmn2:sequenceFlow id="SequenceFlow_0ed0uiq" sourceRef="QueryCatalogDB" targetRef="CreateVNF" />
127 <bpmn2:scriptTask id="QueryCatalogDB" name="Query Catalog DB" scriptFormat="groovy">
128 <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
129 <bpmn2:outgoing>SequenceFlow_0ed0uiq</bpmn2:outgoing>
130 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
131 CreateVnfInfra createVnf = new CreateVnfInfra()
132 createVnf.queryCatalogDB(execution)]]></bpmn2:script>
135 <bpmn2:error id="Error_1" name="Java Lang Exception" errorCode="java.lang.Exception" />
136 <bpmn2:error id="Error_2" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
137 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
138 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateVnfInfra">
139 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_68" bpmnElement="StartEvent_1">
140 <dc:Bounds x="96" y="222" width="36" height="36" />
142 <dc:Bounds x="114" y="263" width="0" height="0" />
145 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_285" bpmnElement="initialization">
146 <dc:Bounds x="216" y="200" width="100" height="80" />
148 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_68" targetElement="_BPMNShape_ScriptTask_285">
149 <di:waypoint xsi:type="dc:Point" x="132" y="240" />
150 <di:waypoint xsi:type="dc:Point" x="216" y="240" />
152 <dc:Bounds x="165" y="240" width="6" height="6" />
155 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_286" bpmnElement="sendResponse">
156 <dc:Bounds x="341" y="200" width="100" height="80" />
158 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_285" targetElement="_BPMNShape_ScriptTask_286">
159 <di:waypoint xsi:type="dc:Point" x="316" y="240" />
160 <di:waypoint xsi:type="dc:Point" x="341" y="240" />
162 <dc:Bounds x="329" y="225" width="0" height="0" />
165 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_59" bpmnElement="CreateVNF">
166 <dc:Bounds x="618" y="200" width="100" height="80" />
168 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_286" targetElement="_BPMNShape_CallActivity_59">
169 <di:waypoint xsi:type="dc:Point" x="441" y="240" />
170 <di:waypoint xsi:type="dc:Point" x="478" y="240" />
172 <dc:Bounds x="460" y="225" width="0" height="0" />
175 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_228" bpmnElement="EndEvent_3">
176 <dc:Bounds x="1090" y="222" width="36" height="36" />
178 <dc:Bounds x="1108" y="263" width="0" height="0" />
181 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_32" bpmnElement="javaErrorHandlingSubProcess" isExpanded="true">
182 <dc:Bounds x="253" y="696" width="313" height="169" />
184 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_76" bpmnElement="StartEvent_2">
185 <dc:Bounds x="277" y="763" width="36" height="36" />
187 <dc:Bounds x="295" y="804" width="0" height="0" />
190 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_308" bpmnElement="processJavaError">
191 <dc:Bounds x="360" y="741" width="100" height="80" />
193 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_234" bpmnElement="EndEvent_4">
194 <dc:Bounds x="505" y="763" width="36" height="36" />
196 <dc:Bounds x="523" y="804" width="0" height="0" />
199 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_StartEvent_76" targetElement="_BPMNShape_ScriptTask_308">
200 <di:waypoint xsi:type="dc:Point" x="313" y="781" />
201 <di:waypoint xsi:type="dc:Point" x="360" y="781" />
203 <dc:Bounds x="331" y="781" width="6" height="6" />
206 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_308" targetElement="_BPMNShape_EndEvent_234">
207 <di:waypoint xsi:type="dc:Point" x="460" y="781" />
208 <di:waypoint xsi:type="dc:Point" x="505" y="781" />
210 <dc:Bounds x="477" y="781" width="6" height="6" />
213 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_33" bpmnElement="bpmnErrorHandlingSubProcess" isExpanded="true">
214 <dc:Bounds x="109" y="433" width="601" height="232" />
216 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_77" bpmnElement="StartEvent_3">
217 <dc:Bounds x="133" y="532" width="36" height="36" />
219 <dc:Bounds x="151" y="573" width="0" height="0" />
222 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_235" bpmnElement="EndEvent_5">
223 <dc:Bounds x="649" y="532" width="36" height="36" />
225 <dc:Bounds x="667" y="573" width="0" height="0" />
228 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_62" bpmnElement="callFalloutHandler">
229 <dc:Bounds x="493" y="510" width="100" height="80" />
231 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_309" bpmnElement="processError">
232 <dc:Bounds x="361" y="510" width="100" height="80" />
234 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_16" bpmnElement="SequenceFlow_12" sourceElement="_BPMNShape_StartEvent_77" targetElement="_BPMNShape_ScriptTask_312">
235 <di:waypoint xsi:type="dc:Point" x="169" y="550" />
236 <di:waypoint xsi:type="dc:Point" x="229" y="550" />
238 <dc:Bounds x="172" y="550" width="6" height="6" />
241 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_17" bpmnElement="SequenceFlow_13" sourceElement="_BPMNShape_ScriptTask_309" targetElement="_BPMNShape_CallActivity_62">
242 <di:waypoint xsi:type="dc:Point" x="461" y="550" />
243 <di:waypoint xsi:type="dc:Point" x="493" y="550" />
245 <dc:Bounds x="486" y="550" width="6" height="6" />
248 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_CallActivity_62" targetElement="_BPMNShape_EndEvent_235">
249 <di:waypoint xsi:type="dc:Point" x="593" y="550" />
250 <di:waypoint xsi:type="dc:Point" x="649" y="550" />
252 <dc:Bounds x="618" y="550" width="6" height="6" />
255 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_312" bpmnElement="sendErrorResponse">
256 <dc:Bounds x="229" y="510" width="100" height="80" />
258 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_19" bpmnElement="SequenceFlow_15" sourceElement="_BPMNShape_ScriptTask_312" targetElement="_BPMNShape_ScriptTask_309">
259 <di:waypoint xsi:type="dc:Point" x="329" y="550" />
260 <di:waypoint xsi:type="dc:Point" x="361" y="550" />
262 <dc:Bounds x="342" y="550" width="6" height="6" />
265 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_325" bpmnElement="postProcess">
266 <dc:Bounds x="766" y="200" width="100" height="80" />
268 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_20" bpmnElement="SequenceFlow_16" sourceElement="_BPMNShape_ScriptTask_325" targetElement="_BPMNShape_CallActivity_69">
269 <di:waypoint xsi:type="dc:Point" x="866" y="240" />
270 <di:waypoint xsi:type="dc:Point" x="907" y="240" />
272 <dc:Bounds x="887" y="225" width="0" height="0" />
275 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_69" bpmnElement="callCompletionHandler">
276 <dc:Bounds x="907" y="200" width="100" height="80" />
278 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_21" bpmnElement="SequenceFlow_17" sourceElement="_BPMNShape_CallActivity_69" targetElement="_BPMNShape_EndEvent_228">
279 <di:waypoint xsi:type="dc:Point" x="1007" y="240" />
280 <di:waypoint xsi:type="dc:Point" x="1090" y="240" />
282 <dc:Bounds x="1049" y="225" width="0" height="0" />
285 <bpmndi:BPMNEdge id="SequenceFlow_0lso26t_di" bpmnElement="SequenceFlow_0lso26t">
286 <di:waypoint xsi:type="dc:Point" x="718" y="240" />
287 <di:waypoint xsi:type="dc:Point" x="766" y="240" />
289 <dc:Bounds x="742" y="225" width="0" height="0" />
292 <bpmndi:BPMNEdge id="SequenceFlow_0ed0uiq_di" bpmnElement="SequenceFlow_0ed0uiq">
293 <di:waypoint xsi:type="dc:Point" x="578" y="240" />
294 <di:waypoint xsi:type="dc:Point" x="618" y="240" />
296 <dc:Bounds x="598" y="225" width="0" height="0" />
299 <bpmndi:BPMNShape id="ScriptTask_0z4xe39_di" bpmnElement="QueryCatalogDB">
300 <dc:Bounds x="478" y="200" width="100" height="80" />
303 </bpmndi:BPMNDiagram>