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.16.2">
3 <bpmn:process id="ActivateSDNCNetworkResource" name="ActivateSDNCNetworkResource" isExecutable="true">
4 <bpmn:startEvent id="createNS_StartEvent" name="createNS_StartEvent">
5 <bpmn:outgoing>SequenceFlow_1c92ks3</bpmn:outgoing>
7 <bpmn:endEvent id="EndEvent_1x6k78c" name="create SDNC call end">
8 <bpmn:incoming>SequenceFlow_17md60u</bpmn:incoming>
10 <bpmn:callActivity id="CallActivity_1600xlj" name="Call SDNC resource activate Adapter V1 " calledElement="sdncAdapter">
11 <bpmn:extensionElements>
12 <camunda:in source="CRESDNCRES_activateSDNCRequest" target="sdncAdapterWorkflowRequest" />
13 <camunda:in source="mso-request-id" target="mso-request-id" />
14 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
15 <camunda:out source="sdncAdapterResponse" target="CRENWKI_activateSDNCResponse" />
16 <camunda:out source="SDNCA_ResponseCode" target="CRESDNCRES_sdncCreateReturnCode" />
17 <camunda:out source="SDNCA_SuccessIndicator" target="CRESDNCRES_SuccessIndicator" />
18 <camunda:out source="WorkflowException" target="WorkflowException" />
19 <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
20 </bpmn:extensionElements>
21 <bpmn:incoming>SequenceFlow_18l3crb</bpmn:incoming>
22 <bpmn:outgoing>SequenceFlow_1xk5xed</bpmn:outgoing>
24 <bpmn:sequenceFlow id="SequenceFlow_1xk5xed" sourceRef="CallActivity_1600xlj" targetRef="Task_0uwlr22" />
25 <bpmn:sequenceFlow id="SequenceFlow_0ow44q0" sourceRef="Task_023hred" targetRef="ScriptTask_1g5zyi6" />
26 <bpmn:scriptTask id="Task_023hred" name="post SDNC activate call">
27 <bpmn:incoming>SequenceFlow_1vnx1pp</bpmn:incoming>
28 <bpmn:outgoing>SequenceFlow_0ow44q0</bpmn:outgoing>
29 <bpmn:script>import org.openecomp.mso.bpmn.infrastructure.scripts.*
30 def dcsi = new ActivateSDNCNetworkResource()
31 dcsi.postCreateSDNCCall(execution)</bpmn:script>
33 <bpmn:sequenceFlow id="SequenceFlow_18l3crb" sourceRef="Task_13sx2bp" targetRef="CallActivity_1600xlj" />
34 <bpmn:scriptTask id="Task_13sx2bp" name="Pre Process Request" scriptFormat="groovy">
35 <bpmn:incoming>SequenceFlow_1c92ks3</bpmn:incoming>
36 <bpmn:outgoing>SequenceFlow_18l3crb</bpmn:outgoing>
37 <bpmn:script>import org.openecomp.mso.bpmn.infrastructure.scripts.*
38 def dcsi = new ActivateSDNCNetworkResource()
39 dcsi.preProcessRequest(execution)</bpmn:script>
41 <bpmn:scriptTask id="Task_0uwlr22" name="Create progress update parameters After create" scriptFormat="groovy">
42 <bpmn:incoming>SequenceFlow_1xk5xed</bpmn:incoming>
43 <bpmn:outgoing>SequenceFlow_1jr6zi0</bpmn:outgoing>
44 <bpmn:script>import org.openecomp.mso.bpmn.infrastructure.scripts.*
45 def dcsi = new ActivateSDNCNetworkResource()
46 dcsi.prepareUpdateAfterActivateSDNCResource(execution)</bpmn:script>
48 <bpmn:serviceTask id="ServiceTask_1cm8iwr" name="update progress update">
49 <bpmn:extensionElements>
52 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
53 <camunda:inputParameter name="headers">
55 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
56 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
58 </camunda:inputParameter>
59 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
60 <camunda:inputParameter name="method">POST</camunda:inputParameter>
61 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
62 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
63 </camunda:inputOutput>
64 <camunda:connectorId>http-connector</camunda:connectorId>
66 </bpmn:extensionElements>
67 <bpmn:incoming>SequenceFlow_1jr6zi0</bpmn:incoming>
68 <bpmn:outgoing>SequenceFlow_1vnx1pp</bpmn:outgoing>
70 <bpmn:sequenceFlow id="SequenceFlow_1jr6zi0" sourceRef="Task_0uwlr22" targetRef="ServiceTask_1cm8iwr" />
71 <bpmn:sequenceFlow id="SequenceFlow_1vnx1pp" sourceRef="ServiceTask_1cm8iwr" targetRef="Task_023hred" />
72 <bpmn:scriptTask id="ScriptTask_1g5zyi6" name="Send Sync Ack Response" scriptFormat="groovy">
73 <bpmn:incoming>SequenceFlow_0ow44q0</bpmn:incoming>
74 <bpmn:outgoing>SequenceFlow_17md60u</bpmn:outgoing>
75 <bpmn:script>import org.openecomp.mso.bpmn.infrastructure.scripts.*
76 def csi = new ActivateSDNCNetworkResource()
77 csi.sendSyncResponse(execution)</bpmn:script>
79 <bpmn:sequenceFlow id="SequenceFlow_17md60u" sourceRef="ScriptTask_1g5zyi6" targetRef="EndEvent_1x6k78c" />
80 <bpmn:sequenceFlow id="SequenceFlow_1c92ks3" sourceRef="createNS_StartEvent" targetRef="Task_13sx2bp" />
82 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
83 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ActivateSDNCNetworkResource">
84 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent">
85 <dc:Bounds x="-203" y="306" width="36" height="36" />
87 <dc:Bounds x="-230" y="352" width="89" height="27" />
90 <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
91 <dc:Bounds x="930" y="306" width="36" height="36" />
93 <dc:Bounds x="893" y="348" width="84" height="27" />
96 <bpmndi:BPMNShape id="CallActivity_1600xlj_di" bpmnElement="CallActivity_1600xlj">
97 <dc:Bounds x="77" y="284" width="100" height="80" />
99 <bpmndi:BPMNEdge id="SequenceFlow_1xk5xed_di" bpmnElement="SequenceFlow_1xk5xed">
100 <di:waypoint x="177" y="324" />
101 <di:waypoint x="247" y="324" />
103 <dc:Bounds x="210.5" y="314" width="90" height="12" />
106 <bpmndi:BPMNEdge id="SequenceFlow_0ow44q0_di" bpmnElement="SequenceFlow_0ow44q0">
107 <di:waypoint x="694" y="324" />
108 <di:waypoint x="765" y="324" />
110 <dc:Bounds x="780.5" y="314" width="90" height="12" />
113 <bpmndi:BPMNShape id="ScriptTask_0gyej62_di" bpmnElement="Task_023hred">
114 <dc:Bounds x="594" y="284" width="100" height="80" />
116 <bpmndi:BPMNEdge id="SequenceFlow_18l3crb_di" bpmnElement="SequenceFlow_18l3crb">
117 <di:waypoint x="12" y="324" />
118 <di:waypoint x="77" y="324" />
120 <dc:Bounds x="235.5" y="108" width="90" height="12" />
123 <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp">
124 <dc:Bounds x="-88" y="284" width="100" height="80" />
126 <bpmndi:BPMNShape id="ScriptTask_0hu4lhm_di" bpmnElement="Task_0uwlr22">
127 <dc:Bounds x="247" y="284" width="100" height="80" />
129 <bpmndi:BPMNShape id="ServiceTask_1cm8iwr_di" bpmnElement="ServiceTask_1cm8iwr">
130 <dc:Bounds x="417" y="284" width="100" height="80" />
132 <bpmndi:BPMNEdge id="SequenceFlow_1jr6zi0_di" bpmnElement="SequenceFlow_1jr6zi0">
133 <di:waypoint x="347" y="324" />
134 <di:waypoint x="417" y="324" />
136 <dc:Bounds x="444.5" y="314" width="0" height="12" />
139 <bpmndi:BPMNEdge id="SequenceFlow_1vnx1pp_di" bpmnElement="SequenceFlow_1vnx1pp">
140 <di:waypoint x="517" y="324" />
141 <di:waypoint x="594" y="324" />
143 <dc:Bounds x="641" y="314" width="0" height="12" />
146 <bpmndi:BPMNShape id="ScriptTask_1g5zyi6_di" bpmnElement="ScriptTask_1g5zyi6">
147 <dc:Bounds x="765" y="284" width="100" height="80" />
149 <bpmndi:BPMNEdge id="SequenceFlow_17md60u_di" bpmnElement="SequenceFlow_17md60u">
150 <di:waypoint x="865" y="324" />
151 <di:waypoint x="930" y="324" />
153 <dc:Bounds x="998" y="313" width="0" height="14" />
156 <bpmndi:BPMNEdge id="SequenceFlow_1c92ks3_di" bpmnElement="SequenceFlow_1c92ks3">
157 <di:waypoint x="-167" y="324" />
158 <di:waypoint x="-88" y="324" />
161 </bpmndi:BPMNDiagram>