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" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.10.0">
3 <bpmn:process id="CreateSDNCNetworkResource" name="CreateSDNCNetworkResource" isExecutable="true">
4 <bpmn:startEvent id="createNS_StartEvent" name="createNS_StartEvent">
5 <bpmn:outgoing>SequenceFlow_1qo2pln</bpmn:outgoing>
7 <bpmn:sequenceFlow id="SequenceFlow_1qo2pln" sourceRef="createNS_StartEvent" targetRef="Task_1dlrfiw" />
8 <bpmn:sequenceFlow id="SequenceFlow_0khtova" sourceRef="PreprocessIncomingRequest_task" targetRef="Task_0tezqd4" />
9 <bpmn:scriptTask id="PreprocessIncomingRequest_task" name="prepare SDNC Request" scriptFormat="groovy">
10 <bpmn:incoming>SequenceFlow_18l3crb</bpmn:incoming>
11 <bpmn:outgoing>SequenceFlow_0khtova</bpmn:outgoing>
12 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
13 def dcsi = new CreateSDNCNetworkResource()
14 dcsi.prepareSDNCRequest(execution)]]></bpmn:script>
16 <bpmn:endEvent id="EndEvent_1x6k78c" name="create SDNC call end">
17 <bpmn:incoming>SequenceFlow_17md60u</bpmn:incoming>
19 <bpmn:callActivity id="CallActivity_1600xlj" name="Call SDNC RSRC Create Adapter V1 " calledElement="sdncAdapter">
20 <bpmn:extensionElements>
21 <camunda:in source="CRESDNCRES_activateSDNCRequest" target="sdncAdapterWorkflowRequest" />
22 <camunda:in source="mso-request-id" target="mso-request-id" />
23 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
24 <camunda:out source="sdncAdapterResponse" target="CRENWKI_activateSDNCResponse" />
25 <camunda:out source="SDNCA_ResponseCode" target="CRESDNCRES_sdncCreateReturnCode" />
26 <camunda:out source="SDNCA_SuccessIndicator" target="CRESDNCRES_SuccessIndicator" />
27 <camunda:out source="WorkflowException" target="WorkflowException" />
28 <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
29 </bpmn:extensionElements>
30 <bpmn:incoming>SequenceFlow_15mvedq</bpmn:incoming>
31 <bpmn:outgoing>SequenceFlow_1xk5xed</bpmn:outgoing>
33 <bpmn:sequenceFlow id="SequenceFlow_1xk5xed" sourceRef="CallActivity_1600xlj" targetRef="Task_0uwlr22" />
34 <bpmn:sequenceFlow id="SequenceFlow_0ow44q0" sourceRef="Task_023hred" targetRef="ScriptTask_1g5zyi6" />
35 <bpmn:scriptTask id="Task_023hred" name="post SDNC create call">
36 <bpmn:incoming>SequenceFlow_1vnx1pp</bpmn:incoming>
37 <bpmn:outgoing>SequenceFlow_0ow44q0</bpmn:outgoing>
38 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
39 def dcsi = new CreateSDNCNetworkResource()
40 dcsi.postCreateSDNCCall(execution)]]></bpmn:script>
42 <bpmn:sequenceFlow id="SequenceFlow_0w2es8j" sourceRef="Task_1dlrfiw" targetRef="Task_13sx2bp" />
43 <bpmn:sequenceFlow id="SequenceFlow_18l3crb" sourceRef="Task_13sx2bp" targetRef="PreprocessIncomingRequest_task" />
44 <bpmn:scriptTask id="Task_1dlrfiw" name="Set the Recipe DesignTimeParam" scriptFormat="groovy">
45 <bpmn:incoming>SequenceFlow_1qo2pln</bpmn:incoming>
46 <bpmn:outgoing>SequenceFlow_0w2es8j</bpmn:outgoing>
47 <bpmn:script><![CDATA[String recipeParamXsdDemo="""{"operationType":"GRE"}"""
48 String recipeParamXsd=""
49 execution.setVariable("recipeParamXsd", recipeParamXsd)]]></bpmn:script>
51 <bpmn:scriptTask id="Task_13sx2bp" name="Pre Process Request" scriptFormat="groovy">
52 <bpmn:incoming>SequenceFlow_0w2es8j</bpmn:incoming>
53 <bpmn:outgoing>SequenceFlow_18l3crb</bpmn:outgoing>
54 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
55 def dcsi = new CreateSDNCNetworkResource()
56 dcsi.preProcessRequest(execution)]]></bpmn:script>
58 <bpmn:sequenceFlow id="SequenceFlow_1mz0vdx" sourceRef="Task_0tezqd4" targetRef="Task_18tomkl" />
59 <bpmn:sequenceFlow id="SequenceFlow_15mvedq" sourceRef="Task_18tomkl" targetRef="CallActivity_1600xlj" />
60 <bpmn:scriptTask id="Task_0tezqd4" name="Create progress update parameters before create" scriptFormat="groovy">
61 <bpmn:incoming>SequenceFlow_0khtova</bpmn:incoming>
62 <bpmn:outgoing>SequenceFlow_1mz0vdx</bpmn:outgoing>
63 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
64 def dcsi = new CreateSDNCNetworkResource()
65 dcsi.prepareUpdateBeforeCreateSDNCResource(execution)]]></bpmn:script>
67 <bpmn:scriptTask id="Task_0uwlr22" name="Create progress update parameters After create" scriptFormat="groovy">
68 <bpmn:incoming>SequenceFlow_1xk5xed</bpmn:incoming>
69 <bpmn:outgoing>SequenceFlow_1jr6zi0</bpmn:outgoing>
70 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
71 def dcsi = new CreateSDNCNetworkResource()
72 dcsi.prepareUpdateAfterCreateSDNCResource(execution)]]></bpmn:script>
74 <bpmn:serviceTask id="Task_18tomkl" name="update progress update">
75 <bpmn:extensionElements>
78 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
79 <camunda:inputParameter name="headers">
81 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
82 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
84 </camunda:inputParameter>
85 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
86 <camunda:inputParameter name="method">POST</camunda:inputParameter>
87 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
88 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
89 </camunda:inputOutput>
90 <camunda:connectorId>http-connector</camunda:connectorId>
92 </bpmn:extensionElements>
93 <bpmn:incoming>SequenceFlow_1mz0vdx</bpmn:incoming>
94 <bpmn:outgoing>SequenceFlow_15mvedq</bpmn:outgoing>
96 <bpmn:serviceTask id="ServiceTask_1cm8iwr" name="update progress update">
97 <bpmn:extensionElements>
100 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
101 <camunda:inputParameter name="headers">
103 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
104 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
106 </camunda:inputParameter>
107 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
108 <camunda:inputParameter name="method">POST</camunda:inputParameter>
109 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
110 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
111 </camunda:inputOutput>
112 <camunda:connectorId>http-connector</camunda:connectorId>
114 </bpmn:extensionElements>
115 <bpmn:incoming>SequenceFlow_1jr6zi0</bpmn:incoming>
116 <bpmn:outgoing>SequenceFlow_1vnx1pp</bpmn:outgoing>
118 <bpmn:sequenceFlow id="SequenceFlow_1jr6zi0" sourceRef="Task_0uwlr22" targetRef="ServiceTask_1cm8iwr" />
119 <bpmn:sequenceFlow id="SequenceFlow_1vnx1pp" sourceRef="ServiceTask_1cm8iwr" targetRef="Task_023hred" />
120 <bpmn:scriptTask id="ScriptTask_1g5zyi6" name="Send Sync Ack Response" scriptFormat="groovy">
121 <bpmn:incoming>SequenceFlow_0ow44q0</bpmn:incoming>
122 <bpmn:outgoing>SequenceFlow_17md60u</bpmn:outgoing>
123 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
124 def csi = new CreateSDNCNetworkResource()
125 csi.sendSyncResponse(execution)]]></bpmn:script>
127 <bpmn:sequenceFlow id="SequenceFlow_17md60u" sourceRef="ScriptTask_1g5zyi6" targetRef="EndEvent_1x6k78c" />
129 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
130 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateSDNCNetworkResource">
131 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent">
132 <dc:Bounds x="-111" y="111" width="36" height="36" />
134 <dc:Bounds x="-135" y="147" width="85" height="24" />
137 <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln">
138 <di:waypoint xsi:type="dc:Point" x="-75" y="129" />
139 <di:waypoint xsi:type="dc:Point" x="-10" y="129" />
141 <dc:Bounds x="-87.5" y="108" width="90" height="12" />
144 <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova">
145 <di:waypoint xsi:type="dc:Point" x="413" y="129" />
146 <di:waypoint xsi:type="dc:Point" x="460" y="129" />
147 <di:waypoint xsi:type="dc:Point" x="500" y="129" />
149 <dc:Bounds x="391.5" y="108" width="90" height="12" />
152 <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task">
153 <dc:Bounds x="313" y="89" width="100" height="80" />
155 <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
156 <dc:Bounds x="1040" y="317" width="36" height="36" />
158 <dc:Bounds x="1004" y="359" width="81" height="28" />
161 <bpmndi:BPMNShape id="CallActivity_1600xlj_di" bpmnElement="CallActivity_1600xlj">
162 <dc:Bounds x="109" y="295" width="100" height="80" />
164 <bpmndi:BPMNEdge id="SequenceFlow_1xk5xed_di" bpmnElement="SequenceFlow_1xk5xed">
165 <di:waypoint xsi:type="dc:Point" x="209" y="335" />
166 <di:waypoint xsi:type="dc:Point" x="302" y="335" />
168 <dc:Bounds x="210.5" y="314" width="90" height="12" />
171 <bpmndi:BPMNEdge id="SequenceFlow_0ow44q0_di" bpmnElement="SequenceFlow_0ow44q0">
172 <di:waypoint xsi:type="dc:Point" x="795" y="335" />
173 <di:waypoint xsi:type="dc:Point" x="856" y="335" />
175 <dc:Bounds x="780.5" y="314" width="90" height="12" />
178 <bpmndi:BPMNShape id="ScriptTask_0gyej62_di" bpmnElement="Task_023hred">
179 <dc:Bounds x="695" y="295" width="100" height="80" />
181 <bpmndi:BPMNEdge id="SequenceFlow_0w2es8j_di" bpmnElement="SequenceFlow_0w2es8j">
182 <di:waypoint xsi:type="dc:Point" x="90" y="129" />
183 <di:waypoint xsi:type="dc:Point" x="148" y="129" />
185 <dc:Bounds x="74" y="108" width="90" height="12" />
188 <bpmndi:BPMNEdge id="SequenceFlow_18l3crb_di" bpmnElement="SequenceFlow_18l3crb">
189 <di:waypoint xsi:type="dc:Point" x="248" y="129" />
190 <di:waypoint xsi:type="dc:Point" x="313" y="129" />
192 <dc:Bounds x="235.5" y="108" width="90" height="12" />
195 <bpmndi:BPMNShape id="ScriptTask_0lc6l7a_di" bpmnElement="Task_1dlrfiw">
196 <dc:Bounds x="-10" y="89" width="100" height="80" />
198 <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp">
199 <dc:Bounds x="148" y="89" width="100" height="80" />
201 <bpmndi:BPMNEdge id="SequenceFlow_1mz0vdx_di" bpmnElement="SequenceFlow_1mz0vdx">
202 <di:waypoint xsi:type="dc:Point" x="606" y="129" />
203 <di:waypoint xsi:type="dc:Point" x="638" y="129" />
204 <di:waypoint xsi:type="dc:Point" x="638" y="129" />
205 <di:waypoint xsi:type="dc:Point" x="738" y="129" />
207 <dc:Bounds x="608" y="123" width="90" height="12" />
210 <bpmndi:BPMNEdge id="SequenceFlow_15mvedq_di" bpmnElement="SequenceFlow_15mvedq">
211 <di:waypoint xsi:type="dc:Point" x="788" y="169" />
212 <di:waypoint xsi:type="dc:Point" x="788" y="218" />
213 <di:waypoint xsi:type="dc:Point" x="0" y="218" />
214 <di:waypoint xsi:type="dc:Point" x="0" y="335" />
215 <di:waypoint xsi:type="dc:Point" x="109" y="335" />
217 <dc:Bounds x="349" y="197" width="90" height="12" />
220 <bpmndi:BPMNShape id="ScriptTask_1kqf4ge_di" bpmnElement="Task_0tezqd4">
221 <dc:Bounds x="506" y="89" width="100" height="80" />
223 <bpmndi:BPMNShape id="ScriptTask_0hu4lhm_di" bpmnElement="Task_0uwlr22">
224 <dc:Bounds x="302" y="295" width="100" height="80" />
226 <bpmndi:BPMNShape id="ServiceTask_1q6ssz7_di" bpmnElement="Task_18tomkl">
227 <dc:Bounds x="738" y="89" width="100" height="80" />
229 <bpmndi:BPMNShape id="ServiceTask_1cm8iwr_di" bpmnElement="ServiceTask_1cm8iwr">
230 <dc:Bounds x="487" y="295" width="100" height="80" />
232 <bpmndi:BPMNEdge id="SequenceFlow_1jr6zi0_di" bpmnElement="SequenceFlow_1jr6zi0">
233 <di:waypoint xsi:type="dc:Point" x="402" y="335" />
234 <di:waypoint xsi:type="dc:Point" x="487" y="335" />
236 <dc:Bounds x="444.5" y="314" width="0" height="12" />
239 <bpmndi:BPMNEdge id="SequenceFlow_1vnx1pp_di" bpmnElement="SequenceFlow_1vnx1pp">
240 <di:waypoint xsi:type="dc:Point" x="587" y="335" />
241 <di:waypoint xsi:type="dc:Point" x="695" y="335" />
243 <dc:Bounds x="641" y="314" width="0" height="12" />
246 <bpmndi:BPMNShape id="ScriptTask_1g5zyi6_di" bpmnElement="ScriptTask_1g5zyi6">
247 <dc:Bounds x="856" y="295" width="100" height="80" />
249 <bpmndi:BPMNEdge id="SequenceFlow_17md60u_di" bpmnElement="SequenceFlow_17md60u">
250 <di:waypoint xsi:type="dc:Point" x="956" y="335" />
251 <di:waypoint xsi:type="dc:Point" x="1040" y="335" />
253 <dc:Bounds x="998" y="313" width="0" height="14" />
257 </bpmndi:BPMNDiagram>