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="ConfirmVolumeGroupName" name="ConfirmVolumeGroupName" isExecutable="true">
4 <bpmn2:exclusiveGateway id="ExclusiveGateway_3" default="SequenceFlow_2">
5 <bpmn2:incoming>SequenceFlow_39</bpmn2:incoming>
6 <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>
7 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
8 </bpmn2:exclusiveGateway>
9 <bpmn2:sequenceFlow id="SequenceFlow_23" name="" sourceRef="ExclusiveGateway_3" targetRef="AAIQueryFailure">
10 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("CVGN_queryVolumeGroupResponseCode") != 200 && execution.getVariable("CVGN_queryVolumeGroupResponseCode") != 404}]]></bpmn2:conditionExpression>
12 <bpmn2:scriptTask id="AAIQueryFailure" name="AAI Query Failure" scriptFormat="groovy">
13 <bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>
14 <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing>
15 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
16 def cvgn= new ConfirmVolumeGroupName()
17 cvgn.handleAAIQueryFailure(execution)]]></bpmn2:script>
19 <bpmn2:sequenceFlow id="SequenceFlow_18" name="" sourceRef="AAIQueryFailure" targetRef="EndEvent_7"/>
20 <bpmn2:endEvent id="EndEvent_7">
21 <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming>
22 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_68" errorRef="Error_1"/>
24 <bpmn2:scriptTask id="QueryAAIForVolumeGroupId" name="Query AAI for
Volume Group Id" scriptFormat="groovy">
25 <bpmn2:incoming>SequenceFlow_38</bpmn2:incoming>
26 <bpmn2:outgoing>SequenceFlow_39</bpmn2:outgoing>
27 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
28 def cvgn= new ConfirmVolumeGroupName()
29 cvgn.queryAAIForVolumeGroupId(execution)]]></bpmn2:script>
31 <bpmn2:sequenceFlow id="SequenceFlow_39" name="" sourceRef="QueryAAIForVolumeGroupId" targetRef="ExclusiveGateway_3"/>
32 <bpmn2:scriptTask id="InitializeVariables" name="Initialize Variables" scriptFormat="groovy">
33 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
34 <bpmn2:outgoing>SequenceFlow_38</bpmn2:outgoing>
35 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
36 def cvgn= new ConfirmVolumeGroupName()
37 cvgn.preProcessRequest(execution)]]></bpmn2:script>
39 <bpmn2:sequenceFlow id="SequenceFlow_38" name="" sourceRef="InitializeVariables" targetRef="QueryAAIForVolumeGroupId"/>
40 <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="ExclusiveGateway_3" targetRef="CheckAAIQueryResult"/>
41 <bpmn2:scriptTask id="CheckAAIQueryResult" name="Check AAI Query Result" scriptFormat="groovy">
42 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
43 <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
44 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
45 def cvgn= new ConfirmVolumeGroupName()
46 cvgn.checkAAIQueryResult(execution)]]></bpmn2:script>
48 <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="CheckAAIQueryResult" targetRef="ExclusiveGateway_1"/>
49 <bpmn2:scriptTask id="VolumeGroupNotInName" name="Volume Group Not In Name" scriptFormat="groovy">
50 <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
51 <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
52 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
53 def cvgn= new ConfirmVolumeGroupName()
54 cvgn.handleVolumeGroupNameNoMatch(execution)]]></bpmn2:script>
56 <bpmn2:exclusiveGateway id="ExclusiveGateway_1" default="SequenceFlow_7">
57 <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
58 <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
59 <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
60 </bpmn2:exclusiveGateway>
61 <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="ExclusiveGateway_1" targetRef="EndEvent_4">
62 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("CVGN_volumeGroupNameMatches")==true}]]></bpmn2:conditionExpression>
64 <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="ExclusiveGateway_1" targetRef="VolumeGroupNotInName"/>
65 <bpmn2:endEvent id="EndEvent_4">
66 <bpmn2:extensionElements>
69 <camunda:outputParameter name="WorkflowResponse"><![CDATA[<aetgt:CreateVfModuleResponse xmlns:aetgt="http://org.openecomp/mso/workflow/schema/v1" xmlns:ns="http://org.openecomp/mso/workflow/schema/v1">
70 <ns:response>SUCCESS</ns:response>
71 </aetgt:CreateVfModuleResponse>]]></camunda:outputParameter>
72 </camunda:inputOutput>
74 </bpmn2:extensionElements>
75 <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
76 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_2"/>
78 <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="VolumeGroupNotInName" targetRef="EndEvent_1"/>
79 <bpmn2:endEvent id="EndEvent_1">
80 <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
81 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_70" errorRef="Error_1"/>
83 <bpmn2:startEvent id="StartEvent_1">
84 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
86 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="InitializeVariables"/>
88 <bpmn2:message id="Message_1" name="ConfirmVolumeGroupNameRequest"/>
89 <bpmn2:error id="Error_1" errorCode="MSOWorkflowException" name="MSO Workflow Exception"/>
90 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
91 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateAAIVfModule">
92 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_37" bpmnElement="StartEvent_1">
93 <dc:Bounds height="36.0" width="36.0" x="43.0" y="199.0"/>
95 <dc:Bounds height="0.0" width="0.0" x="61.0" y="240.0"/>
98 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_22" bpmnElement="InitializeVariables">
99 <dc:Bounds height="80.0" width="100.0" x="204.0" y="178.0"/>
101 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_37" targetElement="_BPMNShape_ScriptTask_22">
102 <di:waypoint xsi:type="dc:Point" x="79.0" y="217.0"/>
103 <di:waypoint xsi:type="dc:Point" x="120.0" y="217.0"/>
104 <di:waypoint xsi:type="dc:Point" x="120.0" y="218.0"/>
105 <di:waypoint xsi:type="dc:Point" x="204.0" y="218.0"/>
107 <dc:Bounds height="6.0" width="6.0" x="101.0" y="217.0"/>
110 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_92" bpmnElement="EndEvent_4">
111 <dc:Bounds height="36.0" width="36.0" x="912.0" y="199.0"/>
113 <dc:Bounds height="0.0" width="0.0" x="930.0" y="240.0"/>
116 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_86" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">
117 <dc:Bounds height="50.0" width="50.0" x="468.0" y="191.0"/>
119 <dc:Bounds height="0.0" width="0.0" x="493.0" y="246.0"/>
122 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_155" bpmnElement="AAIQueryFailure">
123 <dc:Bounds height="80.0" width="100.0" x="518.0" y="297.0"/>
125 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_24" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_ScriptTask_155">
126 <di:waypoint xsi:type="dc:Point" x="493.0" y="241.0"/>
127 <di:waypoint xsi:type="dc:Point" x="493.0" y="259.0"/>
128 <di:waypoint xsi:type="dc:Point" x="568.0" y="259.0"/>
129 <di:waypoint xsi:type="dc:Point" x="568.0" y="297.0"/>
131 <dc:Bounds height="6.0" width="6.0" x="547.0" y="259.0"/>
134 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_160" bpmnElement="EndEvent_7">
135 <dc:Bounds height="36.0" width="36.0" x="550.0" y="416.0"/>
137 <dc:Bounds height="0.0" width="0.0" x="568.0" y="457.0"/>
140 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_ScriptTask_155" targetElement="_BPMNShape_EndEvent_160">
141 <di:waypoint xsi:type="dc:Point" x="568.0" y="377.0"/>
142 <di:waypoint xsi:type="dc:Point" x="568.0" y="416.0"/>
144 <dc:Bounds height="6.0" width="6.0" x="565.0" y="388.0"/>
147 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_160" bpmnElement="QueryAAIForVolumeGroupId">
148 <dc:Bounds height="80.0" width="100.0" x="336.0" y="178.0"/>
150 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_38" sourceElement="_BPMNShape_ScriptTask_22" targetElement="_BPMNShape_ScriptTask_160">
151 <di:waypoint xsi:type="dc:Point" x="304.0" y="218.0"/>
152 <di:waypoint xsi:type="dc:Point" x="336.0" y="218.0"/>
154 <dc:Bounds height="6.0" width="6.0" x="324.0" y="218.0"/>
157 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_39" bpmnElement="SequenceFlow_39" sourceElement="_BPMNShape_ScriptTask_160" targetElement="_BPMNShape_ExclusiveGateway_86">
158 <di:waypoint xsi:type="dc:Point" x="436.0" y="218.0"/>
159 <di:waypoint xsi:type="dc:Point" x="452.0" y="218.0"/>
160 <di:waypoint xsi:type="dc:Point" x="452.0" y="216.0"/>
161 <di:waypoint xsi:type="dc:Point" x="468.0" y="216.0"/>
163 <dc:Bounds height="6.0" width="6.0" x="449.0" y="217.0"/>
166 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_162" bpmnElement="EndEvent_1">
167 <dc:Bounds height="36.0" width="36.0" x="720.0" y="415.0"/>
169 <dc:Bounds height="0.0" width="0.0" x="738.0" y="456.0"/>
172 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_177" bpmnElement="CheckAAIQueryResult">
173 <dc:Bounds height="80.0" width="100.0" x="624.0" y="177.0"/>
175 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_ScriptTask_177">
176 <di:waypoint xsi:type="dc:Point" x="518.0" y="216.0"/>
177 <di:waypoint xsi:type="dc:Point" x="551.0" y="216.0"/>
178 <di:waypoint xsi:type="dc:Point" x="551.0" y="217.0"/>
179 <di:waypoint xsi:type="dc:Point" x="624.0" y="217.0"/>
181 <dc:Bounds height="6.0" width="6.0" x="548.0" y="217.0"/>
184 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_103" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
185 <dc:Bounds height="50.0" width="50.0" x="801.0" y="191.0"/>
187 <dc:Bounds height="0.0" width="0.0" x="826.0" y="246.0"/>
190 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ScriptTask_177" targetElement="_BPMNShape_ExclusiveGateway_103">
191 <di:waypoint xsi:type="dc:Point" x="724.0" y="217.0"/>
192 <di:waypoint xsi:type="dc:Point" x="762.0" y="217.0"/>
193 <di:waypoint xsi:type="dc:Point" x="762.0" y="216.0"/>
194 <di:waypoint xsi:type="dc:Point" x="801.0" y="216.0"/>
196 <dc:Bounds height="6.0" width="6.0" x="735.0" y="217.0"/>
199 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ExclusiveGateway_103" targetElement="_BPMNShape_EndEvent_92">
200 <di:waypoint xsi:type="dc:Point" x="851.0" y="216.0"/>
201 <di:waypoint xsi:type="dc:Point" x="869.0" y="216.0"/>
202 <di:waypoint xsi:type="dc:Point" x="869.0" y="217.0"/>
203 <di:waypoint xsi:type="dc:Point" x="912.0" y="217.0"/>
205 <dc:Bounds height="6.0" width="6.0" x="855.0" y="216.0"/>
208 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_179" bpmnElement="VolumeGroupNotInName">
209 <dc:Bounds height="80.0" width="100.0" x="688.0" y="297.0"/>
211 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ExclusiveGateway_103" targetElement="_BPMNShape_ScriptTask_179">
212 <di:waypoint xsi:type="dc:Point" x="826.0" y="241.0"/>
213 <di:waypoint xsi:type="dc:Point" x="826.0" y="269.0"/>
214 <di:waypoint xsi:type="dc:Point" x="738.0" y="269.0"/>
215 <di:waypoint xsi:type="dc:Point" x="738.0" y="297.0"/>
217 <dc:Bounds height="6.0" width="6.0" x="822.0" y="269.0"/>
220 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_ScriptTask_179" targetElement="_BPMNShape_EndEvent_162">
221 <di:waypoint xsi:type="dc:Point" x="738.0" y="377.0"/>
222 <di:waypoint xsi:type="dc:Point" x="738.0" y="415.0"/>
224 <dc:Bounds height="6.0" width="6.0" x="735.0" y="391.0"/>
228 </bpmndi:BPMNDiagram>