blob: 01ca152e6153b8e2de2c1c1b2de943107bceb5bd [file] [log] [blame]
marios.iakovidisb1796382019-04-11 12:15:14 +03001<?xml version="1.0" encoding="UTF-8"?>
marios.iakovidis0d9e1e92019-05-23 18:29:10 +03002<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">
marios.iakovidisb1796382019-04-11 12:15:14 +03003 <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_17xr584</bpmn:outgoing>
10 <bpmn:outgoing>SequenceFlow_12q67gd</bpmn:outgoing>
11 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
12def handlePNF = new HandlePNF()
13handlePNF.preProcessRequest(execution)</bpmn:script>
14 </bpmn:scriptTask>
15 <bpmn:sequenceFlow id="SequenceFlow_1c92ks3_activate" sourceRef="createNS_StartEvent_pnf_disc" targetRef="Task_13sx2bp_activate" />
16 <bpmn:sequenceFlow id="SequenceFlow_17xr584" sourceRef="Task_13sx2bp_activate" targetRef="Task_0kv28gm" />
17 <bpmn:sequenceFlow id="SequenceFlow_0pujwl4" sourceRef="Task_0657l04" targetRef="PostProcessPNFDiscovery" />
18 <bpmn:endEvent id="EndEvent_0pigsdfk3" name="end PNF hadler">
19 <bpmn:incoming>SequenceFlow_02fi1yn</bpmn:incoming>
20 </bpmn:endEvent>
21 <bpmn:sequenceFlow id="SequenceFlow_1la8oih" sourceRef="PostProcessPNFDiscovery" targetRef="Task_1r8h7of" />
22 <bpmn:callActivity id="Task_0657l04" name="invoke pnf handler" calledElement="CreateAndActivatePnfResource">
23 <bpmn:extensionElements>
marios.iakovidis0d9e1e92019-05-23 18:29:10 +030024 <camunda:in source="pnfCorrelationId" target="pnfCorrelationId" />
marios.iakovidisb1796382019-04-11 12:15:14 +030025 <camunda:in source="pnfUuid" target="pnfUuid" />
marios.iakovidis0d9e1e92019-05-23 18:29:10 +030026 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
marios.iakovidisb1796382019-04-11 12:15:14 +030027 </bpmn:extensionElements>
28 <bpmn:incoming>SequenceFlow_1apj1fn</bpmn:incoming>
29 <bpmn:outgoing>SequenceFlow_0pujwl4</bpmn:outgoing>
30 </bpmn:callActivity>
31 <bpmn:scriptTask id="PostProcessPNFDiscovery" name="Post Process Request" scriptFormat="groovy">
32 <bpmn:incoming>SequenceFlow_0pujwl4</bpmn:incoming>
33 <bpmn:outgoing>SequenceFlow_1la8oih</bpmn:outgoing>
34 <bpmn:outgoing>SequenceFlow_1ezf4gu</bpmn:outgoing>
35 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
36def handlePNF = new HandlePNF()
37handlePNF.postProcessRequest(execution)</bpmn:script>
38 </bpmn:scriptTask>
39 <bpmn:sequenceFlow id="SequenceFlow_12q67gd" sourceRef="Task_13sx2bp_activate" targetRef="Task_0kv28gm" />
40 <bpmn:sequenceFlow id="SequenceFlow_1apj1fn" sourceRef="Task_0kv28gm" targetRef="Task_0657l04" />
41 <bpmn:serviceTask id="Task_0kv28gm" name="Generate PNF uuid" camunda:delegateExpression="${GeneratePnfUuidDelegate}">
42 <bpmn:incoming>SequenceFlow_12q67gd</bpmn:incoming>
43 <bpmn:incoming>SequenceFlow_17xr584</bpmn:incoming>
44 <bpmn:outgoing>SequenceFlow_1apj1fn</bpmn:outgoing>
45 </bpmn:serviceTask>
46 <bpmn:sequenceFlow id="SequenceFlow_1ezf4gu" sourceRef="PostProcessPNFDiscovery" targetRef="Task_1r8h7of" />
47 <bpmn:sequenceFlow id="SequenceFlow_02fi1yn" sourceRef="Task_1r8h7of" targetRef="EndEvent_0pigsdfk3" />
48 <bpmn:scriptTask id="Task_1r8h7of" name="Send Sync Response" scriptFormat="groovy">
49 <bpmn:incoming>SequenceFlow_1ezf4gu</bpmn:incoming>
50 <bpmn:incoming>SequenceFlow_1la8oih</bpmn:incoming>
51 <bpmn:outgoing>SequenceFlow_02fi1yn</bpmn:outgoing>
52 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
53def handlePNF = new HandlePNF()
54handlePNF.sendSyncResponse(execution)</bpmn:script>
55 </bpmn:scriptTask>
56 </bpmn:process>
57 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
58 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HandlePNF">
59 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent_pnf_disc">
60 <dc:Bounds x="-464" y="306" width="36" height="36" />
61 <bpmndi:BPMNLabel>
62 <dc:Bounds x="-466" y="352" width="47" height="27" />
63 </bpmndi:BPMNLabel>
64 </bpmndi:BPMNShape>
65 <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp_activate">
66 <dc:Bounds x="-341" y="284" width="100" height="80" />
67 </bpmndi:BPMNShape>
68 <bpmndi:BPMNEdge id="SequenceFlow_1c92ks3_di" bpmnElement="SequenceFlow_1c92ks3_activate">
69 <di:waypoint x="-428" y="324" />
70 <di:waypoint x="-341" y="324" />
71 </bpmndi:BPMNEdge>
72 <bpmndi:BPMNEdge id="SequenceFlow_17xr584_di" bpmnElement="SequenceFlow_17xr584">
73 <di:waypoint x="-241" y="324" />
74 <di:waypoint x="-180" y="324" />
75 </bpmndi:BPMNEdge>
76 <bpmndi:BPMNEdge id="SequenceFlow_0pujwl4_di" bpmnElement="SequenceFlow_0pujwl4">
77 <di:waypoint x="81" y="324" />
78 <di:waypoint x="156" y="324" />
79 </bpmndi:BPMNEdge>
80 <bpmndi:BPMNShape id="EndEvent_0pigdk3_di" bpmnElement="EndEvent_0pigsdfk3">
81 <dc:Bounds x="543" y="306" width="36" height="36" />
82 <bpmndi:BPMNLabel>
83 <dc:Bounds x="524" y="349" width="78" height="14" />
84 </bpmndi:BPMNLabel>
85 </bpmndi:BPMNShape>
86 <bpmndi:BPMNEdge id="SequenceFlow_1la8oih_di" bpmnElement="SequenceFlow_1la8oih">
87 <di:waypoint x="256" y="324" />
88 <di:waypoint x="353" y="324" />
89 </bpmndi:BPMNEdge>
90 <bpmndi:BPMNShape id="CallActivity_1sxp6qj_di" bpmnElement="Task_0657l04">
91 <dc:Bounds x="-19" y="284" width="100" height="80" />
92 </bpmndi:BPMNShape>
93 <bpmndi:BPMNShape id="ScriptTask_0qqb00i_di" bpmnElement="PostProcessPNFDiscovery">
94 <dc:Bounds x="156" y="284" width="100" height="80" />
95 </bpmndi:BPMNShape>
96 <bpmndi:BPMNEdge id="SequenceFlow_12q67gd_di" bpmnElement="SequenceFlow_12q67gd">
97 <di:waypoint x="-241" y="324" />
98 <di:waypoint x="-180" y="324" />
99 </bpmndi:BPMNEdge>
100 <bpmndi:BPMNEdge id="SequenceFlow_1apj1fn_di" bpmnElement="SequenceFlow_1apj1fn">
101 <di:waypoint x="-80" y="324" />
102 <di:waypoint x="-19" y="324" />
103 </bpmndi:BPMNEdge>
104 <bpmndi:BPMNShape id="ServiceTask_1y3h50n_di" bpmnElement="Task_0kv28gm">
105 <dc:Bounds x="-180" y="284" width="100" height="80" />
106 </bpmndi:BPMNShape>
107 <bpmndi:BPMNEdge id="SequenceFlow_1ezf4gu_di" bpmnElement="SequenceFlow_1ezf4gu">
108 <di:waypoint x="256" y="324" />
109 <di:waypoint x="353" y="324" />
110 </bpmndi:BPMNEdge>
111 <bpmndi:BPMNEdge id="SequenceFlow_02fi1yn_di" bpmnElement="SequenceFlow_02fi1yn">
112 <di:waypoint x="453" y="324" />
113 <di:waypoint x="543" y="324" />
114 </bpmndi:BPMNEdge>
115 <bpmndi:BPMNShape id="ScriptTask_1yqlrg7_di" bpmnElement="Task_1r8h7of">
116 <dc:Bounds x="353" y="284" width="100" height="80" />
117 </bpmndi:BPMNShape>
118 </bpmndi:BPMNPlane>
119 </bpmndi:BPMNDiagram>
120</bpmn:definitions>