Springboot 2.0 upgrade
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / subprocess / UpdateAAIVfModule.bpmn
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>
11     </bpmn2:scriptTask>
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" />
16     </bpmn2:endEvent>
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>
23     </bpmn2:scriptTask>
24     <bpmn2:sequenceFlow id="SequenceFlow_18" name="" sourceRef="AAIQueryFailure" targetRef="EndEvent_7" />
25     <bpmn2:endEvent id="EndEvent_4" name="TheEnd">
26       <bpmn2:extensionElements>
27         <camunda:connector>
28           <camunda:inputOutput>
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>
33         </camunda:connector>
34       </bpmn2:extensionElements>
35       <bpmn2:incoming>SequenceFlow_1x7tivg</bpmn2:incoming>
36     </bpmn2:endEvent>
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>
44     </bpmn2:sequenceFlow>
45     <bpmn2:sequenceFlow id="SequenceFlow_23" name="AAI Query failure or\r&#10;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>
52     </bpmn2:scriptTask>
53     <bpmn2:startEvent id="StartEvent_1" name="Start">
54       <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
55     </bpmn2:startEvent>
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>
63     </bpmn2:scriptTask>
64     <bpmn2:sequenceFlow id="SequenceFlow_38" name="" sourceRef="ProcessReceivedRequest" targetRef="QueryAAIForVfModule" />
65     <bpmn2:sequenceFlow id="SequenceFlow_1x7tivg" sourceRef="UpdateVfModule" targetRef="EndEvent_4" />
66   </bpmn2:process>
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" />
72         <bpmndi:BPMNLabel>
73           <dc:Bounds x="70" y="253" width="34" height="22" />
74         </bpmndi:BPMNLabel>
75       </bpmndi:BPMNShape>
76       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_22" bpmnElement="ProcessReceivedRequest">
77         <dc:Bounds x="180" y="190" width="100" height="80" />
78       </bpmndi:BPMNShape>
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" />
82         <bpmndi:BPMNLabel>
83           <dc:Bounds x="127" y="230" width="6" height="6" />
84         </bpmndi:BPMNLabel>
85       </bpmndi:BPMNEdge>
86       <bpmndi:BPMNShape id="_BPMNShape_Task_2" bpmnElement="UpdateVfModule">
87         <dc:Bounds x="672" y="190" width="100" height="80" />
88       </bpmndi:BPMNShape>
89       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_92" bpmnElement="EndEvent_4">
90         <dc:Bounds x="1016" y="212" width="36" height="36" />
91         <bpmndi:BPMNLabel>
92           <dc:Bounds x="1009" y="253" width="50" height="22" />
93         </bpmndi:BPMNLabel>
94       </bpmndi:BPMNShape>
95       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_86" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">
96         <dc:Bounds x="493" y="204" width="50" height="50" />
97         <bpmndi:BPMNLabel>
98           <dc:Bounds x="518" y="259" width="0" height="0" />
99         </bpmndi:BPMNLabel>
100       </bpmndi:BPMNShape>
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" />
106         <bpmndi:BPMNLabel>
107           <dc:Bounds x="558" y="229" width="6" height="6" />
108         </bpmndi:BPMNLabel>
109       </bpmndi:BPMNEdge>
110       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_155" bpmnElement="AAIQueryFailure">
111         <dc:Bounds x="468" y="60" width="100" height="80" />
112       </bpmndi:BPMNShape>
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" />
116         <bpmndi:BPMNLabel>
117           <dc:Bounds x="528" y="152" width="130" height="38" />
118         </bpmndi:BPMNLabel>
119       </bpmndi:BPMNEdge>
120       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_160" bpmnElement="EndEvent_7">
121         <dc:Bounds x="500" y="0" width="36" height="36" />
122         <bpmndi:BPMNLabel>
123           <dc:Bounds x="518" y="41" width="0" height="0" />
124         </bpmndi:BPMNLabel>
125       </bpmndi:BPMNShape>
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" />
129         <bpmndi:BPMNLabel>
130           <dc:Bounds x="515" y="49" width="6" height="6" />
131         </bpmndi:BPMNLabel>
132       </bpmndi:BPMNEdge>
133       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_160" bpmnElement="QueryAAIForVfModule">
134         <dc:Bounds x="336" y="190" width="100" height="80" />
135       </bpmndi:BPMNShape>
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" />
139         <bpmndi:BPMNLabel>
140           <dc:Bounds x="300" y="230" width="6" height="6" />
141         </bpmndi:BPMNLabel>
142       </bpmndi:BPMNEdge>
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" />
148         <bpmndi:BPMNLabel>
149           <dc:Bounds x="449" y="229" width="6" height="6" />
150         </bpmndi:BPMNLabel>
151       </bpmndi:BPMNEdge>
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" />
155         <bpmndi:BPMNLabel>
156           <dc:Bounds x="894" y="208" width="0" height="13" />
157         </bpmndi:BPMNLabel>
158       </bpmndi:BPMNEdge>
159     </bpmndi:BPMNPlane>
160   </bpmndi:BPMNDiagram>
161 </bpmn2:definitions>