Remove unnecessary use of Calendar.getInstance()
[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" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_Wblj8GyfEeWUWLTvug7ZOg" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://camunda.org/schema/1.0/bpmn">
3   <bpmn2:process id="UpdateAAIVfModule" name="UpdateAAIVfModule" isExecutable="true">
4     <bpmn2:documentation>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.openecomp.mso.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.openecomp.mso.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_2">
26       <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
27       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_50" errorRef="Error_1"/>
28     </bpmn2:endEvent>
29     <bpmn2:endEvent id="EndEvent_4" name="TheEnd">
30       <bpmn2:extensionElements>
31         <camunda:connector>
32           <camunda:inputOutput>
33             <camunda:outputParameter name="CreateCustomerV1Response"><![CDATA[<aetgt:CreateCustomerResponse xmlns:aetgt="http://org.openecomp/mso/workflow/schema/v1"                   xmlns:ns="http://org.openecomp/mso/workflow/schema/v1">
34  <ns:GlobalCustomerId>${CCV1_subscriberglobalid}</ns:GlobalCustomerId>
35    </aetgt:CreateCustomerResponse>]]></camunda:outputParameter>
36           </camunda:inputOutput>
37         </camunda:connector>
38       </bpmn2:extensionElements>
39       <bpmn2:incoming>SequenceFlow_13</bpmn2:incoming>
40     </bpmn2:endEvent>
41     <bpmn2:exclusiveGateway id="ExclusiveGateway_3" default="SequenceFlow_23">
42       <bpmn2:incoming>SequenceFlow_39</bpmn2:incoming>
43       <bpmn2:outgoing>SequenceFlow_22</bpmn2:outgoing>
44       <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>
45     </bpmn2:exclusiveGateway>
46     <bpmn2:sequenceFlow id="SequenceFlow_22" name="" sourceRef="ExclusiveGateway_3" targetRef="UpdateVfModule">
47       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable('UAAIVfMod_getVfModuleResponseCode') == 200}</bpmn2:conditionExpression>
48     </bpmn2:sequenceFlow>
49     <bpmn2:sequenceFlow id="SequenceFlow_23" name="AAI Query failure or&#xD;&#xA;VF Module not  found" sourceRef="ExclusiveGateway_3" targetRef="AAIQueryFailure"/>
50     <bpmn2:scriptTask id="HandleUpdateVfModuleFailure" name="Handle Update VF Module Failure" scriptFormat="groovy">
51       <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
52       <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
53       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
54 def uvm= new UpdateAAIVfModule()
55 uvm.handleUpdateVfModuleFailure(execution)]]></bpmn2:script>
56     </bpmn2:scriptTask>
57     <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="HandleUpdateVfModuleFailure" targetRef="EndEvent_2"/>
58     <bpmn2:exclusiveGateway id="ExclusiveGateway_1" default="SequenceFlow_4">
59       <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
60       <bpmn2:outgoing>SequenceFlow_13</bpmn2:outgoing>
61       <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
62     </bpmn2:exclusiveGateway>
63     <bpmn2:sequenceFlow id="SequenceFlow_13" sourceRef="ExclusiveGateway_1" targetRef="EndEvent_4">
64       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable('UAAIVfMod_updateVfModuleResponseCode') == 200}</bpmn2:conditionExpression>
65     </bpmn2:sequenceFlow>
66     <bpmn2:sequenceFlow id="SequenceFlow_4" name="Update VF Module Failure" sourceRef="ExclusiveGateway_1" targetRef="HandleUpdateVfModuleFailure"/>
67     <bpmn2:scriptTask id="UpdateVfModule" name="Update VF Module" scriptFormat="groovy">
68       <bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>
69       <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
70       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
71 def uvm= new UpdateAAIVfModule()
72 uvm.updateVfModule(execution)]]></bpmn2:script>
73     </bpmn2:scriptTask>
74     <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="UpdateVfModule" targetRef="ExclusiveGateway_1"/>
75     <bpmn2:startEvent id="StartEvent_1" name="Start">
76       <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
77     </bpmn2:startEvent>
78     <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="ProcessReceivedRequest"/>
79     <bpmn2:scriptTask id="ProcessReceivedRequest" name="Process Received Request" scriptFormat="groovy">
80       <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
81       <bpmn2:outgoing>SequenceFlow_38</bpmn2:outgoing>
82       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
83 def uvm= new UpdateAAIVfModule()
84 uvm.preProcessRequest(execution)]]></bpmn2:script>
85     </bpmn2:scriptTask>
86     <bpmn2:sequenceFlow id="SequenceFlow_38" name="" sourceRef="ProcessReceivedRequest" targetRef="QueryAAIForVfModule"/>
87   </bpmn2:process>
88   <bpmn2:error id="Error_1" errorCode="MSOWorkflowException" name="MSO Workflow Exception"/>
89   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
90     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="UpdateAAIVfModule">
91       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_37" bpmnElement="StartEvent_1">
92         <dc:Bounds height="36.0" width="36.0" x="69.0" y="212.0"/>
93         <bpmndi:BPMNLabel>
94           <dc:Bounds height="22.0" width="34.0" x="70.0" y="253.0"/>
95         </bpmndi:BPMNLabel>
96       </bpmndi:BPMNShape>
97       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_22" bpmnElement="ProcessReceivedRequest">
98         <dc:Bounds height="80.0" width="100.0" x="180.0" y="190.0"/>
99       </bpmndi:BPMNShape>
100       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_37" targetElement="_BPMNShape_ScriptTask_22">
101         <di:waypoint xsi:type="dc:Point" x="105.0" y="230.0"/>
102         <di:waypoint xsi:type="dc:Point" x="180.0" y="230.0"/>
103         <bpmndi:BPMNLabel>
104           <dc:Bounds height="6.0" width="6.0" x="127.0" y="230.0"/>
105         </bpmndi:BPMNLabel>
106       </bpmndi:BPMNEdge>
107       <bpmndi:BPMNShape id="_BPMNShape_Task_2" bpmnElement="UpdateVfModule">
108         <dc:Bounds height="80.0" width="100.0" x="672.0" y="190.0"/>
109       </bpmndi:BPMNShape>
110       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_92" bpmnElement="EndEvent_4">
111         <dc:Bounds height="36.0" width="36.0" x="1016.0" y="212.0"/>
112         <bpmndi:BPMNLabel>
113           <dc:Bounds height="22.0" width="50.0" x="1009.0" y="253.0"/>
114         </bpmndi:BPMNLabel>
115       </bpmndi:BPMNShape>
116       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_54" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
117         <dc:Bounds height="50.0" width="50.0" x="840.0" y="206.0"/>
118         <bpmndi:BPMNLabel>
119           <dc:Bounds height="0.0" width="0.0" x="865.0" y="261.0"/>
120         </bpmndi:BPMNLabel>
121       </bpmndi:BPMNShape>
122       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_13" sourceElement="_BPMNShape_ExclusiveGateway_54" targetElement="_BPMNShape_EndEvent_92">
123         <di:waypoint xsi:type="dc:Point" x="890.0" y="231.0"/>
124         <di:waypoint xsi:type="dc:Point" x="993.0" y="231.0"/>
125         <di:waypoint xsi:type="dc:Point" x="993.0" y="230.0"/>
126         <di:waypoint xsi:type="dc:Point" x="1016.0" y="230.0"/>
127         <bpmndi:BPMNLabel>
128           <dc:Bounds height="0.0" width="0.0" x="928.0" y="231.0"/>
129         </bpmndi:BPMNLabel>
130       </bpmndi:BPMNEdge>
131       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_120" bpmnElement="EndEvent_2">
132         <dc:Bounds height="36.0" width="36.0" x="848.0" y="0.0"/>
133         <bpmndi:BPMNLabel>
134           <dc:Bounds height="0.0" width="0.0" x="866.0" y="41.0"/>
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNShape>
137       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_86" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">
138         <dc:Bounds height="50.0" width="50.0" x="493.0" y="204.0"/>
139         <bpmndi:BPMNLabel>
140           <dc:Bounds height="0.0" width="0.0" x="518.0" y="259.0"/>
141         </bpmndi:BPMNLabel>
142       </bpmndi:BPMNShape>
143       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_23" bpmnElement="SequenceFlow_22" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_Task_2">
144         <di:waypoint xsi:type="dc:Point" x="543.0" y="229.0"/>
145         <di:waypoint xsi:type="dc:Point" x="607.0" y="229.0"/>
146         <di:waypoint xsi:type="dc:Point" x="607.0" y="230.0"/>
147         <di:waypoint xsi:type="dc:Point" x="672.0" y="230.0"/>
148         <bpmndi:BPMNLabel>
149           <dc:Bounds height="6.0" width="6.0" x="558.0" y="229.0"/>
150         </bpmndi:BPMNLabel>
151       </bpmndi:BPMNEdge>
152       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_155" bpmnElement="AAIQueryFailure">
153         <dc:Bounds height="80.0" width="100.0" x="468.0" y="60.0"/>
154       </bpmndi:BPMNShape>
155       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_24" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_ScriptTask_155">
156         <di:waypoint xsi:type="dc:Point" x="518.0" y="204.0"/>
157         <di:waypoint xsi:type="dc:Point" x="518.0" y="140.0"/>
158         <bpmndi:BPMNLabel>
159           <dc:Bounds height="38.0" width="130.0" x="528.0" y="152.0"/>
160         </bpmndi:BPMNLabel>
161       </bpmndi:BPMNEdge>
162       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_160" bpmnElement="EndEvent_7">
163         <dc:Bounds height="36.0" width="36.0" x="500.0" y="0.0"/>
164         <bpmndi:BPMNLabel>
165           <dc:Bounds height="0.0" width="0.0" x="518.0" y="41.0"/>
166         </bpmndi:BPMNLabel>
167       </bpmndi:BPMNShape>
168       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_ScriptTask_155" targetElement="_BPMNShape_EndEvent_160">
169         <di:waypoint xsi:type="dc:Point" x="518.0" y="60.0"/>
170         <di:waypoint xsi:type="dc:Point" x="518.0" y="36.0"/>
171         <bpmndi:BPMNLabel>
172           <dc:Bounds height="6.0" width="6.0" x="515.0" y="49.0"/>
173         </bpmndi:BPMNLabel>
174       </bpmndi:BPMNEdge>
175       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_160" bpmnElement="QueryAAIForVfModule">
176         <dc:Bounds height="80.0" width="100.0" x="336.0" y="190.0"/>
177       </bpmndi:BPMNShape>
178       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_38" sourceElement="_BPMNShape_ScriptTask_22" targetElement="_BPMNShape_ScriptTask_160">
179         <di:waypoint xsi:type="dc:Point" x="280.0" y="230.0"/>
180         <di:waypoint xsi:type="dc:Point" x="336.0" y="230.0"/>
181         <bpmndi:BPMNLabel>
182           <dc:Bounds height="6.0" width="6.0" x="300.0" y="230.0"/>
183         </bpmndi:BPMNLabel>
184       </bpmndi:BPMNEdge>
185       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_39" bpmnElement="SequenceFlow_39" sourceElement="_BPMNShape_ScriptTask_160" targetElement="_BPMNShape_ExclusiveGateway_86">
186         <di:waypoint xsi:type="dc:Point" x="436.0" y="230.0"/>
187         <di:waypoint xsi:type="dc:Point" x="452.0" y="230.0"/>
188         <di:waypoint xsi:type="dc:Point" x="452.0" y="229.0"/>
189         <di:waypoint xsi:type="dc:Point" x="493.0" y="229.0"/>
190         <bpmndi:BPMNLabel>
191           <dc:Bounds height="6.0" width="6.0" x="449.0" y="229.0"/>
192         </bpmndi:BPMNLabel>
193       </bpmndi:BPMNEdge>
194       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_161" bpmnElement="HandleUpdateVfModuleFailure">
195         <dc:Bounds height="80.0" width="100.0" x="816.0" y="60.0"/>
196       </bpmndi:BPMNShape>
197       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ScriptTask_161" targetElement="_BPMNShape_EndEvent_120">
198         <di:waypoint xsi:type="dc:Point" x="866.0" y="60.0"/>
199         <di:waypoint xsi:type="dc:Point" x="866.0" y="36.0"/>
200         <bpmndi:BPMNLabel>
201           <dc:Bounds height="6.0" width="6.0" x="863.0" y="51.0"/>
202         </bpmndi:BPMNLabel>
203       </bpmndi:BPMNEdge>
204       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_Task_2" targetElement="_BPMNShape_ExclusiveGateway_54">
205         <di:waypoint xsi:type="dc:Point" x="772.0" y="230.0"/>
206         <di:waypoint xsi:type="dc:Point" x="797.0" y="230.0"/>
207         <di:waypoint xsi:type="dc:Point" x="797.0" y="231.0"/>
208         <di:waypoint xsi:type="dc:Point" x="840.0" y="231.0"/>
209         <bpmndi:BPMNLabel>
210           <dc:Bounds height="6.0" width="6.0" x="801.0" y="231.0"/>
211         </bpmndi:BPMNLabel>
212       </bpmndi:BPMNEdge>
213       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ExclusiveGateway_54" targetElement="_BPMNShape_ScriptTask_161">
214         <di:waypoint xsi:type="dc:Point" x="865.0" y="206.0"/>
215         <di:waypoint xsi:type="dc:Point" x="865.0" y="172.0"/>
216         <di:waypoint xsi:type="dc:Point" x="867.0" y="172.0"/>
217         <di:waypoint xsi:type="dc:Point" x="867.0" y="140.0"/>
218         <bpmndi:BPMNLabel>
219           <dc:Bounds height="22.0" width="157.0" x="883.0" y="160.0"/>
220         </bpmndi:BPMNLabel>
221       </bpmndi:BPMNEdge>
222     </bpmndi:BPMNPlane>
223   </bpmndi:BPMNDiagram>
224 </bpmn2:definitions>