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="_Wblj8GyfEeWUWLTvug7ZOg" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.7.2" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="UpdateAAIVfModule" name="UpdateAAIVfModule" isExecutable="true">
4 <bpmn2:documentation><![CDATA[This flow expects its incoming request to be in the variable 'UpdateAAIVfModuleRequest'. This flow produces no output.]]></bpmn2:documentation>
5 <bpmn2:scriptTask id="QueryAAIForVfModule" name="Query AAI for VF Module" scriptFormat="groovy">
6 <bpmn2:incoming>SequenceFlow_38</bpmn2:incoming>
7 <bpmn2:outgoing>SequenceFlow_39</bpmn2:outgoing>
8 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
9 def uvm = new UpdateAAIVfModule()
10 uvm.getVfModule(execution)]]></bpmn2:script>
12 <bpmn2:sequenceFlow id="SequenceFlow_39" name="" sourceRef="QueryAAIForVfModule" targetRef="ExclusiveGateway_3" />
13 <bpmn2:endEvent id="EndEvent_7">
14 <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming>
15 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_68" errorRef="Error_1" />
17 <bpmn2:scriptTask id="AAIQueryFailure" name="Handle AAI Query Failure" scriptFormat="groovy">
18 <bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>
19 <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing>
20 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
21 def uvm= new UpdateAAIVfModule()
22 uvm.handleAAIQueryFailure(execution)]]></bpmn2:script>
24 <bpmn2:sequenceFlow id="SequenceFlow_18" name="" sourceRef="AAIQueryFailure" targetRef="EndEvent_7" />
25 <bpmn2:endEvent id="EndEvent_4" name="TheEnd">
26 <bpmn2:extensionElements>
29 <camunda:outputParameter name="CreateCustomerV1Response"><![CDATA[<aetgt:CreateCustomerResponse xmlns:aetgt="http://org.onap/so/workflow/schema/v1" xmlns:ns="http://org.onap/so/workflow/schema/v1">
30 <ns:GlobalCustomerId>${CCV1_subscriberglobalid}</ns:GlobalCustomerId>
31 </aetgt:CreateCustomerResponse>]]></camunda:outputParameter>
32 </camunda:inputOutput>
34 </bpmn2:extensionElements>
35 <bpmn2:incoming>SequenceFlow_1x7tivg</bpmn2:incoming>
37 <bpmn2:exclusiveGateway id="ExclusiveGateway_3" default="SequenceFlow_23">
38 <bpmn2:incoming>SequenceFlow_39</bpmn2:incoming>
39 <bpmn2:outgoing>SequenceFlow_22</bpmn2:outgoing>
40 <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>
41 </bpmn2:exclusiveGateway>
42 <bpmn2:sequenceFlow id="SequenceFlow_22" name="" sourceRef="ExclusiveGateway_3" targetRef="UpdateVfModule">
43 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable('UAAIVfMod_getVfModuleResponseCode') == 200}]]></bpmn2:conditionExpression>
45 <bpmn2:sequenceFlow id="SequenceFlow_23" name="AAI Query failure or
\r VF Module not found" sourceRef="ExclusiveGateway_3" targetRef="AAIQueryFailure" />
46 <bpmn2:scriptTask id="UpdateVfModule" name="Update VF Module" scriptFormat="groovy">
47 <bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>
48 <bpmn2:outgoing>SequenceFlow_1x7tivg</bpmn2:outgoing>
49 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
50 def uvm= new UpdateAAIVfModule()
51 uvm.updateVfModule(execution)]]></bpmn2:script>
53 <bpmn2:startEvent id="StartEvent_1" name="Start">
54 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
56 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="ProcessReceivedRequest" />
57 <bpmn2:scriptTask id="ProcessReceivedRequest" name="Process Received Request" scriptFormat="groovy">
58 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
59 <bpmn2:outgoing>SequenceFlow_38</bpmn2:outgoing>
60 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
61 def uvm= new UpdateAAIVfModule()
62 uvm.preProcessRequest(execution)]]></bpmn2:script>
64 <bpmn2:sequenceFlow id="SequenceFlow_38" name="" sourceRef="ProcessReceivedRequest" targetRef="QueryAAIForVfModule" />
65 <bpmn2:sequenceFlow id="SequenceFlow_1x7tivg" sourceRef="UpdateVfModule" targetRef="EndEvent_4" />
67 <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
68 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
69 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="UpdateAAIVfModule">
70 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_37" bpmnElement="StartEvent_1">
71 <dc:Bounds x="69" y="212" width="36" height="36" />
73 <dc:Bounds x="70" y="253" width="34" height="22" />
76 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_22" bpmnElement="ProcessReceivedRequest">
77 <dc:Bounds x="180" y="190" width="100" height="80" />
79 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_37" targetElement="_BPMNShape_ScriptTask_22">
80 <di:waypoint xsi:type="dc:Point" x="105" y="230" />
81 <di:waypoint xsi:type="dc:Point" x="180" y="230" />
83 <dc:Bounds x="127" y="230" width="6" height="6" />
86 <bpmndi:BPMNShape id="_BPMNShape_Task_2" bpmnElement="UpdateVfModule">
87 <dc:Bounds x="672" y="190" width="100" height="80" />
89 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_92" bpmnElement="EndEvent_4">
90 <dc:Bounds x="1016" y="212" width="36" height="36" />
92 <dc:Bounds x="1009" y="253" width="50" height="22" />
95 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_86" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">
96 <dc:Bounds x="493" y="204" width="50" height="50" />
98 <dc:Bounds x="518" y="259" width="0" height="0" />
101 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_23" bpmnElement="SequenceFlow_22" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_Task_2">
102 <di:waypoint xsi:type="dc:Point" x="543" y="229" />
103 <di:waypoint xsi:type="dc:Point" x="607" y="229" />
104 <di:waypoint xsi:type="dc:Point" x="607" y="230" />
105 <di:waypoint xsi:type="dc:Point" x="672" y="230" />
107 <dc:Bounds x="558" y="229" width="6" height="6" />
110 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_155" bpmnElement="AAIQueryFailure">
111 <dc:Bounds x="468" y="60" width="100" height="80" />
113 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_24" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_ScriptTask_155">
114 <di:waypoint xsi:type="dc:Point" x="518" y="204" />
115 <di:waypoint xsi:type="dc:Point" x="518" y="140" />
117 <dc:Bounds x="528" y="152" width="130" height="38" />
120 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_160" bpmnElement="EndEvent_7">
121 <dc:Bounds x="500" y="0" width="36" height="36" />
123 <dc:Bounds x="518" y="41" width="0" height="0" />
126 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_ScriptTask_155" targetElement="_BPMNShape_EndEvent_160">
127 <di:waypoint xsi:type="dc:Point" x="518" y="60" />
128 <di:waypoint xsi:type="dc:Point" x="518" y="36" />
130 <dc:Bounds x="515" y="49" width="6" height="6" />
133 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_160" bpmnElement="QueryAAIForVfModule">
134 <dc:Bounds x="336" y="190" width="100" height="80" />
136 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_38" sourceElement="_BPMNShape_ScriptTask_22" targetElement="_BPMNShape_ScriptTask_160">
137 <di:waypoint xsi:type="dc:Point" x="280" y="230" />
138 <di:waypoint xsi:type="dc:Point" x="336" y="230" />
140 <dc:Bounds x="300" y="230" width="6" height="6" />
143 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_39" bpmnElement="SequenceFlow_39" sourceElement="_BPMNShape_ScriptTask_160" targetElement="_BPMNShape_ExclusiveGateway_86">
144 <di:waypoint xsi:type="dc:Point" x="436" y="230" />
145 <di:waypoint xsi:type="dc:Point" x="452" y="230" />
146 <di:waypoint xsi:type="dc:Point" x="452" y="229" />
147 <di:waypoint xsi:type="dc:Point" x="493" y="229" />
149 <dc:Bounds x="449" y="229" width="6" height="6" />
152 <bpmndi:BPMNEdge id="SequenceFlow_1x7tivg_di" bpmnElement="SequenceFlow_1x7tivg">
153 <di:waypoint xsi:type="dc:Point" x="772" y="230" />
154 <di:waypoint xsi:type="dc:Point" x="1016" y="230" />
156 <dc:Bounds x="894" y="208" width="0" height="13" />
160 </bpmndi:BPMNDiagram>