[SO] Release so 1.13.0 image
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / process / DeleteServiceIntentInstance.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>
2 <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1stoy5y" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.1.1">
3   <bpmn:process id="DeleteServiceIntentInstance" name="DeallocateSliceSubnet" isExecutable="true">
4     <bpmn:startEvent id="StartEvent_1" name="Start">
5       <bpmn:outgoing>Flow_143ck2k</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:sequenceFlow id="Flow_143ck2k" sourceRef="StartEvent_1" targetRef="Activity_0zyhkvj" />
8     <bpmn:scriptTask id="Activity_0zyhkvj" name="Preprocess Request" scriptFormat="groovy">
9       <bpmn:incoming>Flow_143ck2k</bpmn:incoming>
10       <bpmn:outgoing>Flow_0pttfuf</bpmn:outgoing>
11       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
12 def nss = new DeleteServiceIntentInstance()
13 nss.preProcessRequest(execution)</bpmn:script>
14     </bpmn:scriptTask>
15     <bpmn:scriptTask id="Activity_0c6o2o7" name="Send Sync Response" scriptFormat="groovy">
16       <bpmn:incoming>Flow_1c1j5i1</bpmn:incoming>
17       <bpmn:outgoing>Flow_1kljyhj</bpmn:outgoing>
18       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
19 def nss = new DeleteServiceIntentInstance()
20 nss.sendSyncResponse(execution)</bpmn:script>
21     </bpmn:scriptTask>
22     <bpmn:serviceTask id="Activity_1dykbz9" name="Update Resource Operation Status">
23       <bpmn:extensionElements>
24         <camunda:connector>
25           <camunda:inputOutput>
26             <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
27             <camunda:inputParameter name="headers">
28               <camunda:map>
29                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
30                 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
31               </camunda:map>
32             </camunda:inputParameter>
33             <camunda:inputParameter name="payload">${initResourceOperationStatus}</camunda:inputParameter>
34             <camunda:inputParameter name="method">POST</camunda:inputParameter>
35             <camunda:outputParameter name="NSSMF_dbResponseCode">${statusCode}</camunda:outputParameter>
36             <camunda:outputParameter name="NSSMF_dbResponse">${response}</camunda:outputParameter>
37           </camunda:inputOutput>
38           <camunda:connectorId>http-connector</camunda:connectorId>
39         </camunda:connector>
40       </bpmn:extensionElements>
41       <bpmn:incoming>Flow_04jsg9s</bpmn:incoming>
42       <bpmn:outgoing>Flow_1c1j5i1</bpmn:outgoing>
43     </bpmn:serviceTask>
44     <bpmn:sequenceFlow id="Flow_0pttfuf" sourceRef="Activity_0zyhkvj" targetRef="Activity_1fj0cge" />
45     <bpmn:sequenceFlow id="Flow_1c1j5i1" sourceRef="Activity_1dykbz9" targetRef="Activity_0c6o2o7" />
46     <bpmn:scriptTask id="Activity_1fj0cge" name="Init Resource Operation Status" scriptFormat="groovy">
47       <bpmn:incoming>Flow_0pttfuf</bpmn:incoming>
48       <bpmn:outgoing>Flow_04jsg9s</bpmn:outgoing>
49       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
50 def nss = new DeleteServiceIntentInstance()
51 nss.prepareInitOperationStatus(execution)</bpmn:script>
52     </bpmn:scriptTask>
53     <bpmn:sequenceFlow id="Flow_04jsg9s" sourceRef="Activity_1fj0cge" targetRef="Activity_1dykbz9" />
54     <bpmn:exclusiveGateway id="Gateway_1jagvdq" name="Which Intent service type?">
55       <bpmn:incoming>Flow_1kljyhj</bpmn:incoming>
56       <bpmn:outgoing>Flow_0zwyxxc</bpmn:outgoing>
57       <bpmn:outgoing>Flow_0roz1jy</bpmn:outgoing>
58     </bpmn:exclusiveGateway>
59     <bpmn:callActivity id="Activity_0li16m1" name="Call CloudLeasedLineDelete" calledElement="DoCloudLeasedLineDelete">
60       <bpmn:extensionElements>
61         <camunda:in source="msoRequestId" target="msoRequestId" />
62         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
63         <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
64         <camunda:in source="serviceType" target="serviceType" />
65         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
66         <camunda:in source="jobId" target="jobId" />
67         <camunda:in source="serviceIntentParams" target="serviceIntentParams" />
68         <camunda:out source="WorkflowException" target="WorkflowException" />
69         <camunda:in source="servicename" target="servicename" />
70       </bpmn:extensionElements>
71       <bpmn:incoming>Flow_0zwyxxc</bpmn:incoming>
72       <bpmn:outgoing>Flow_1l74oic</bpmn:outgoing>
73     </bpmn:callActivity>
74     <bpmn:endEvent id="Event_1ecylff">
75       <bpmn:incoming>Flow_1l74oic</bpmn:incoming>
76       <bpmn:incoming>Flow_0roz1jy</bpmn:incoming>
77     </bpmn:endEvent>
78     <bpmn:sequenceFlow id="Flow_0zwyxxc" name="Cloud Leased Line" sourceRef="Gateway_1jagvdq" targetRef="Activity_0li16m1">
79       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("serviceType") == "CLL"}</bpmn:conditionExpression>
80     </bpmn:sequenceFlow>
81     <bpmn:sequenceFlow id="Flow_0roz1jy" name="Other service type" sourceRef="Gateway_1jagvdq" targetRef="Event_1ecylff">
82       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("serviceType") != "CLL"}</bpmn:conditionExpression>
83     </bpmn:sequenceFlow>
84     <bpmn:sequenceFlow id="Flow_1l74oic" sourceRef="Activity_0li16m1" targetRef="Event_1ecylff" />
85     <bpmn:sequenceFlow id="Flow_1kljyhj" sourceRef="Activity_0c6o2o7" targetRef="Gateway_1jagvdq" />
86   </bpmn:process>
87   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
88     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteServiceIntentInstance">
89       <bpmndi:BPMNEdge id="Flow_1kljyhj_di" bpmnElement="Flow_1kljyhj">
90         <di:waypoint x="890" y="250" />
91         <di:waypoint x="975" y="250" />
92       </bpmndi:BPMNEdge>
93       <bpmndi:BPMNEdge id="Flow_1l74oic_di" bpmnElement="Flow_1l74oic">
94         <di:waypoint x="1190" y="120" />
95         <di:waypoint x="1280" y="120" />
96         <di:waypoint x="1280" y="232" />
97       </bpmndi:BPMNEdge>
98       <bpmndi:BPMNEdge id="Flow_0roz1jy_di" bpmnElement="Flow_0roz1jy">
99         <di:waypoint x="1025" y="250" />
100         <di:waypoint x="1262" y="250" />
101         <bpmndi:BPMNLabel>
102           <dc:Bounds x="1085" y="232" width="90" height="14" />
103         </bpmndi:BPMNLabel>
104       </bpmndi:BPMNEdge>
105       <bpmndi:BPMNEdge id="Flow_0zwyxxc_di" bpmnElement="Flow_0zwyxxc">
106         <di:waypoint x="1000" y="225" />
107         <di:waypoint x="1000" y="120" />
108         <di:waypoint x="1090" y="120" />
109         <bpmndi:BPMNLabel>
110           <dc:Bounds x="996" y="86" width="68" height="27" />
111         </bpmndi:BPMNLabel>
112       </bpmndi:BPMNEdge>
113       <bpmndi:BPMNEdge id="Flow_04jsg9s_di" bpmnElement="Flow_04jsg9s">
114         <di:waypoint x="520" y="250" />
115         <di:waypoint x="600" y="250" />
116       </bpmndi:BPMNEdge>
117       <bpmndi:BPMNEdge id="Flow_1c1j5i1_di" bpmnElement="Flow_1c1j5i1">
118         <di:waypoint x="700" y="250" />
119         <di:waypoint x="790" y="250" />
120       </bpmndi:BPMNEdge>
121       <bpmndi:BPMNEdge id="Flow_0pttfuf_di" bpmnElement="Flow_0pttfuf">
122         <di:waypoint x="330" y="250" />
123         <di:waypoint x="420" y="250" />
124       </bpmndi:BPMNEdge>
125       <bpmndi:BPMNEdge id="Flow_143ck2k_di" bpmnElement="Flow_143ck2k">
126         <di:waypoint x="168" y="250" />
127         <di:waypoint x="230" y="250" />
128       </bpmndi:BPMNEdge>
129       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
130         <dc:Bounds x="132" y="232" width="36" height="36" />
131         <bpmndi:BPMNLabel>
132           <dc:Bounds x="138" y="275" width="24" height="14" />
133         </bpmndi:BPMNLabel>
134       </bpmndi:BPMNShape>
135       <bpmndi:BPMNShape id="Activity_1jawdkz_di" bpmnElement="Activity_0zyhkvj">
136         <dc:Bounds x="230" y="210" width="100" height="80" />
137       </bpmndi:BPMNShape>
138       <bpmndi:BPMNShape id="Activity_1n1ajr4_di" bpmnElement="Activity_0c6o2o7">
139         <dc:Bounds x="790" y="210" width="100" height="80" />
140       </bpmndi:BPMNShape>
141       <bpmndi:BPMNShape id="Activity_1dykbz9_di" bpmnElement="Activity_1dykbz9">
142         <dc:Bounds x="600" y="210" width="100" height="80" />
143       </bpmndi:BPMNShape>
144       <bpmndi:BPMNShape id="Activity_1fj0cge_di" bpmnElement="Activity_1fj0cge">
145         <dc:Bounds x="420" y="210" width="100" height="80" />
146       </bpmndi:BPMNShape>
147       <bpmndi:BPMNShape id="Gateway_1jagvdq_di" bpmnElement="Gateway_1jagvdq" isMarkerVisible="true">
148         <dc:Bounds x="975" y="225" width="50" height="50" />
149         <bpmndi:BPMNLabel>
150           <dc:Bounds x="967" y="286" width="65" height="27" />
151         </bpmndi:BPMNLabel>
152       </bpmndi:BPMNShape>
153       <bpmndi:BPMNShape id="Activity_0li16m1_di" bpmnElement="Activity_0li16m1">
154         <dc:Bounds x="1090" y="80" width="100" height="80" />
155       </bpmndi:BPMNShape>
156       <bpmndi:BPMNShape id="Event_1ecylff_di" bpmnElement="Event_1ecylff">
157         <dc:Bounds x="1262" y="232" width="36" height="36" />
158       </bpmndi:BPMNShape>
159     </bpmndi:BPMNPlane>
160   </bpmndi:BPMNDiagram>
161 </bpmn:definitions>