Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [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="3.4.1"> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 3 | <bpmn:process id="DoCreateSliceServiceInstance" name="DoCreateSliceServiceInstance" isExecutable="true"> |
| 4 | <bpmn:startEvent id="createNS_StartEvent" name="createNS_StartEvent"> |
| 5 | <bpmn:outgoing>SequenceFlow_1qo2pln</bpmn:outgoing> |
| 6 | </bpmn:startEvent> |
| 7 | <bpmn:sequenceFlow id="SequenceFlow_1qo2pln" sourceRef="createNS_StartEvent" targetRef="PreprocessIncomingRequest_task" /> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 8 | <bpmn:sequenceFlow id="SequenceFlow_0khtova" sourceRef="PreprocessIncomingRequest_task" targetRef="ScriptTask_1g378se" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 9 | <bpmn:scriptTask id="Task_09nzhwk" name="Create service profile" scriptFormat="groovy"> |
| 10 | <bpmn:incoming>SequenceFlow_17u69c4</bpmn:incoming> |
| 11 | <bpmn:outgoing>SequenceFlow_1uiz85h</bpmn:outgoing> |
| 12 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 13 | def dcsi = new DoCreateSliceServiceInstance() |
| 14 | dcsi.createServiceProfile(execution)</bpmn:script> |
| 15 | </bpmn:scriptTask> |
| 16 | <bpmn:scriptTask id="PreprocessIncomingRequest_task" name="Preprocess Incoming Request" scriptFormat="groovy"> |
| 17 | <bpmn:incoming>SequenceFlow_1qo2pln</bpmn:incoming> |
| 18 | <bpmn:outgoing>SequenceFlow_0khtova</bpmn:outgoing> |
| 19 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 20 | def dcsi = new DoCreateSliceServiceInstance() |
| 21 | dcsi.preProcessRequest(execution)</bpmn:script> |
| 22 | </bpmn:scriptTask> |
| 23 | <bpmn:scriptTask id="instantiate_NSTask" name="create Slice Service in AAI" scriptFormat="groovy"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 24 | <bpmn:incoming>SequenceFlow_11gmz7e</bpmn:incoming> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 25 | <bpmn:outgoing>SequenceFlow_0g5bwvl</bpmn:outgoing> |
| 26 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 27 | def dcsi = new DoCreateSliceServiceInstance() |
| 28 | dcsi.instantiateSliceService(execution)</bpmn:script> |
| 29 | </bpmn:scriptTask> |
| 30 | <bpmn:endEvent id="EndEvent_1x6k78c"> |
| 31 | <bpmn:incoming>SequenceFlow_1uiz85h</bpmn:incoming> |
| 32 | </bpmn:endEvent> |
| 33 | <bpmn:sequenceFlow id="SequenceFlow_1uiz85h" sourceRef="Task_09nzhwk" targetRef="EndEvent_1x6k78c" /> |
| 34 | <bpmn:sequenceFlow id="SequenceFlow_0g5bwvl" sourceRef="instantiate_NSTask" targetRef="ScriptTask_18rzwzb" /> |
| 35 | <bpmn:scriptTask id="ScriptTask_18rzwzb" name="Create Allottedsource" scriptFormat="groovy"> |
| 36 | <bpmn:incoming>SequenceFlow_0g5bwvl</bpmn:incoming> |
| 37 | <bpmn:outgoing>SequenceFlow_17u69c4</bpmn:outgoing> |
| 38 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 39 | def dcsi = new DoCreateSliceServiceInstance() |
| 40 | dcsi.createAllottedResource(execution)</bpmn:script> |
| 41 | </bpmn:scriptTask> |
| 42 | <bpmn:sequenceFlow id="SequenceFlow_17u69c4" sourceRef="ScriptTask_18rzwzb" targetRef="Task_09nzhwk" /> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 43 | <bpmn:scriptTask id="ScriptTask_1g378se" name="Prepare ServiceProfile Decompose Service " scriptFormat="groovy"> |
| 44 | <bpmn:incoming>SequenceFlow_0khtova</bpmn:incoming> |
| 45 | <bpmn:outgoing>SequenceFlow_1wafqwa</bpmn:outgoing> |
| 46 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 47 | def dcsi= new CreateSliceService() |
| 48 | dcsi.prepareDecomposeService(execution)</bpmn:script> |
| 49 | </bpmn:scriptTask> |
| 50 | <bpmn:callActivity id="CallActivity_0svmkxh" name="Call Decompose Service" calledElement="DecomposeService"> |
| 51 | <bpmn:extensionElements> |
| 52 | <camunda:in source="msoRequestId" target="msoRequestId" /> |
| 53 | <camunda:in source="serviceInstanceId" target="serviceInstanceId" /> |
| 54 | <camunda:in source="serviceModelInfo" target="serviceModelInfo" /> |
| 55 | <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" /> |
| 56 | <camunda:out source="serviceDecomposition" target="serviceProfileDecomposition" /> |
| 57 | <camunda:out source="WorkflowException" target="WorkflowException" /> |
| 58 | </bpmn:extensionElements> |
| 59 | <bpmn:incoming>SequenceFlow_1wafqwa</bpmn:incoming> |
| 60 | <bpmn:outgoing>SequenceFlow_11gmz7e</bpmn:outgoing> |
| 61 | </bpmn:callActivity> |
| 62 | <bpmn:sequenceFlow id="SequenceFlow_1wafqwa" sourceRef="ScriptTask_1g378se" targetRef="CallActivity_0svmkxh" /> |
| 63 | <bpmn:sequenceFlow id="SequenceFlow_11gmz7e" sourceRef="CallActivity_0svmkxh" targetRef="instantiate_NSTask" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 64 | </bpmn:process> |
| 65 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 66 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoCreateSliceServiceInstance"> |
| 67 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent"> |
| 68 | <dc:Bounds x="175" y="111" width="36" height="36" /> |
| 69 | <bpmndi:BPMNLabel> |
| 70 | <dc:Bounds x="152" y="147" width="83" height="24" /> |
| 71 | </bpmndi:BPMNLabel> |
| 72 | </bpmndi:BPMNShape> |
| 73 | <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln"> |
| 74 | <di:waypoint x="211" y="129" /> |
| 75 | <di:waypoint x="251" y="129" /> |
| 76 | <di:waypoint x="251" y="129" /> |
| 77 | <di:waypoint x="293" y="129" /> |
| 78 | <bpmndi:BPMNLabel> |
| 79 | <dc:Bounds x="266" y="123" width="0" height="12" /> |
| 80 | </bpmndi:BPMNLabel> |
| 81 | </bpmndi:BPMNEdge> |
| 82 | <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova"> |
| 83 | <di:waypoint x="393" y="129" /> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 84 | <di:waypoint x="440" y="129" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 85 | <bpmndi:BPMNLabel> |
| 86 | <dc:Bounds x="436" y="108" width="0" height="12" /> |
| 87 | </bpmndi:BPMNLabel> |
| 88 | </bpmndi:BPMNEdge> |
| 89 | <bpmndi:BPMNShape id="ScriptTask_1dw39hg_di" bpmnElement="Task_09nzhwk"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 90 | <dc:Bounds x="1120" y="89" width="100" height="80" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 91 | </bpmndi:BPMNShape> |
| 92 | <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task"> |
| 93 | <dc:Bounds x="293" y="89" width="100" height="80" /> |
| 94 | </bpmndi:BPMNShape> |
| 95 | <bpmndi:BPMNShape id="ScriptTask_1qmmew8_di" bpmnElement="instantiate_NSTask"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 96 | <dc:Bounds x="790" y="89" width="100" height="80" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 97 | </bpmndi:BPMNShape> |
| 98 | <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 99 | <dc:Bounds x="1292" y="111" width="36" height="36" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 100 | <bpmndi:BPMNLabel> |
| 101 | <dc:Bounds x="412" y="617" width="90" height="12" /> |
| 102 | </bpmndi:BPMNLabel> |
| 103 | </bpmndi:BPMNShape> |
| 104 | <bpmndi:BPMNEdge id="SequenceFlow_1uiz85h_di" bpmnElement="SequenceFlow_1uiz85h"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 105 | <di:waypoint x="1220" y="129" /> |
| 106 | <di:waypoint x="1292" y="129" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 107 | <bpmndi:BPMNLabel> |
| 108 | <dc:Bounds x="631" y="108" width="0" height="12" /> |
| 109 | </bpmndi:BPMNLabel> |
| 110 | </bpmndi:BPMNEdge> |
| 111 | <bpmndi:BPMNEdge id="SequenceFlow_0g5bwvl_di" bpmnElement="SequenceFlow_0g5bwvl"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 112 | <di:waypoint x="890" y="129" /> |
| 113 | <di:waypoint x="960" y="129" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 114 | </bpmndi:BPMNEdge> |
| 115 | <bpmndi:BPMNShape id="ScriptTask_18rzwzb_di" bpmnElement="ScriptTask_18rzwzb"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 116 | <dc:Bounds x="960" y="89" width="100" height="80" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 117 | </bpmndi:BPMNShape> |
| 118 | <bpmndi:BPMNEdge id="SequenceFlow_17u69c4_di" bpmnElement="SequenceFlow_17u69c4"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 119 | <di:waypoint x="1060" y="129" /> |
| 120 | <di:waypoint x="1120" y="129" /> |
| 121 | </bpmndi:BPMNEdge> |
| 122 | <bpmndi:BPMNShape id="ScriptTask_1g378se_di" bpmnElement="ScriptTask_1g378se"> |
| 123 | <dc:Bounds x="440" y="89" width="100" height="80" /> |
| 124 | </bpmndi:BPMNShape> |
| 125 | <bpmndi:BPMNShape id="CallActivity_0svmkxh_di" bpmnElement="CallActivity_0svmkxh"> |
| 126 | <dc:Bounds x="610" y="89" width="100" height="80" /> |
| 127 | </bpmndi:BPMNShape> |
| 128 | <bpmndi:BPMNEdge id="SequenceFlow_1wafqwa_di" bpmnElement="SequenceFlow_1wafqwa"> |
| 129 | <di:waypoint x="540" y="129" /> |
| 130 | <di:waypoint x="610" y="129" /> |
| 131 | </bpmndi:BPMNEdge> |
| 132 | <bpmndi:BPMNEdge id="SequenceFlow_11gmz7e_di" bpmnElement="SequenceFlow_11gmz7e"> |
| 133 | <di:waypoint x="710" y="129" /> |
| 134 | <di:waypoint x="790" y="129" /> |
Isaac Manuel Raj | 9d7ec17 | 2020-03-04 19:17:47 +0530 | [diff] [blame] | 135 | </bpmndi:BPMNEdge> |
| 136 | </bpmndi:BPMNPlane> |
| 137 | </bpmndi:BPMNDiagram> |
hetengjiao | 3e4d703 | 2020-09-25 16:17:33 +0800 | [diff] [blame^] | 138 | </bpmn:definitions> |