marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
marios.iakovidis | 0d9e1e9 | 2019-05-23 18:29:10 +0300 | [diff] [blame] | 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"> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 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> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 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" /> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 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> |
marios.iakovidis | 0d9e1e9 | 2019-05-23 18:29:10 +0300 | [diff] [blame] | 22 | <camunda:in source="pnfCorrelationId" target="pnfCorrelationId" /> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 23 | <camunda:in source="pnfUuid" target="pnfUuid" /> |
marios.iakovidis | 0d9e1e9 | 2019-05-23 18:29:10 +0300 | [diff] [blame] | 24 | <camunda:in source="serviceInstanceId" target="serviceInstanceId" /> |
marios.iakovidis | f365561 | 2019-05-27 22:54:42 +0300 | [diff] [blame^] | 25 | <camunda:in businessKey="#{execution.processBusinessKey}" /> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 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> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 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> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 41 | <bpmn:outgoing>SequenceFlow_1apj1fn</bpmn:outgoing> |
| 42 | </bpmn:serviceTask> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 43 | <bpmn:sequenceFlow id="SequenceFlow_02fi1yn" sourceRef="Task_1r8h7of" targetRef="EndEvent_0pigsdfk3" /> |
| 44 | <bpmn:scriptTask id="Task_1r8h7of" name="Send Sync Response" scriptFormat="groovy"> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 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> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 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" /> |
marios.iakovidis | f365561 | 2019-05-27 22:54:42 +0300 | [diff] [blame^] | 89 | <di:waypoint x="-176" y="324" /> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 90 | </bpmndi:BPMNEdge> |
| 91 | <bpmndi:BPMNEdge id="SequenceFlow_1apj1fn_di" bpmnElement="SequenceFlow_1apj1fn"> |
marios.iakovidis | f365561 | 2019-05-27 22:54:42 +0300 | [diff] [blame^] | 92 | <di:waypoint x="-76" y="324" /> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 93 | <di:waypoint x="-19" y="324" /> |
| 94 | </bpmndi:BPMNEdge> |
| 95 | <bpmndi:BPMNShape id="ServiceTask_1y3h50n_di" bpmnElement="Task_0kv28gm"> |
marios.iakovidis | f365561 | 2019-05-27 22:54:42 +0300 | [diff] [blame^] | 96 | <dc:Bounds x="-176" y="284" width="100" height="80" /> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 97 | </bpmndi:BPMNShape> |
marios.iakovidis | b179638 | 2019-04-11 12:15:14 +0300 | [diff] [blame] | 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> |