blob: 257a0dee6483aa78739e30f6a3a92b5930ca2d72 [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>
marios.iakovidisb1796382019-04-11 12:15:14 +03009 <bpmn:outgoing>SequenceFlow_12q67gd</bpmn:outgoing>
10 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
11def handlePNF = new HandlePNF()
12handlePNF.preProcessRequest(execution)</bpmn:script>
13 </bpmn:scriptTask>
14 <bpmn:sequenceFlow id="SequenceFlow_1c92ks3_activate" sourceRef="createNS_StartEvent_pnf_disc" targetRef="Task_13sx2bp_activate" />
marios.iakovidisb1796382019-04-11 12:15:14 +030015 <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>
marios.iakovidis0d9e1e92019-05-23 18:29:10 +030022 <camunda:in source="pnfCorrelationId" target="pnfCorrelationId" />
marios.iakovidisb1796382019-04-11 12:15:14 +030023 <camunda:in source="pnfUuid" target="pnfUuid" />
marios.iakovidis0d9e1e92019-05-23 18:29:10 +030024 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
marios.iakovidisf3655612019-05-27 22:54:42 +030025 <camunda:in businessKey="#{execution.processBusinessKey}" />
marios.iakovidisb1796382019-04-11 12:15:14 +030026 </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>
marios.iakovidisb1796382019-04-11 12:15:14 +030033 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
34def handlePNF = new HandlePNF()
35handlePNF.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>
marios.iakovidisb1796382019-04-11 12:15:14 +030041 <bpmn:outgoing>SequenceFlow_1apj1fn</bpmn:outgoing>
42 </bpmn:serviceTask>
marios.iakovidisb1796382019-04-11 12:15:14 +030043 <bpmn:sequenceFlow id="SequenceFlow_02fi1yn" sourceRef="Task_1r8h7of" targetRef="EndEvent_0pigsdfk3" />
44 <bpmn:scriptTask id="Task_1r8h7of" name="Send Sync Response" scriptFormat="groovy">
marios.iakovidisb1796382019-04-11 12:15:14 +030045 <bpmn:incoming>SequenceFlow_1la8oih</bpmn:incoming>
46 <bpmn:outgoing>SequenceFlow_02fi1yn</bpmn:outgoing>
47 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
48def handlePNF = new HandlePNF()
49handlePNF.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>
marios.iakovidisb1796382019-04-11 12:15:14 +030067 <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" />
marios.iakovidisf3655612019-05-27 22:54:42 +030089 <di:waypoint x="-176" y="324" />
marios.iakovidisb1796382019-04-11 12:15:14 +030090 </bpmndi:BPMNEdge>
91 <bpmndi:BPMNEdge id="SequenceFlow_1apj1fn_di" bpmnElement="SequenceFlow_1apj1fn">
marios.iakovidisf3655612019-05-27 22:54:42 +030092 <di:waypoint x="-76" y="324" />
marios.iakovidisb1796382019-04-11 12:15:14 +030093 <di:waypoint x="-19" y="324" />
94 </bpmndi:BPMNEdge>
95 <bpmndi:BPMNShape id="ServiceTask_1y3h50n_di" bpmnElement="Task_0kv28gm">
marios.iakovidisf3655612019-05-27 22:54:42 +030096 <dc:Bounds x="-176" y="284" width="100" height="80" />
marios.iakovidisb1796382019-04-11 12:15:14 +030097 </bpmndi:BPMNShape>
marios.iakovidisb1796382019-04-11 12:15:14 +030098 <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>