blob: 43ebf9810e1a23c3968c739b75ae7553ee1325f8 [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>
marios.iakovidise4fad242019-06-05 20:21:16 +030019 <bpmn:sequenceFlow id="SequenceFlow_1la8oih" sourceRef="PostProcessPNFDiscovery" targetRef="Task_1kxmpj3" />
marios.iakovidisb1796382019-04-11 12:15:14 +030020 <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>
marios.iakovidisb1796382019-04-11 12:15:14 +030030 <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>
marios.iakovidisb1796382019-04-11 12:15:14 +030034 <bpmn:outgoing>SequenceFlow_1apj1fn</bpmn:outgoing>
35 </bpmn:serviceTask>
marios.iakovidisb1796382019-04-11 12:15:14 +030036 <bpmn:sequenceFlow id="SequenceFlow_02fi1yn" sourceRef="Task_1r8h7of" targetRef="EndEvent_0pigsdfk3" />
37 <bpmn:scriptTask id="Task_1r8h7of" name="Send Sync Response" scriptFormat="groovy">
marios.iakovidise4fad242019-06-05 20:21:16 +030038 <bpmn:incoming>SequenceFlow_1ud44f8</bpmn:incoming>
marios.iakovidisb1796382019-04-11 12:15:14 +030039 <bpmn:outgoing>SequenceFlow_02fi1yn</bpmn:outgoing>
40 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
41def handlePNF = new HandlePNF()
42handlePNF.sendSyncResponse(execution)</bpmn:script>
43 </bpmn:scriptTask>
marios.iakovidise4fad242019-06-05 20:21:16 +030044 <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.*
48def handlePNF = new HandlePNF()
49handlePNF.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>
marios.iakovidisb1796382019-04-11 12:15:14 +030074 </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>
marios.iakovidisb1796382019-04-11 12:15:14 +030090 <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">
marios.iakovidise4fad242019-06-05 20:21:16 +030095 <dc:Bounds x="626" y="306" width="36" height="36" />
marios.iakovidisb1796382019-04-11 12:15:14 +030096 <bpmndi:BPMNLabel>
marios.iakovidise4fad242019-06-05 20:21:16 +030097 <dc:Bounds x="607" y="349" width="78" height="14" />
marios.iakovidisb1796382019-04-11 12:15:14 +030098 </bpmndi:BPMNLabel>
99 </bpmndi:BPMNShape>
100 <bpmndi:BPMNEdge id="SequenceFlow_1la8oih_di" bpmnElement="SequenceFlow_1la8oih">
101 <di:waypoint x="256" y="324" />
marios.iakovidise4fad242019-06-05 20:21:16 +0300102 <di:waypoint x="303" y="324" />
marios.iakovidisb1796382019-04-11 12:15:14 +0300103 </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>
marios.iakovidisb1796382019-04-11 12:15:14 +0300107 <bpmndi:BPMNEdge id="SequenceFlow_12q67gd_di" bpmnElement="SequenceFlow_12q67gd">
108 <di:waypoint x="-241" y="324" />
marios.iakovidisf3655612019-05-27 22:54:42 +0300109 <di:waypoint x="-176" y="324" />
marios.iakovidisb1796382019-04-11 12:15:14 +0300110 </bpmndi:BPMNEdge>
111 <bpmndi:BPMNEdge id="SequenceFlow_1apj1fn_di" bpmnElement="SequenceFlow_1apj1fn">
marios.iakovidisf3655612019-05-27 22:54:42 +0300112 <di:waypoint x="-76" y="324" />
marios.iakovidisb1796382019-04-11 12:15:14 +0300113 <di:waypoint x="-19" y="324" />
114 </bpmndi:BPMNEdge>
115 <bpmndi:BPMNShape id="ServiceTask_1y3h50n_di" bpmnElement="Task_0kv28gm">
marios.iakovidisf3655612019-05-27 22:54:42 +0300116 <dc:Bounds x="-176" y="284" width="100" height="80" />
marios.iakovidisb1796382019-04-11 12:15:14 +0300117 </bpmndi:BPMNShape>
marios.iakovidisb1796382019-04-11 12:15:14 +0300118 <bpmndi:BPMNEdge id="SequenceFlow_02fi1yn_di" bpmnElement="SequenceFlow_02fi1yn">
marios.iakovidise4fad242019-06-05 20:21:16 +0300119 <di:waypoint x="536" y="324" />
120 <di:waypoint x="626" y="324" />
marios.iakovidisb1796382019-04-11 12:15:14 +0300121 </bpmndi:BPMNEdge>
122 <bpmndi:BPMNShape id="ScriptTask_1yqlrg7_di" bpmnElement="Task_1r8h7of">
marios.iakovidise4fad242019-06-05 20:21:16 +0300123 <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" />
marios.iakovidisb1796382019-04-11 12:15:14 +0300134 </bpmndi:BPMNShape>
135 </bpmndi:BPMNPlane>
136 </bpmndi:BPMNDiagram>
137</bpmn:definitions>