marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 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="1.16.2"> |
| 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_17xr584</bpmn:outgoing> |
| 10 | <bpmn:outgoing>SequenceFlow_12q67gd</bpmn:outgoing> |
| 11 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 12 | def handlePNF = new HandlePNF() |
| 13 | handlePNF.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> |
| 24 | <camunda:in source="correlationId" target="correlationId" /> |
| 25 | <camunda:in source="pnfUuid" target="pnfUuid" /> |
| 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:outgoing>SequenceFlow_1ezf4gu</bpmn:outgoing> |
| 34 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 35 | def handlePNF = new HandlePNF() |
| 36 | handlePNF.postProcessRequest(execution)</bpmn:script> |
| 37 | </bpmn:scriptTask> |
| 38 | <bpmn:sequenceFlow id="SequenceFlow_12q67gd" sourceRef="Task_13sx2bp_activate" targetRef="Task_0kv28gm" /> |
| 39 | <bpmn:sequenceFlow id="SequenceFlow_1apj1fn" sourceRef="Task_0kv28gm" targetRef="Task_0657l04" /> |
| 40 | <bpmn:serviceTask id="Task_0kv28gm" name="Generate PNF uuid" camunda:delegateExpression="${GeneratePnfUuidDelegate}"> |
| 41 | <bpmn:incoming>SequenceFlow_12q67gd</bpmn:incoming> |
| 42 | <bpmn:incoming>SequenceFlow_17xr584</bpmn:incoming> |
| 43 | <bpmn:outgoing>SequenceFlow_1apj1fn</bpmn:outgoing> |
| 44 | </bpmn:serviceTask> |
| 45 | <bpmn:sequenceFlow id="SequenceFlow_1ezf4gu" sourceRef="PostProcessPNFDiscovery" targetRef="Task_1r8h7of" /> |
| 46 | <bpmn:sequenceFlow id="SequenceFlow_02fi1yn" sourceRef="Task_1r8h7of" targetRef="EndEvent_0pigsdfk3" /> |
| 47 | <bpmn:scriptTask id="Task_1r8h7of" name="Send Sync Response" scriptFormat="groovy"> |
| 48 | <bpmn:incoming>SequenceFlow_1ezf4gu</bpmn:incoming> |
| 49 | <bpmn:incoming>SequenceFlow_1la8oih</bpmn:incoming> |
| 50 | <bpmn:outgoing>SequenceFlow_02fi1yn</bpmn:outgoing> |
| 51 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 52 | def handlePNF = new HandlePNF() |
| 53 | handlePNF.sendSyncResponse(execution)</bpmn:script> |
| 54 | </bpmn:scriptTask> |
| 55 | </bpmn:process> |
| 56 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 57 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HandlePNF"> |
| 58 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent_pnf_disc"> |
| 59 | <dc:Bounds x="-464" y="306" width="36" height="36" /> |
| 60 | <bpmndi:BPMNLabel> |
| 61 | <dc:Bounds x="-466" y="352" width="47" height="27" /> |
| 62 | </bpmndi:BPMNLabel> |
| 63 | </bpmndi:BPMNShape> |
| 64 | <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp_activate"> |
| 65 | <dc:Bounds x="-341" y="284" width="100" height="80" /> |
| 66 | </bpmndi:BPMNShape> |
| 67 | <bpmndi:BPMNEdge id="SequenceFlow_1c92ks3_di" bpmnElement="SequenceFlow_1c92ks3_activate"> |
| 68 | <di:waypoint x="-428" y="324" /> |
| 69 | <di:waypoint x="-341" y="324" /> |
| 70 | </bpmndi:BPMNEdge> |
| 71 | <bpmndi:BPMNEdge id="SequenceFlow_17xr584_di" bpmnElement="SequenceFlow_17xr584"> |
| 72 | <di:waypoint x="-241" y="324" /> |
| 73 | <di:waypoint x="-180" y="324" /> |
| 74 | </bpmndi:BPMNEdge> |
| 75 | <bpmndi:BPMNEdge id="SequenceFlow_0pujwl4_di" bpmnElement="SequenceFlow_0pujwl4"> |
| 76 | <di:waypoint x="81" y="324" /> |
| 77 | <di:waypoint x="156" y="324" /> |
| 78 | </bpmndi:BPMNEdge> |
| 79 | <bpmndi:BPMNShape id="EndEvent_0pigdk3_di" bpmnElement="EndEvent_0pigsdfk3"> |
| 80 | <dc:Bounds x="543" y="306" width="36" height="36" /> |
| 81 | <bpmndi:BPMNLabel> |
| 82 | <dc:Bounds x="524" y="349" width="78" height="14" /> |
| 83 | </bpmndi:BPMNLabel> |
| 84 | </bpmndi:BPMNShape> |
| 85 | <bpmndi:BPMNEdge id="SequenceFlow_1la8oih_di" bpmnElement="SequenceFlow_1la8oih"> |
| 86 | <di:waypoint x="256" y="324" /> |
| 87 | <di:waypoint x="353" y="324" /> |
| 88 | </bpmndi:BPMNEdge> |
| 89 | <bpmndi:BPMNShape id="CallActivity_1sxp6qj_di" bpmnElement="Task_0657l04"> |
| 90 | <dc:Bounds x="-19" y="284" width="100" height="80" /> |
| 91 | </bpmndi:BPMNShape> |
| 92 | <bpmndi:BPMNShape id="ScriptTask_0qqb00i_di" bpmnElement="PostProcessPNFDiscovery"> |
| 93 | <dc:Bounds x="156" y="284" width="100" height="80" /> |
| 94 | </bpmndi:BPMNShape> |
| 95 | <bpmndi:BPMNEdge id="SequenceFlow_12q67gd_di" bpmnElement="SequenceFlow_12q67gd"> |
| 96 | <di:waypoint x="-241" y="324" /> |
| 97 | <di:waypoint x="-180" y="324" /> |
| 98 | </bpmndi:BPMNEdge> |
| 99 | <bpmndi:BPMNEdge id="SequenceFlow_1apj1fn_di" bpmnElement="SequenceFlow_1apj1fn"> |
| 100 | <di:waypoint x="-80" y="324" /> |
| 101 | <di:waypoint x="-19" y="324" /> |
| 102 | </bpmndi:BPMNEdge> |
| 103 | <bpmndi:BPMNShape id="ServiceTask_1y3h50n_di" bpmnElement="Task_0kv28gm"> |
| 104 | <dc:Bounds x="-180" y="284" width="100" height="80" /> |
| 105 | </bpmndi:BPMNShape> |
| 106 | <bpmndi:BPMNEdge id="SequenceFlow_1ezf4gu_di" bpmnElement="SequenceFlow_1ezf4gu"> |
| 107 | <di:waypoint x="256" y="324" /> |
| 108 | <di:waypoint x="353" y="324" /> |
| 109 | </bpmndi:BPMNEdge> |
| 110 | <bpmndi:BPMNEdge id="SequenceFlow_02fi1yn_di" bpmnElement="SequenceFlow_02fi1yn"> |
| 111 | <di:waypoint x="453" y="324" /> |
| 112 | <di:waypoint x="543" y="324" /> |
| 113 | </bpmndi:BPMNEdge> |
| 114 | <bpmndi:BPMNShape id="ScriptTask_1yqlrg7_di" bpmnElement="Task_1r8h7of"> |
| 115 | <dc:Bounds x="353" y="284" width="100" height="80" /> |
| 116 | </bpmndi:BPMNShape> |
| 117 | </bpmndi:BPMNPlane> |
| 118 | </bpmndi:BPMNDiagram> |
| 119 | </bpmn:definitions> |