Initial OpenECOMP MSO commit
[so.git] / bpmn / MSOGammaBPMN / src / main / resources / subprocess / VfModularity / CreateAAIVfModuleVolumeGroup.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>\r
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://activiti.org/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://activiti.org/bpmn">\r
3   <bpmn2:process id="CreateAAIVfModuleVolumeGroup" name="CreateAAIVfModuleVolumeGroup" isExecutable="true">\r
4     <bpmn2:documentation>This flow expects its incoming request to be in the variable 'CreateAAIVfModuleVolumeGroupRequest'.  This flow produces no output.</bpmn2:documentation>\r
5     <bpmn2:scriptTask id="QueryAAIForVfModule" name="Query AAI for VF Module" scriptFormat="groovy">\r
6       <bpmn2:incoming>SequenceFlow_38</bpmn2:incoming>\r
7       <bpmn2:outgoing>SequenceFlow_39</bpmn2:outgoing>\r
8       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
9 def cvfvg = new CreateAAIVfModuleVolumeGroup()
10 cvfvg.getVfModule(execution)]]></bpmn2:script>\r
11     </bpmn2:scriptTask>\r
12     <bpmn2:sequenceFlow id="SequenceFlow_39" name="" sourceRef="QueryAAIForVfModule" targetRef="ExclusiveGateway_3"/>\r
13     <bpmn2:endEvent id="EndEvent_7">\r
14       <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming>\r
15       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_68" errorRef="Error_1"/>\r
16     </bpmn2:endEvent>\r
17     <bpmn2:scriptTask id="AAIQueryFailure" name="Handle AAI Query Failure" scriptFormat="groovy">\r
18       <bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>\r
19       <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing>\r
20       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
21 def cvfvg = new CreateAAIVfModuleVolumeGroup()
22 cvfvg.handleAAIQueryFailure(execution)]]></bpmn2:script>\r
23     </bpmn2:scriptTask>\r
24     <bpmn2:sequenceFlow id="SequenceFlow_18" name="" sourceRef="AAIQueryFailure" targetRef="EndEvent_7"/>\r
25     <bpmn2:endEvent id="EndEvent_2">\r
26       <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>\r
27       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_50" errorRef="Error_1"/>\r
28     </bpmn2:endEvent>\r
29     <bpmn2:endEvent id="EndEvent_4" name="TheEnd">\r
30       <bpmn2:extensionElements>\r
31         <camunda:connector>\r
32           <camunda:inputOutput>\r
33             <camunda:outputParameter name="CreateCustomerV1Response"><![CDATA[<aetgt:CreateCustomerResponse xmlns:aetgt="http://ecomp.att.com/mso/workflow/schema/v1"                   xmlns:ns="http://ecomp.att.com/mso/workflow/schema/v1">
34  <ns:GlobalCustomerId>${CCV1_subscriberglobalid}</ns:GlobalCustomerId>
35    </aetgt:CreateCustomerResponse>]]></camunda:outputParameter>\r
36           </camunda:inputOutput>\r
37         </camunda:connector>\r
38       </bpmn2:extensionElements>\r
39       <bpmn2:incoming>SequenceFlow_13</bpmn2:incoming>\r
40     </bpmn2:endEvent>\r
41     <bpmn2:exclusiveGateway id="ExclusiveGateway_3" default="SequenceFlow_23">\r
42       <bpmn2:incoming>SequenceFlow_39</bpmn2:incoming>\r
43       <bpmn2:outgoing>SequenceFlow_22</bpmn2:outgoing>\r
44       <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>\r
45     </bpmn2:exclusiveGateway>\r
46     <bpmn2:sequenceFlow id="SequenceFlow_22" name="" sourceRef="ExclusiveGateway_3" targetRef="UpdateVfModule">\r
47       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable('CAAIVfModVG_getVfModuleResponseCode') == 200}</bpmn2:conditionExpression>\r
48     </bpmn2:sequenceFlow>\r
49     <bpmn2:sequenceFlow id="SequenceFlow_23" name="AAI Query failure or&#xD;&#xA;VF Module not  found" sourceRef="ExclusiveGateway_3" targetRef="AAIQueryFailure"/>\r
50     <bpmn2:scriptTask id="HandleUpdateVfModuleFailure" name="Handle Update VF Module Failure" scriptFormat="groovy">\r
51       <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>\r
52       <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>\r
53       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
54 def cvfvg = new CreateAAIVfModuleVolumeGroup()
55 cvfvg.handleUpdateVfModuleFailure(execution)]]></bpmn2:script>\r
56     </bpmn2:scriptTask>\r
57     <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="HandleUpdateVfModuleFailure" targetRef="EndEvent_2"/>\r
58     <bpmn2:startEvent id="StartEvent_1" name="Start">\r
59       <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>\r
60     </bpmn2:startEvent>\r
61     <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="StartEvent_1" targetRef="ProcessReceivedRequest"/>\r
62     <bpmn2:scriptTask id="ProcessReceivedRequest" name="Process Received Request" scriptFormat="groovy">\r
63       <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>\r
64       <bpmn2:outgoing>SequenceFlow_38</bpmn2:outgoing>\r
65       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
66 def cvfvg = new CreateAAIVfModuleVolumeGroup()
67 cvfvg.preProcessRequest(execution)]]></bpmn2:script>\r
68     </bpmn2:scriptTask>\r
69     <bpmn2:sequenceFlow id="SequenceFlow_38" name="" sourceRef="ProcessReceivedRequest" targetRef="QueryAAIForVfModule"/>\r
70     <bpmn2:scriptTask id="UpdateVfModule" name="Update VF Module with Volume Group" scriptFormat="groovy">\r
71       <bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>\r
72       <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>\r
73       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
74 def cvfvg = new CreateAAIVfModuleVolumeGroup()
75 cvfvg.updateVfModule(execution)]]></bpmn2:script>\r
76     </bpmn2:scriptTask>\r
77     <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="UpdateVfModule" targetRef="ExclusiveGateway_1"/>\r
78     <bpmn2:exclusiveGateway id="ExclusiveGateway_1" default="SequenceFlow_4">\r
79       <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>\r
80       <bpmn2:outgoing>SequenceFlow_13</bpmn2:outgoing>\r
81       <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>\r
82     </bpmn2:exclusiveGateway>\r
83     <bpmn2:sequenceFlow id="SequenceFlow_13" sourceRef="ExclusiveGateway_1" targetRef="EndEvent_4">\r
84       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable('CAAIVfModVG_updateVfModuleResponseCode') == 200}</bpmn2:conditionExpression>\r
85     </bpmn2:sequenceFlow>\r
86     <bpmn2:sequenceFlow id="SequenceFlow_4" name="Update VF Module Failure" sourceRef="ExclusiveGateway_1" targetRef="HandleUpdateVfModuleFailure"/>\r
87   </bpmn2:process>\r
88   <bpmn2:error id="Error_1" errorCode="MSOWorkflowException" name="MSO Workflow Exception"/>\r
89   <bpmndi:BPMNDiagram id="BPMNDiagram_1">\r
90     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateAAIVfModuleVolumeGroup">\r
91       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_37" bpmnElement="StartEvent_1">\r
92         <dc:Bounds height="36.0" width="36.0" x="60.0" y="212.0"/>\r
93         <bpmndi:BPMNLabel>\r
94           <dc:Bounds height="22.0" width="34.0" x="61.0" y="253.0"/>\r
95         </bpmndi:BPMNLabel>\r
96       </bpmndi:BPMNShape>\r
97       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_22" bpmnElement="ProcessReceivedRequest">\r
98         <dc:Bounds height="80.0" width="100.0" x="168.0" y="190.0"/>\r
99       </bpmndi:BPMNShape>\r
100       <bpmndi:BPMNShape id="_BPMNShape_Task_2" bpmnElement="UpdateVfModule">\r
101         <dc:Bounds height="80.0" width="100.0" x="672.0" y="190.0"/>\r
102       </bpmndi:BPMNShape>\r
103       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_92" bpmnElement="EndEvent_4">\r
104         <dc:Bounds height="36.0" width="36.0" x="1016.0" y="212.0"/>\r
105         <bpmndi:BPMNLabel>\r
106           <dc:Bounds height="22.0" width="50.0" x="1009.0" y="253.0"/>\r
107         </bpmndi:BPMNLabel>\r
108       </bpmndi:BPMNShape>\r
109       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_54" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">\r
110         <dc:Bounds height="50.0" width="50.0" x="841.0" y="204.0"/>\r
111         <bpmndi:BPMNLabel>\r
112           <dc:Bounds height="0.0" width="0.0" x="866.0" y="259.0"/>\r
113         </bpmndi:BPMNLabel>\r
114       </bpmndi:BPMNShape>\r
115       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_13" sourceElement="_BPMNShape_ExclusiveGateway_54" targetElement="_BPMNShape_EndEvent_92">\r
116         <di:waypoint xsi:type="dc:Point" x="891.0" y="229.0"/>\r
117         <di:waypoint xsi:type="dc:Point" x="993.0" y="229.0"/>\r
118         <di:waypoint xsi:type="dc:Point" x="993.0" y="230.0"/>\r
119         <di:waypoint xsi:type="dc:Point" x="1016.0" y="230.0"/>\r
120         <bpmndi:BPMNLabel>\r
121           <dc:Bounds height="0.0" width="0.0" x="929.0" y="229.0"/>\r
122         </bpmndi:BPMNLabel>\r
123       </bpmndi:BPMNEdge>\r
124       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_120" bpmnElement="EndEvent_2">\r
125         <dc:Bounds height="36.0" width="36.0" x="848.0" y="0.0"/>\r
126         <bpmndi:BPMNLabel>\r
127           <dc:Bounds height="0.0" width="0.0" x="866.0" y="41.0"/>\r
128         </bpmndi:BPMNLabel>\r
129       </bpmndi:BPMNShape>\r
130       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_86" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">\r
131         <dc:Bounds height="50.0" width="50.0" x="493.0" y="204.0"/>\r
132         <bpmndi:BPMNLabel>\r
133           <dc:Bounds height="0.0" width="0.0" x="518.0" y="259.0"/>\r
134         </bpmndi:BPMNLabel>\r
135       </bpmndi:BPMNShape>\r
136       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_23" bpmnElement="SequenceFlow_22" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_Task_2">\r
137         <di:waypoint xsi:type="dc:Point" x="543.0" y="229.0"/>\r
138         <di:waypoint xsi:type="dc:Point" x="607.0" y="229.0"/>\r
139         <di:waypoint xsi:type="dc:Point" x="607.0" y="230.0"/>\r
140         <di:waypoint xsi:type="dc:Point" x="672.0" y="230.0"/>\r
141         <bpmndi:BPMNLabel>\r
142           <dc:Bounds height="6.0" width="6.0" x="558.0" y="229.0"/>\r
143         </bpmndi:BPMNLabel>\r
144       </bpmndi:BPMNEdge>\r
145       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_155" bpmnElement="AAIQueryFailure">\r
146         <dc:Bounds height="80.0" width="100.0" x="468.0" y="60.0"/>\r
147       </bpmndi:BPMNShape>\r
148       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_24" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_ScriptTask_155">\r
149         <di:waypoint xsi:type="dc:Point" x="518.0" y="204.0"/>\r
150         <di:waypoint xsi:type="dc:Point" x="518.0" y="140.0"/>\r
151         <bpmndi:BPMNLabel>\r
152           <dc:Bounds height="38.0" width="130.0" x="528.0" y="152.0"/>\r
153         </bpmndi:BPMNLabel>\r
154       </bpmndi:BPMNEdge>\r
155       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_160" bpmnElement="EndEvent_7">\r
156         <dc:Bounds height="36.0" width="36.0" x="500.0" y="0.0"/>\r
157         <bpmndi:BPMNLabel>\r
158           <dc:Bounds height="0.0" width="0.0" x="518.0" y="41.0"/>\r
159         </bpmndi:BPMNLabel>\r
160       </bpmndi:BPMNShape>\r
161       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_ScriptTask_155" targetElement="_BPMNShape_EndEvent_160">\r
162         <di:waypoint xsi:type="dc:Point" x="518.0" y="60.0"/>\r
163         <di:waypoint xsi:type="dc:Point" x="518.0" y="36.0"/>\r
164         <bpmndi:BPMNLabel>\r
165           <dc:Bounds height="6.0" width="6.0" x="515.0" y="49.0"/>\r
166         </bpmndi:BPMNLabel>\r
167       </bpmndi:BPMNEdge>\r
168       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_160" bpmnElement="QueryAAIForVfModule">\r
169         <dc:Bounds height="80.0" width="100.0" x="336.0" y="190.0"/>\r
170       </bpmndi:BPMNShape>\r
171       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_38" sourceElement="_BPMNShape_ScriptTask_22" targetElement="_BPMNShape_ScriptTask_160">\r
172         <di:waypoint xsi:type="dc:Point" x="268.0" y="230.0"/>\r
173         <di:waypoint xsi:type="dc:Point" x="336.0" y="230.0"/>\r
174         <bpmndi:BPMNLabel>\r
175           <dc:Bounds height="6.0" width="6.0" x="288.0" y="230.0"/>\r
176         </bpmndi:BPMNLabel>\r
177       </bpmndi:BPMNEdge>\r
178       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_39" bpmnElement="SequenceFlow_39" sourceElement="_BPMNShape_ScriptTask_160" targetElement="_BPMNShape_ExclusiveGateway_86">\r
179         <di:waypoint xsi:type="dc:Point" x="436.0" y="230.0"/>\r
180         <di:waypoint xsi:type="dc:Point" x="452.0" y="230.0"/>\r
181         <di:waypoint xsi:type="dc:Point" x="452.0" y="229.0"/>\r
182         <di:waypoint xsi:type="dc:Point" x="493.0" y="229.0"/>\r
183         <bpmndi:BPMNLabel>\r
184           <dc:Bounds height="6.0" width="6.0" x="449.0" y="229.0"/>\r
185         </bpmndi:BPMNLabel>\r
186       </bpmndi:BPMNEdge>\r
187       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_161" bpmnElement="HandleUpdateVfModuleFailure">\r
188         <dc:Bounds height="80.0" width="100.0" x="816.0" y="60.0"/>\r
189       </bpmndi:BPMNShape>\r
190       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ScriptTask_161" targetElement="_BPMNShape_EndEvent_120">\r
191         <di:waypoint xsi:type="dc:Point" x="866.0" y="60.0"/>\r
192         <di:waypoint xsi:type="dc:Point" x="866.0" y="36.0"/>\r
193         <bpmndi:BPMNLabel>\r
194           <dc:Bounds height="6.0" width="6.0" x="863.0" y="51.0"/>\r
195         </bpmndi:BPMNLabel>\r
196       </bpmndi:BPMNEdge>\r
197       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_Task_2" targetElement="_BPMNShape_ExclusiveGateway_54">\r
198         <di:waypoint xsi:type="dc:Point" x="772.0" y="230.0"/>\r
199         <di:waypoint xsi:type="dc:Point" x="797.0" y="230.0"/>\r
200         <di:waypoint xsi:type="dc:Point" x="797.0" y="229.0"/>\r
201         <di:waypoint xsi:type="dc:Point" x="841.0" y="229.0"/>\r
202         <bpmndi:BPMNLabel>\r
203           <dc:Bounds height="6.0" width="6.0" x="801.0" y="229.0"/>\r
204         </bpmndi:BPMNLabel>\r
205       </bpmndi:BPMNEdge>\r
206       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ExclusiveGateway_54" targetElement="_BPMNShape_ScriptTask_161">\r
207         <di:waypoint xsi:type="dc:Point" x="866.0" y="204.0"/>\r
208         <di:waypoint xsi:type="dc:Point" x="865.0" y="172.0"/>\r
209         <di:waypoint xsi:type="dc:Point" x="867.0" y="172.0"/>\r
210         <di:waypoint xsi:type="dc:Point" x="867.0" y="140.0"/>\r
211         <bpmndi:BPMNLabel>\r
212           <dc:Bounds height="22.0" width="157.0" x="883.0" y="158.0"/>\r
213         </bpmndi:BPMNLabel>\r
214       </bpmndi:BPMNEdge>\r
215       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_StartEvent_37" targetElement="_BPMNShape_ScriptTask_22">\r
216         <di:waypoint xsi:type="dc:Point" x="96.0" y="230.0"/>\r
217         <di:waypoint xsi:type="dc:Point" x="168.0" y="230.0"/>\r
218         <bpmndi:BPMNLabel>\r
219           <dc:Bounds height="6.0" width="6.0" x="148.0" y="230.0"/>\r
220         </bpmndi:BPMNLabel>\r
221       </bpmndi:BPMNEdge>\r
222     </bpmndi:BPMNPlane>\r
223   </bpmndi:BPMNDiagram>\r
224 </bpmn2:definitions>