[SO] Release so 1.13.0 image
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / process / HandlePNF.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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="2.2.4">
3   <bpmn:process id="HandlePNF" name="HandlePNF" isExecutable="true">
4     <bpmn:startEvent id="createNS_StartEvent_pnf_disc" name="start PNF handling">
5       <bpmn:outgoing>SequenceFlow_1c92ks3_activate</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:scriptTask id="Task_13sx2bp_activate" name="Pre Process Request" scriptFormat="groovy">
8       <bpmn:incoming>SequenceFlow_1c92ks3_activate</bpmn:incoming>
9       <bpmn:outgoing>SequenceFlow_12q67gd</bpmn:outgoing>
10       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
11 def handlePNF = new HandlePNF()
12 handlePNF.preProcessRequest(execution)</bpmn:script>
13     </bpmn:scriptTask>
14     <bpmn:sequenceFlow id="SequenceFlow_1c92ks3_activate" sourceRef="createNS_StartEvent_pnf_disc" targetRef="Task_13sx2bp_activate" />
15     <bpmn:sequenceFlow id="SequenceFlow_0pujwl4" sourceRef="Task_0657l04" targetRef="PostProcessPNFDiscovery" />
16     <bpmn:endEvent id="EndEvent_0pigsdfk3" name="end PNF hadler">
17       <bpmn:incoming>SequenceFlow_02fi1yn</bpmn:incoming>
18     </bpmn:endEvent>
19     <bpmn:sequenceFlow id="SequenceFlow_1la8oih" sourceRef="PostProcessPNFDiscovery" targetRef="Task_1kxmpj3" />
20     <bpmn:callActivity id="Task_0657l04" name="invoke pnf handler" calledElement="CreateAndActivatePnfResource">
21       <bpmn:extensionElements>
22         <camunda:in source="pnfCorrelationId" target="pnfCorrelationId" />
23         <camunda:in source="pnfUuid" target="pnfUuid" />
24         <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
25         <camunda:in businessKey="#{execution.processBusinessKey}" />
26       </bpmn:extensionElements>
27       <bpmn:incoming>SequenceFlow_1apj1fn</bpmn:incoming>
28       <bpmn:outgoing>SequenceFlow_0pujwl4</bpmn:outgoing>
29     </bpmn:callActivity>
30     <bpmn:sequenceFlow id="SequenceFlow_12q67gd" sourceRef="Task_13sx2bp_activate" targetRef="Task_0kv28gm" />
31     <bpmn:sequenceFlow id="SequenceFlow_1apj1fn" sourceRef="Task_0kv28gm" targetRef="Task_0657l04" />
32     <bpmn:serviceTask id="Task_0kv28gm" name="Generate PNF uuid" camunda:delegateExpression="${GeneratePnfUuidDelegate}">
33       <bpmn:incoming>SequenceFlow_12q67gd</bpmn:incoming>
34       <bpmn:outgoing>SequenceFlow_1apj1fn</bpmn:outgoing>
35     </bpmn:serviceTask>
36     <bpmn:sequenceFlow id="SequenceFlow_02fi1yn" sourceRef="Task_1r8h7of" targetRef="EndEvent_0pigsdfk3" />
37     <bpmn:scriptTask id="Task_1r8h7of" name="Send Sync Response" scriptFormat="groovy">
38       <bpmn:incoming>SequenceFlow_1ud44f8</bpmn:incoming>
39       <bpmn:outgoing>SequenceFlow_02fi1yn</bpmn:outgoing>
40       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
41 def handlePNF = new HandlePNF()
42 handlePNF.sendSyncResponse(execution)</bpmn:script>
43     </bpmn:scriptTask>
44     <bpmn:scriptTask id="PostProcessPNFDiscovery" name="Post Process Request" scriptFormat="groovy">
45       <bpmn:incoming>SequenceFlow_0pujwl4</bpmn:incoming>
46       <bpmn:outgoing>SequenceFlow_1la8oih</bpmn:outgoing>
47       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
48 def handlePNF = new HandlePNF()
49 handlePNF.postProcessRequest(execution)</bpmn:script>
50     </bpmn:scriptTask>
51     <bpmn:sequenceFlow id="SequenceFlow_1ud44f8" sourceRef="Task_1kxmpj3" targetRef="Task_1r8h7of" />
52     <bpmn:serviceTask id="Task_1kxmpj3" name="update progress update">
53       <bpmn:extensionElements>
54         <camunda:connector>
55           <camunda:inputOutput>
56             <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
57             <camunda:inputParameter name="headers">
58               <camunda:map>
59                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
60                 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
61               </camunda:map>
62             </camunda:inputParameter>
63             <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
64             <camunda:inputParameter name="method">POST</camunda:inputParameter>
65             <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
66             <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
67           </camunda:inputOutput>
68           <camunda:connectorId>http-connector</camunda:connectorId>
69         </camunda:connector>
70       </bpmn:extensionElements>
71       <bpmn:incoming>SequenceFlow_1la8oih</bpmn:incoming>
72       <bpmn:outgoing>SequenceFlow_1ud44f8</bpmn:outgoing>
73     </bpmn:serviceTask>
74   </bpmn:process>
75   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
76     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HandlePNF">
77       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent_pnf_disc">
78         <dc:Bounds x="-464" y="306" width="36" height="36" />
79         <bpmndi:BPMNLabel>
80           <dc:Bounds x="-466" y="352" width="47" height="27" />
81         </bpmndi:BPMNLabel>
82       </bpmndi:BPMNShape>
83       <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp_activate">
84         <dc:Bounds x="-341" y="284" width="100" height="80" />
85       </bpmndi:BPMNShape>
86       <bpmndi:BPMNEdge id="SequenceFlow_1c92ks3_di" bpmnElement="SequenceFlow_1c92ks3_activate">
87         <di:waypoint x="-428" y="324" />
88         <di:waypoint x="-341" y="324" />
89       </bpmndi:BPMNEdge>
90       <bpmndi:BPMNEdge id="SequenceFlow_0pujwl4_di" bpmnElement="SequenceFlow_0pujwl4">
91         <di:waypoint x="81" y="324" />
92         <di:waypoint x="156" y="324" />
93       </bpmndi:BPMNEdge>
94       <bpmndi:BPMNShape id="EndEvent_0pigdk3_di" bpmnElement="EndEvent_0pigsdfk3">
95         <dc:Bounds x="626" y="306" width="36" height="36" />
96         <bpmndi:BPMNLabel>
97           <dc:Bounds x="607" y="349" width="78" height="14" />
98         </bpmndi:BPMNLabel>
99       </bpmndi:BPMNShape>
100       <bpmndi:BPMNEdge id="SequenceFlow_1la8oih_di" bpmnElement="SequenceFlow_1la8oih">
101         <di:waypoint x="256" y="324" />
102         <di:waypoint x="303" y="324" />
103       </bpmndi:BPMNEdge>
104       <bpmndi:BPMNShape id="CallActivity_1sxp6qj_di" bpmnElement="Task_0657l04">
105         <dc:Bounds x="-19" y="284" width="100" height="80" />
106       </bpmndi:BPMNShape>
107       <bpmndi:BPMNEdge id="SequenceFlow_12q67gd_di" bpmnElement="SequenceFlow_12q67gd">
108         <di:waypoint x="-241" y="324" />
109         <di:waypoint x="-176" y="324" />
110       </bpmndi:BPMNEdge>
111       <bpmndi:BPMNEdge id="SequenceFlow_1apj1fn_di" bpmnElement="SequenceFlow_1apj1fn">
112         <di:waypoint x="-76" y="324" />
113         <di:waypoint x="-19" y="324" />
114       </bpmndi:BPMNEdge>
115       <bpmndi:BPMNShape id="ServiceTask_1y3h50n_di" bpmnElement="Task_0kv28gm">
116         <dc:Bounds x="-176" y="284" width="100" height="80" />
117       </bpmndi:BPMNShape>
118       <bpmndi:BPMNEdge id="SequenceFlow_02fi1yn_di" bpmnElement="SequenceFlow_02fi1yn">
119         <di:waypoint x="536" y="324" />
120         <di:waypoint x="626" y="324" />
121       </bpmndi:BPMNEdge>
122       <bpmndi:BPMNShape id="ScriptTask_1yqlrg7_di" bpmnElement="Task_1r8h7of">
123         <dc:Bounds x="436" y="284" width="100" height="80" />
124       </bpmndi:BPMNShape>
125       <bpmndi:BPMNShape id="ScriptTask_0qqb00i_di" bpmnElement="PostProcessPNFDiscovery">
126         <dc:Bounds x="156" y="284" width="100" height="80" />
127       </bpmndi:BPMNShape>
128       <bpmndi:BPMNEdge id="SequenceFlow_1ud44f8_di" bpmnElement="SequenceFlow_1ud44f8">
129         <di:waypoint x="403" y="324" />
130         <di:waypoint x="436" y="324" />
131       </bpmndi:BPMNEdge>
132       <bpmndi:BPMNShape id="ServiceTask_0fkkgnl_di" bpmnElement="Task_1kxmpj3">
133         <dc:Bounds x="303" y="284" width="100" height="80" />
134       </bpmndi:BPMNShape>
135     </bpmndi:BPMNPlane>
136   </bpmndi:BPMNDiagram>
137 </bpmn:definitions>