[SO] Release so 1.13.0 image
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / process / ModifyServiceIntentInstance.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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0fme930" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.1.1">
3   <bpmn:process id="ModifyServiceIntentInstance" name="ModifyServiceIntentInstance" isExecutable="true">
4     <bpmn:startEvent id="Event_05idy03" name="Start">
5       <bpmn:outgoing>Flow_1t0w8dn</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:scriptTask id="Activity_0kd9pxx" name="Preprocess Request" scriptFormat="groovy">
8       <bpmn:incoming>Flow_1t0w8dn</bpmn:incoming>
9       <bpmn:outgoing>Flow_0fzchbl</bpmn:outgoing>
10       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
11 def nss = new ModifyServiceIntentInstance()
12 nss.preProcessRequest(execution)</bpmn:script>
13     </bpmn:scriptTask>
14     <bpmn:scriptTask id="Activity_1dzkfh2" name="Send Sync Response" scriptFormat="groovy">
15       <bpmn:incoming>Flow_1q030ul</bpmn:incoming>
16       <bpmn:outgoing>Flow_0ps6iyc</bpmn:outgoing>
17       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
18 def nss = new ModifyServiceIntentInstance()
19 nss.sendSyncResponse(execution)</bpmn:script>
20     </bpmn:scriptTask>
21     <bpmn:exclusiveGateway id="Gateway_1baxf7k" name="Which Intent Service">
22       <bpmn:incoming>Flow_0ps6iyc</bpmn:incoming>
23       <bpmn:outgoing>Flow_15luvlg</bpmn:outgoing>
24       <bpmn:outgoing>Flow_0usuozn</bpmn:outgoing>
25       <bpmn:outgoing>Flow_1dfyoe6</bpmn:outgoing>
26     </bpmn:exclusiveGateway>
27     <bpmn:endEvent id="Event_103vvkf">
28       <bpmn:incoming>Flow_1b2k523</bpmn:incoming>
29       <bpmn:incoming>Flow_1dfyoe6</bpmn:incoming>
30       <bpmn:incoming>Flow_15luvlg</bpmn:incoming>
31     </bpmn:endEvent>
32     <bpmn:serviceTask id="Activity_0ptby3d" name="Update Resource Operation Status">
33       <bpmn:extensionElements>
34         <camunda:connector>
35           <camunda:inputOutput>
36             <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
37             <camunda:inputParameter name="headers">
38               <camunda:map>
39                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
40                 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
41               </camunda:map>
42             </camunda:inputParameter>
43             <camunda:inputParameter name="payload">${initResourceOperationStatus}</camunda:inputParameter>
44             <camunda:inputParameter name="method">POST</camunda:inputParameter>
45             <camunda:outputParameter name="NSSMF_dbResponseCode">${statusCode}</camunda:outputParameter>
46             <camunda:outputParameter name="NSSMF_dbResponse">${response}</camunda:outputParameter>
47           </camunda:inputOutput>
48           <camunda:connectorId>http-connector</camunda:connectorId>
49         </camunda:connector>
50       </bpmn:extensionElements>
51       <bpmn:incoming>Flow_1grhlet</bpmn:incoming>
52       <bpmn:outgoing>Flow_1q030ul</bpmn:outgoing>
53     </bpmn:serviceTask>
54     <bpmn:sequenceFlow id="Flow_1t0w8dn" sourceRef="Event_05idy03" targetRef="Activity_0kd9pxx" />
55     <bpmn:sequenceFlow id="Flow_0fzchbl" sourceRef="Activity_0kd9pxx" targetRef="Activity_1s8ojcr" />
56     <bpmn:sequenceFlow id="Flow_1q030ul" sourceRef="Activity_0ptby3d" targetRef="Activity_1dzkfh2" />
57     <bpmn:sequenceFlow id="Flow_0ps6iyc" sourceRef="Activity_1dzkfh2" targetRef="Gateway_1baxf7k" />
58     <bpmn:sequenceFlow id="Flow_15luvlg" sourceRef="Gateway_1baxf7k" targetRef="Event_103vvkf">
59       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "TN"}</bpmn:conditionExpression>
60     </bpmn:sequenceFlow>
61     <bpmn:sequenceFlow id="Flow_0usuozn" name="Cloud Leased Line" sourceRef="Gateway_1baxf7k" targetRef="Activity_0t1g4mp">
62       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("serviceType") == "CLL"}</bpmn:conditionExpression>
63     </bpmn:sequenceFlow>
64     <bpmn:scriptTask id="Activity_1s8ojcr" name="Init Resource Operation Status" scriptFormat="groovy">
65       <bpmn:incoming>Flow_0fzchbl</bpmn:incoming>
66       <bpmn:outgoing>Flow_1grhlet</bpmn:outgoing>
67       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
68 def nss = new ModifyServiceIntentInstance()
69 nss.prepareInitOperationStatus(execution)</bpmn:script>
70     </bpmn:scriptTask>
71     <bpmn:sequenceFlow id="Flow_1grhlet" sourceRef="Activity_1s8ojcr" targetRef="Activity_0ptby3d" />
72     <bpmn:callActivity id="Activity_0t1g4mp" name="Call CloudLeasedLineModify" calledElement="DoCloudLeasedLineModify">
73       <bpmn:extensionElements>
74         <camunda:in source="msoRequestId" target="msoRequestId" />
75         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
76         <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
77         <camunda:in source="serviceType" target="serviceType" />
78         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
79         <camunda:in source="jobId" target="jobId" />
80         <camunda:in source="serviceIntentParams" target="serviceIntentParams" />
81         <camunda:out source="WorkflowException" target="WorkflowException" />
82         <camunda:in source="servicename" target="servicename" />
83       </bpmn:extensionElements>
84       <bpmn:incoming>Flow_0usuozn</bpmn:incoming>
85       <bpmn:outgoing>Flow_1b2k523</bpmn:outgoing>
86     </bpmn:callActivity>
87     <bpmn:sequenceFlow id="Flow_1b2k523" sourceRef="Activity_0t1g4mp" targetRef="Event_103vvkf" />
88     <bpmn:sequenceFlow id="Flow_1dfyoe6" name="Other servcie" sourceRef="Gateway_1baxf7k" targetRef="Event_103vvkf">
89       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("serviceType") != "CLL"}</bpmn:conditionExpression>
90     </bpmn:sequenceFlow>
91   </bpmn:process>
92   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
93     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ModifyServiceIntentInstance">
94       <bpmndi:BPMNEdge id="Flow_1dfyoe6_di" bpmnElement="Flow_1dfyoe6">
95         <di:waypoint x="855" y="270" />
96         <di:waypoint x="1092" y="270" />
97         <bpmndi:BPMNLabel>
98           <dc:Bounds x="917" y="252" width="66" height="14" />
99         </bpmndi:BPMNLabel>
100       </bpmndi:BPMNEdge>
101       <bpmndi:BPMNEdge id="Flow_1b2k523_di" bpmnElement="Flow_1b2k523">
102         <di:waypoint x="1020" y="140" />
103         <di:waypoint x="1110" y="140" />
104         <di:waypoint x="1110" y="252" />
105       </bpmndi:BPMNEdge>
106       <bpmndi:BPMNEdge id="Flow_1grhlet_di" bpmnElement="Flow_1grhlet">
107         <di:waypoint x="440" y="270" />
108         <di:waypoint x="490" y="270" />
109       </bpmndi:BPMNEdge>
110       <bpmndi:BPMNEdge id="Flow_0usuozn_di" bpmnElement="Flow_0usuozn">
111         <di:waypoint x="830" y="245" />
112         <di:waypoint x="830" y="140" />
113         <di:waypoint x="920" y="140" />
114         <bpmndi:BPMNLabel>
115           <dc:Bounds x="816" y="113" width="68" height="27" />
116         </bpmndi:BPMNLabel>
117       </bpmndi:BPMNEdge>
118       <bpmndi:BPMNEdge id="Flow_15luvlg_di" bpmnElement="Flow_15luvlg">
119         <di:waypoint x="855" y="270" />
120         <di:waypoint x="1092" y="270" />
121         <bpmndi:BPMNLabel>
122           <dc:Bounds x="852" y="365" width="36" height="14" />
123         </bpmndi:BPMNLabel>
124       </bpmndi:BPMNEdge>
125       <bpmndi:BPMNEdge id="Flow_0ps6iyc_di" bpmnElement="Flow_0ps6iyc">
126         <di:waypoint x="740" y="270" />
127         <di:waypoint x="805" y="270" />
128       </bpmndi:BPMNEdge>
129       <bpmndi:BPMNEdge id="Flow_1q030ul_di" bpmnElement="Flow_1q030ul">
130         <di:waypoint x="590" y="270" />
131         <di:waypoint x="640" y="270" />
132       </bpmndi:BPMNEdge>
133       <bpmndi:BPMNEdge id="Flow_0fzchbl_di" bpmnElement="Flow_0fzchbl">
134         <di:waypoint x="310" y="270" />
135         <di:waypoint x="340" y="270" />
136       </bpmndi:BPMNEdge>
137       <bpmndi:BPMNEdge id="Flow_1t0w8dn_di" bpmnElement="Flow_1t0w8dn">
138         <di:waypoint x="188" y="270" />
139         <di:waypoint x="210" y="270" />
140       </bpmndi:BPMNEdge>
141       <bpmndi:BPMNShape id="Event_05idy03_di" bpmnElement="Event_05idy03">
142         <dc:Bounds x="152" y="252" width="36" height="36" />
143         <bpmndi:BPMNLabel>
144           <dc:Bounds x="158" y="295" width="24" height="14" />
145         </bpmndi:BPMNLabel>
146       </bpmndi:BPMNShape>
147       <bpmndi:BPMNShape id="Activity_0kd9pxx_di" bpmnElement="Activity_0kd9pxx">
148         <dc:Bounds x="210" y="230" width="100" height="80" />
149       </bpmndi:BPMNShape>
150       <bpmndi:BPMNShape id="Activity_1dzkfh2_di" bpmnElement="Activity_1dzkfh2">
151         <dc:Bounds x="640" y="230" width="100" height="80" />
152       </bpmndi:BPMNShape>
153       <bpmndi:BPMNShape id="Gateway_1baxf7k_di" bpmnElement="Gateway_1baxf7k" isMarkerVisible="true">
154         <dc:Bounds x="805" y="245" width="50" height="50" />
155         <bpmndi:BPMNLabel>
156           <dc:Bounds x="799" y="306" width="62" height="27" />
157         </bpmndi:BPMNLabel>
158       </bpmndi:BPMNShape>
159       <bpmndi:BPMNShape id="Event_103vvkf_di" bpmnElement="Event_103vvkf">
160         <dc:Bounds x="1092" y="252" width="36" height="36" />
161       </bpmndi:BPMNShape>
162       <bpmndi:BPMNShape id="Activity_0ptby3d_di" bpmnElement="Activity_0ptby3d">
163         <dc:Bounds x="490" y="230" width="100" height="80" />
164       </bpmndi:BPMNShape>
165       <bpmndi:BPMNShape id="Activity_1s8ojcr_di" bpmnElement="Activity_1s8ojcr">
166         <dc:Bounds x="340" y="230" width="100" height="80" />
167       </bpmndi:BPMNShape>
168       <bpmndi:BPMNShape id="Activity_0t1g4mp_di" bpmnElement="Activity_0t1g4mp">
169         <dc:Bounds x="920" y="100" width="100" height="80" />
170       </bpmndi:BPMNShape>
171     </bpmndi:BPMNPlane>
172   </bpmndi:BPMNDiagram>
173 </bpmn:definitions>