Fixed errors in HandlePnf flow
[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_1r8h7of" />
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:scriptTask id="PostProcessPNFDiscovery" name="Post Process Request" scriptFormat="groovy">
31       <bpmn:incoming>SequenceFlow_0pujwl4</bpmn:incoming>
32       <bpmn:outgoing>SequenceFlow_1la8oih</bpmn:outgoing>
33       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
34 def handlePNF = new HandlePNF()
35 handlePNF.postProcessRequest(execution)</bpmn:script>
36     </bpmn:scriptTask>
37     <bpmn:sequenceFlow id="SequenceFlow_12q67gd" sourceRef="Task_13sx2bp_activate" targetRef="Task_0kv28gm" />
38     <bpmn:sequenceFlow id="SequenceFlow_1apj1fn" sourceRef="Task_0kv28gm" targetRef="Task_0657l04" />
39     <bpmn:serviceTask id="Task_0kv28gm" name="Generate PNF uuid" camunda:delegateExpression="${GeneratePnfUuidDelegate}">
40       <bpmn:incoming>SequenceFlow_12q67gd</bpmn:incoming>
41       <bpmn:outgoing>SequenceFlow_1apj1fn</bpmn:outgoing>
42     </bpmn:serviceTask>
43     <bpmn:sequenceFlow id="SequenceFlow_02fi1yn" sourceRef="Task_1r8h7of" targetRef="EndEvent_0pigsdfk3" />
44     <bpmn:scriptTask id="Task_1r8h7of" name="Send Sync Response" scriptFormat="groovy">
45       <bpmn:incoming>SequenceFlow_1la8oih</bpmn:incoming>
46       <bpmn:outgoing>SequenceFlow_02fi1yn</bpmn:outgoing>
47       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
48 def handlePNF = new HandlePNF()
49 handlePNF.sendSyncResponse(execution)</bpmn:script>
50     </bpmn:scriptTask>
51   </bpmn:process>
52   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
53     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HandlePNF">
54       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent_pnf_disc">
55         <dc:Bounds x="-464" y="306" width="36" height="36" />
56         <bpmndi:BPMNLabel>
57           <dc:Bounds x="-466" y="352" width="47" height="27" />
58         </bpmndi:BPMNLabel>
59       </bpmndi:BPMNShape>
60       <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp_activate">
61         <dc:Bounds x="-341" y="284" width="100" height="80" />
62       </bpmndi:BPMNShape>
63       <bpmndi:BPMNEdge id="SequenceFlow_1c92ks3_di" bpmnElement="SequenceFlow_1c92ks3_activate">
64         <di:waypoint x="-428" y="324" />
65         <di:waypoint x="-341" y="324" />
66       </bpmndi:BPMNEdge>
67       <bpmndi:BPMNEdge id="SequenceFlow_0pujwl4_di" bpmnElement="SequenceFlow_0pujwl4">
68         <di:waypoint x="81" y="324" />
69         <di:waypoint x="156" y="324" />
70       </bpmndi:BPMNEdge>
71       <bpmndi:BPMNShape id="EndEvent_0pigdk3_di" bpmnElement="EndEvent_0pigsdfk3">
72         <dc:Bounds x="543" y="306" width="36" height="36" />
73         <bpmndi:BPMNLabel>
74           <dc:Bounds x="524" y="349" width="78" height="14" />
75         </bpmndi:BPMNLabel>
76       </bpmndi:BPMNShape>
77       <bpmndi:BPMNEdge id="SequenceFlow_1la8oih_di" bpmnElement="SequenceFlow_1la8oih">
78         <di:waypoint x="256" y="324" />
79         <di:waypoint x="353" y="324" />
80       </bpmndi:BPMNEdge>
81       <bpmndi:BPMNShape id="CallActivity_1sxp6qj_di" bpmnElement="Task_0657l04">
82         <dc:Bounds x="-19" y="284" width="100" height="80" />
83       </bpmndi:BPMNShape>
84       <bpmndi:BPMNShape id="ScriptTask_0qqb00i_di" bpmnElement="PostProcessPNFDiscovery">
85         <dc:Bounds x="156" y="284" width="100" height="80" />
86       </bpmndi:BPMNShape>
87       <bpmndi:BPMNEdge id="SequenceFlow_12q67gd_di" bpmnElement="SequenceFlow_12q67gd">
88         <di:waypoint x="-241" y="324" />
89         <di:waypoint x="-176" y="324" />
90       </bpmndi:BPMNEdge>
91       <bpmndi:BPMNEdge id="SequenceFlow_1apj1fn_di" bpmnElement="SequenceFlow_1apj1fn">
92         <di:waypoint x="-76" y="324" />
93         <di:waypoint x="-19" y="324" />
94       </bpmndi:BPMNEdge>
95       <bpmndi:BPMNShape id="ServiceTask_1y3h50n_di" bpmnElement="Task_0kv28gm">
96         <dc:Bounds x="-176" y="284" width="100" height="80" />
97       </bpmndi:BPMNShape>
98       <bpmndi:BPMNEdge id="SequenceFlow_02fi1yn_di" bpmnElement="SequenceFlow_02fi1yn">
99         <di:waypoint x="453" y="324" />
100         <di:waypoint x="543" y="324" />
101       </bpmndi:BPMNEdge>
102       <bpmndi:BPMNShape id="ScriptTask_1yqlrg7_di" bpmnElement="Task_1r8h7of">
103         <dc:Bounds x="353" y="284" width="100" height="80" />
104       </bpmndi:BPMNShape>
105     </bpmndi:BPMNPlane>
106   </bpmndi:BPMNDiagram>
107 </bpmn:definitions>