blob: fee4dbd2d33bcfb18401f1833979a2202eca8847 [file] [log] [blame]
xg353yb6b7bef2017-04-11 13:30:42 +02001<?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="_jPy0EB7JEeaR94RQz1cKqQ" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://camunda.org/schema/1.0/bpmn">
3 <bpmn2:process id="ConfirmVolumeGroupTenant" name="ConfirmVolumeGroupTenant" isExecutable="true">
4 <bpmn2:scriptTask id="queryAAIForVolumeGroup" name="Query AAI Volume Group" scriptFormat="groovy">
5 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
6 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
7 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ChrisC025301d2017-01-31 11:40:03 +01008ConfirmVolumeGroupTenant volume = new ConfirmVolumeGroupTenant()
xg353yb6b7bef2017-04-11 13:30:42 +02009volume.preProcessRequest(execution)]]></bpmn2:script>
10 </bpmn2:scriptTask>
11 <bpmn2:exclusiveGateway id="tenantIdMatchCheck" name="Tenant Ids&#xD;&#xA;Match?" default="idsMatchNo">
12 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
13 <bpmn2:outgoing>idsMatchNo</bpmn2:outgoing>
14 <bpmn2:outgoing>idsMatchYes</bpmn2:outgoing>
15 </bpmn2:exclusiveGateway>
16 <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="queryAAIForVolumeGroup" targetRef="tenantIdMatchCheck"/>
17 <bpmn2:sequenceFlow id="idsMatchNo" name="No" sourceRef="tenantIdMatchCheck" targetRef="assignError"/>
18 <bpmn2:sequenceFlow id="idsMatchYes" name="Yes" sourceRef="tenantIdMatchCheck" targetRef="tenantNamesMatchCheck">
19 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("tenantIdsMatch")==true}]]></bpmn2:conditionExpression>
20 </bpmn2:sequenceFlow>
21 <bpmn2:endEvent id="EndEvent_1">
22 <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
23 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_2"/>
24 </bpmn2:endEvent>
25 <bpmn2:scriptTask id="assignError" name="Assign Workflow Exception" scriptFormat="groovy">
26 <bpmn2:incoming>idsMatchNo</bpmn2:incoming>
27 <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
28 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ChrisC025301d2017-01-31 11:40:03 +010029ConfirmVolumeGroupTenant volume = new ConfirmVolumeGroupTenant()
xg353yb6b7bef2017-04-11 13:30:42 +020030volume.assignWorkflowException(execution, "does not belong to your tenant")]]></bpmn2:script>
31 </bpmn2:scriptTask>
32 <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="assignError" targetRef="EndEvent_3"/>
33 <bpmn2:endEvent id="EndEvent_3">
34 <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
35 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_75" errorRef="Error_1"/>
36 </bpmn2:endEvent>
37 <bpmn2:scriptTask id="assignVolumeHeatId" name="Assign Volume Heat Id" scriptFormat="groovy">
38 <bpmn2:incoming>groupNamesMatchYes</bpmn2:incoming>
39 <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
40 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ChrisC025301d2017-01-31 11:40:03 +010041ConfirmVolumeGroupTenant volume = new ConfirmVolumeGroupTenant()
xg353yb6b7bef2017-04-11 13:30:42 +020042volume.assignVolumeHeatId(execution)]]></bpmn2:script>
43 </bpmn2:scriptTask>
44 <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="assignVolumeHeatId" targetRef="EndEvent_1"/>
45 <bpmn2:scriptTask id="assignErrorNames" name="Assign Workflow Exception" scriptFormat="groovy">
46 <bpmn2:incoming>groupNamesMatchNo</bpmn2:incoming>
47 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
48 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ChrisC025301d2017-01-31 11:40:03 +010049ConfirmVolumeGroupTenant volume = new ConfirmVolumeGroupTenant()
xg353yb6b7bef2017-04-11 13:30:42 +020050volume.assignWorkflowException(execution, "name does not match")]]></bpmn2:script>
51 </bpmn2:scriptTask>
52 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="assignErrorNames" targetRef="EndEvent_2"/>
53 <bpmn2:endEvent id="EndEvent_2">
54 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
55 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_74" errorRef="Error_1"/>
56 </bpmn2:endEvent>
57 <bpmn2:exclusiveGateway id="tenantNamesMatchCheck" name="Volume Group&#xD;&#xA;Names Match?" default="groupNamesMatchNo">
58 <bpmn2:incoming>idsMatchYes</bpmn2:incoming>
59 <bpmn2:outgoing>groupNamesMatchNo</bpmn2:outgoing>
60 <bpmn2:outgoing>groupNamesMatchYes</bpmn2:outgoing>
61 </bpmn2:exclusiveGateway>
62 <bpmn2:sequenceFlow id="groupNamesMatchNo" name="No" sourceRef="tenantNamesMatchCheck" targetRef="assignErrorNames"/>
63 <bpmn2:sequenceFlow id="groupNamesMatchYes" name="Yes" sourceRef="tenantNamesMatchCheck" targetRef="assignVolumeHeatId">
64 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("groupNamesMatch")==true}]]></bpmn2:conditionExpression>
65 </bpmn2:sequenceFlow>
66 <bpmn2:startEvent id="StartEvent_1">
67 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
68 </bpmn2:startEvent>
69 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="queryAAIForVolumeGroup"/>
70 </bpmn2:process>
71 <bpmn2:error id="Error_1" errorCode="MSOWorkflowException" name="MSO Workflow Exception"/>
72 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
73 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ConfirmVolumeGroupTenant">
74 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_61" bpmnElement="StartEvent_1">
75 <dc:Bounds height="36.0" width="36.0" x="129.0" y="324.0"/>
76 <bpmndi:BPMNLabel>
77 <dc:Bounds height="0.0" width="0.0" x="147.0" y="365.0"/>
78 </bpmndi:BPMNLabel>
79 </bpmndi:BPMNShape>
80 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_237" bpmnElement="queryAAIForVolumeGroup">
81 <dc:Bounds height="80.0" width="100.0" x="252.0" y="302.0"/>
82 </bpmndi:BPMNShape>
83 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_61" targetElement="_BPMNShape_ScriptTask_237">
84 <di:waypoint xsi:type="dc:Point" x="165.0" y="342.0"/>
85 <di:waypoint xsi:type="dc:Point" x="252.0" y="342.0"/>
86 <bpmndi:BPMNLabel>
87 <dc:Bounds height="6.0" width="6.0" x="179.0" y="342.0"/>
88 </bpmndi:BPMNLabel>
89 </bpmndi:BPMNEdge>
90 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_209" bpmnElement="tenantIdMatchCheck" isMarkerVisible="true">
91 <dc:Bounds height="50.0" width="50.0" x="384.0" y="316.0"/>
92 <bpmndi:BPMNLabel>
93 <dc:Bounds height="38.0" width="76.0" x="414.0" y="347.0"/>
94 </bpmndi:BPMNLabel>
95 </bpmndi:BPMNShape>
96 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_237" targetElement="_BPMNShape_ExclusiveGateway_209">
97 <di:waypoint xsi:type="dc:Point" x="352.0" y="342.0"/>
98 <di:waypoint xsi:type="dc:Point" x="368.0" y="342.0"/>
99 <di:waypoint xsi:type="dc:Point" x="368.0" y="341.0"/>
100 <di:waypoint xsi:type="dc:Point" x="384.0" y="341.0"/>
101 </bpmndi:BPMNEdge>
102 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_210" bpmnElement="tenantNamesMatchCheck" isMarkerVisible="true">
103 <dc:Bounds height="50.0" width="50.0" x="460.0" y="216.0"/>
104 <bpmndi:BPMNLabel>
105 <dc:Bounds height="38.0" width="99.0" x="494.0" y="246.0"/>
106 </bpmndi:BPMNLabel>
107 </bpmndi:BPMNShape>
108 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_238" bpmnElement="assignError">
109 <dc:Bounds height="80.0" width="100.0" x="456.0" y="400.0"/>
110 </bpmndi:BPMNShape>
111 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="idsMatchNo" sourceElement="_BPMNShape_ExclusiveGateway_209" targetElement="_BPMNShape_ScriptTask_238">
112 <di:waypoint xsi:type="dc:Point" x="409.0" y="366.0"/>
113 <di:waypoint xsi:type="dc:Point" x="409.0" y="440.0"/>
114 <di:waypoint xsi:type="dc:Point" x="456.0" y="440.0"/>
115 <bpmndi:BPMNLabel>
116 <dc:Bounds height="22.0" width="22.0" x="414.0" y="400.0"/>
117 </bpmndi:BPMNLabel>
118 </bpmndi:BPMNEdge>
119 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="idsMatchYes" sourceElement="_BPMNShape_ExclusiveGateway_209" targetElement="_BPMNShape_ExclusiveGateway_210">
120 <di:waypoint xsi:type="dc:Point" x="409.0" y="316.0"/>
121 <di:waypoint xsi:type="dc:Point" x="409.0" y="241.0"/>
122 <di:waypoint xsi:type="dc:Point" x="460.0" y="241.0"/>
123 <bpmndi:BPMNLabel>
124 <dc:Bounds height="22.0" width="29.0" x="411.0" y="266.0"/>
125 </bpmndi:BPMNLabel>
126 </bpmndi:BPMNEdge>
127 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_239" bpmnElement="assignErrorNames">
128 <dc:Bounds height="80.0" width="100.0" x="555.0" y="296.0"/>
129 </bpmndi:BPMNShape>
130 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="groupNamesMatchNo" sourceElement="_BPMNShape_ExclusiveGateway_210" targetElement="_BPMNShape_ScriptTask_239">
131 <di:waypoint xsi:type="dc:Point" x="485.0" y="266.0"/>
132 <di:waypoint xsi:type="dc:Point" x="485.0" y="336.0"/>
133 <di:waypoint xsi:type="dc:Point" x="555.0" y="336.0"/>
134 <bpmndi:BPMNLabel>
135 <dc:Bounds height="22.0" width="22.0" x="491.0" y="296.0"/>
136 </bpmndi:BPMNLabel>
137 </bpmndi:BPMNEdge>
138 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_240" bpmnElement="assignVolumeHeatId">
139 <dc:Bounds height="80.0" width="100.0" x="555.0" y="120.0"/>
140 </bpmndi:BPMNShape>
141 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="groupNamesMatchYes" sourceElement="_BPMNShape_ExclusiveGateway_210" targetElement="_BPMNShape_ScriptTask_240">
142 <di:waypoint xsi:type="dc:Point" x="485.0" y="216.0"/>
143 <di:waypoint xsi:type="dc:Point" x="485.0" y="160.0"/>
144 <di:waypoint xsi:type="dc:Point" x="555.0" y="160.0"/>
145 <bpmndi:BPMNLabel>
146 <dc:Bounds height="22.0" width="29.0" x="487.0" y="173.0"/>
147 </bpmndi:BPMNLabel>
148 </bpmndi:BPMNEdge>
149 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_200" bpmnElement="EndEvent_1">
150 <dc:Bounds height="36.0" width="36.0" x="738.0" y="142.0"/>
151 <bpmndi:BPMNLabel>
152 <dc:Bounds height="0.0" width="0.0" x="756.0" y="183.0"/>
153 </bpmndi:BPMNLabel>
154 </bpmndi:BPMNShape>
155 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_240" targetElement="_BPMNShape_EndEvent_200">
156 <di:waypoint xsi:type="dc:Point" x="655.0" y="160.0"/>
157 <di:waypoint xsi:type="dc:Point" x="738.0" y="160.0"/>
158 <bpmndi:BPMNLabel>
159 <dc:Bounds height="6.0" width="6.0" x="692.0" y="160.0"/>
160 </bpmndi:BPMNLabel>
161 </bpmndi:BPMNEdge>
162 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_210" bpmnElement="EndEvent_2">
163 <dc:Bounds height="36.0" width="36.0" x="709.0" y="318.0"/>
164 <bpmndi:BPMNLabel>
165 <dc:Bounds height="0.0" width="0.0" x="727.0" y="359.0"/>
166 </bpmndi:BPMNLabel>
167 </bpmndi:BPMNShape>
168 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_211" bpmnElement="EndEvent_3">
169 <dc:Bounds height="36.0" width="36.0" x="605.0" y="422.0"/>
170 <bpmndi:BPMNLabel>
171 <dc:Bounds height="0.0" width="0.0" x="623.0" y="463.0"/>
172 </bpmndi:BPMNLabel>
173 </bpmndi:BPMNShape>
174 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ScriptTask_238" targetElement="_BPMNShape_EndEvent_211">
175 <di:waypoint xsi:type="dc:Point" x="556.0" y="440.0"/>
176 <di:waypoint xsi:type="dc:Point" x="605.0" y="440.0"/>
177 <bpmndi:BPMNLabel>
178 <dc:Bounds height="6.0" width="6.0" x="591.0" y="440.0"/>
179 </bpmndi:BPMNLabel>
180 </bpmndi:BPMNEdge>
181 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_239" targetElement="_BPMNShape_EndEvent_210">
182 <di:waypoint xsi:type="dc:Point" x="655.0" y="336.0"/>
183 <di:waypoint xsi:type="dc:Point" x="709.0" y="336.0"/>
184 <bpmndi:BPMNLabel>
185 <dc:Bounds height="6.0" width="6.0" x="680.0" y="336.0"/>
186 </bpmndi:BPMNLabel>
187 </bpmndi:BPMNEdge>
188 </bpmndi:BPMNPlane>
189 </bpmndi:BPMNDiagram>
ChrisC025301d2017-01-31 11:40:03 +0100190</bpmn2:definitions>