hyu2010 | c2110d5 | 2020-09-07 18:07:25 -0400 | [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="4.1.1"> |
| 3 | <bpmn:process id="DoCreateTnNssiInstance" name="DoCreateTnNssiInstance" isExecutable="true"> |
| 4 | <bpmn:startEvent id="allocateTnNssi_StartEvent" name="allocateTnNssi_StartEvent"> |
| 5 | <bpmn:outgoing>SequenceFlow_1qo2pln</bpmn:outgoing> |
| 6 | </bpmn:startEvent> |
| 7 | <bpmn:sequenceFlow id="SequenceFlow_1qo2pln" sourceRef="allocateTnNssi_StartEvent" targetRef="PreprocessIncomingRequest_task" /> |
| 8 | <bpmn:sequenceFlow id="SequenceFlow_0khtova" sourceRef="PreprocessIncomingRequest_task" targetRef="instantiate_NSTask" /> |
| 9 | <bpmn:scriptTask id="PreprocessIncomingRequest_task" name="Preprocess Incoming Request" scriptFormat="groovy"> |
| 10 | <bpmn:incoming>SequenceFlow_1qo2pln</bpmn:incoming> |
| 11 | <bpmn:outgoing>SequenceFlow_0khtova</bpmn:outgoing> |
| 12 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 13 | def dcsi = new DoCreateTnNssiInstance() |
| 14 | dcsi.preProcessRequest(execution)</bpmn:script> |
| 15 | </bpmn:scriptTask> |
| 16 | <bpmn:scriptTask id="instantiate_NSTask" name="create Service Instance in AAI" scriptFormat="groovy"> |
| 17 | <bpmn:incoming>SequenceFlow_0khtova</bpmn:incoming> |
| 18 | <bpmn:outgoing>SequenceFlow_0g5bwvl</bpmn:outgoing> |
| 19 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 20 | def dcsi = new DoCreateTnNssiInstance() |
| 21 | dcsi.createServiceInstance(execution)</bpmn:script> |
| 22 | </bpmn:scriptTask> |
| 23 | <bpmn:sequenceFlow id="SequenceFlow_1uiz85h" sourceRef="Activity_16luyg1" targetRef="Event_1rsf7yb" /> |
| 24 | <bpmn:sequenceFlow id="SequenceFlow_0g5bwvl" sourceRef="instantiate_NSTask" targetRef="Activity_08tw2di" /> |
| 25 | <bpmn:scriptTask id="ScriptTask_18rzwzb" name="Create Allottedsource in AAI" scriptFormat="groovy"> |
| 26 | <bpmn:incoming>Flow_106ei42</bpmn:incoming> |
| 27 | <bpmn:outgoing>SequenceFlow_17u69c4</bpmn:outgoing> |
| 28 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 29 | def dcsi = new DoCreateTnNssiInstance() |
| 30 | dcsi.createAllottedResource(execution)</bpmn:script> |
| 31 | </bpmn:scriptTask> |
| 32 | <bpmn:sequenceFlow id="SequenceFlow_17u69c4" sourceRef="ScriptTask_18rzwzb" targetRef="Event_1a9swwa" /> |
| 33 | <bpmn:intermediateCatchEvent id="Event_0l9vk9p" name="Start SDNC Operation"> |
| 34 | <bpmn:outgoing>Flow_1c8zr59</bpmn:outgoing> |
| 35 | <bpmn:linkEventDefinition id="LinkEventDefinition_0uwmpn2" name="SdncOperation" /> |
| 36 | </bpmn:intermediateCatchEvent> |
| 37 | <bpmn:scriptTask id="Activity_0eh82ds" name="PreProcess SDNC Allocate TN NSSI Request" scriptFormat="groovy"> |
| 38 | <bpmn:incoming>Flow_1c8zr59</bpmn:incoming> |
| 39 | <bpmn:outgoing>Flow_0pko5tm</bpmn:outgoing> |
| 40 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 41 | def dcsi = new DoCreateTnNssiInstance() |
| 42 | dcsi.preprocessSdncAllocateTnNssiRequest(execution)</bpmn:script> |
| 43 | </bpmn:scriptTask> |
| 44 | <bpmn:callActivity id="Activity_1fs2182" name="Call SDNC Adapter: Allocate TN NSSI" calledElement="sdncAdapter"> |
| 45 | <bpmn:extensionElements> |
| 46 | <camunda:in source="TNNSSMF_SDNCRequest" target="sdncAdapterWorkflowRequest" /> |
| 47 | <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" /> |
| 48 | <camunda:in source="mso-request-id" target="mso-request-id" /> |
| 49 | <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" /> |
| 50 | <camunda:out source="WorkflowException" target="WorkflowException" /> |
| 51 | <camunda:out source="sdncAdapterResponse" target="TNNSSMF_SDNCAdapterResponse" /> |
| 52 | <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" /> |
| 53 | </bpmn:extensionElements> |
| 54 | <bpmn:incoming>Flow_0pko5tm</bpmn:incoming> |
| 55 | <bpmn:outgoing>Flow_11kadz7</bpmn:outgoing> |
| 56 | </bpmn:callActivity> |
| 57 | <bpmn:scriptTask id="Activity_16luyg1" name="Postprocess SDNC Allocate TN NSSI Request" scriptFormat="groovy"> |
| 58 | <bpmn:incoming>Flow_11kadz7</bpmn:incoming> |
| 59 | <bpmn:outgoing>SequenceFlow_1uiz85h</bpmn:outgoing> |
| 60 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 61 | |
| 62 | String response = execution.getVariable("TNNSSMF_SDNCAdapterResponse") |
| 63 | |
| 64 | def dcsi = new DoCreateTnNssiInstance() |
| 65 | dcsi.validateSDNCResponse(execution, response, "allocate")</bpmn:script> |
| 66 | </bpmn:scriptTask> |
| 67 | <bpmn:sequenceFlow id="Flow_1c8zr59" name="" sourceRef="Event_0l9vk9p" targetRef="Activity_0eh82ds" /> |
| 68 | <bpmn:sequenceFlow id="Flow_0pko5tm" name="" sourceRef="Activity_0eh82ds" targetRef="Activity_1fs2182" /> |
| 69 | <bpmn:sequenceFlow id="Flow_11kadz7" name="" sourceRef="Activity_1fs2182" targetRef="Activity_16luyg1" /> |
| 70 | <bpmn:endEvent id="Event_1rsf7yb"> |
| 71 | <bpmn:incoming>SequenceFlow_1uiz85h</bpmn:incoming> |
| 72 | </bpmn:endEvent> |
| 73 | <bpmn:intermediateThrowEvent id="Event_1a9swwa" name="Goto SDNC operation"> |
| 74 | <bpmn:incoming>SequenceFlow_17u69c4</bpmn:incoming> |
| 75 | <bpmn:linkEventDefinition id="LinkEventDefinition_1skl6p7" name="SdncOperation" /> |
| 76 | </bpmn:intermediateThrowEvent> |
| 77 | <bpmn:scriptTask id="Activity_08tw2di" name="create Slice Profile in AAI" scriptFormat="groovy"> |
| 78 | <bpmn:incoming>SequenceFlow_0g5bwvl</bpmn:incoming> |
| 79 | <bpmn:outgoing>Flow_106ei42</bpmn:outgoing> |
| 80 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 81 | def dcsi = new DoCreateTnNssiInstance() |
| 82 | dcsi.createSliceProfile(execution)</bpmn:script> |
| 83 | </bpmn:scriptTask> |
| 84 | <bpmn:sequenceFlow id="Flow_106ei42" sourceRef="Activity_08tw2di" targetRef="ScriptTask_18rzwzb" /> |
| 85 | </bpmn:process> |
| 86 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 87 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoCreateTnNssiInstance"> |
| 88 | <bpmndi:BPMNEdge id="Flow_11kadz7_di" bpmnElement="Flow_11kadz7"> |
| 89 | <di:waypoint x="610" y="375" /> |
| 90 | <di:waypoint x="719" y="375" /> |
| 91 | </bpmndi:BPMNEdge> |
| 92 | <bpmndi:BPMNEdge id="Flow_0pko5tm_di" bpmnElement="Flow_0pko5tm"> |
| 93 | <di:waypoint x="420" y="375" /> |
| 94 | <di:waypoint x="489" y="375" /> |
| 95 | </bpmndi:BPMNEdge> |
| 96 | <bpmndi:BPMNEdge id="Flow_1c8zr59_di" bpmnElement="Flow_1c8zr59"> |
| 97 | <di:waypoint x="211" y="375" /> |
| 98 | <di:waypoint x="299" y="375" /> |
| 99 | </bpmndi:BPMNEdge> |
| 100 | <bpmndi:BPMNEdge id="SequenceFlow_17u69c4_di" bpmnElement="SequenceFlow_17u69c4"> |
| 101 | <di:waypoint x="930" y="129" /> |
| 102 | <di:waypoint x="1102" y="129" /> |
| 103 | </bpmndi:BPMNEdge> |
| 104 | <bpmndi:BPMNEdge id="SequenceFlow_0g5bwvl_di" bpmnElement="SequenceFlow_0g5bwvl"> |
| 105 | <di:waypoint x="574" y="129" /> |
| 106 | <di:waypoint x="650" y="129" /> |
| 107 | </bpmndi:BPMNEdge> |
| 108 | <bpmndi:BPMNEdge id="SequenceFlow_1uiz85h_di" bpmnElement="SequenceFlow_1uiz85h"> |
| 109 | <di:waypoint x="840" y="375" /> |
| 110 | <di:waypoint x="972" y="375" /> |
| 111 | <bpmndi:BPMNLabel> |
| 112 | <dc:Bounds x="631" y="108" width="0" height="12" /> |
| 113 | </bpmndi:BPMNLabel> |
| 114 | </bpmndi:BPMNEdge> |
| 115 | <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova"> |
| 116 | <di:waypoint x="393" y="129" /> |
| 117 | <di:waypoint x="474" y="129" /> |
| 118 | <bpmndi:BPMNLabel> |
| 119 | <dc:Bounds x="436" y="108" width="0" height="12" /> |
| 120 | </bpmndi:BPMNLabel> |
| 121 | </bpmndi:BPMNEdge> |
| 122 | <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln"> |
| 123 | <di:waypoint x="211" y="129" /> |
| 124 | <di:waypoint x="251" y="129" /> |
| 125 | <di:waypoint x="251" y="129" /> |
| 126 | <di:waypoint x="293" y="129" /> |
| 127 | <bpmndi:BPMNLabel> |
| 128 | <dc:Bounds x="266" y="123" width="0" height="12" /> |
| 129 | </bpmndi:BPMNLabel> |
| 130 | </bpmndi:BPMNEdge> |
| 131 | <bpmndi:BPMNEdge id="Flow_106ei42_di" bpmnElement="Flow_106ei42"> |
| 132 | <di:waypoint x="750" y="129" /> |
| 133 | <di:waypoint x="830" y="129" /> |
| 134 | </bpmndi:BPMNEdge> |
| 135 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="allocateTnNssi_StartEvent"> |
| 136 | <dc:Bounds x="175" y="111" width="36" height="36" /> |
| 137 | <bpmndi:BPMNLabel> |
| 138 | <dc:Bounds x="153" y="147" width="86" height="27" /> |
| 139 | </bpmndi:BPMNLabel> |
| 140 | </bpmndi:BPMNShape> |
| 141 | <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task"> |
| 142 | <dc:Bounds x="293" y="89" width="100" height="80" /> |
| 143 | </bpmndi:BPMNShape> |
| 144 | <bpmndi:BPMNShape id="ScriptTask_1qmmew8_di" bpmnElement="instantiate_NSTask"> |
| 145 | <dc:Bounds x="474" y="89" width="100" height="80" /> |
| 146 | </bpmndi:BPMNShape> |
| 147 | <bpmndi:BPMNShape id="Event_0l9vk9p_di" bpmnElement="Event_0l9vk9p"> |
| 148 | <dc:Bounds x="175" y="357" width="36" height="36" /> |
| 149 | <bpmndi:BPMNLabel> |
| 150 | <dc:Bounds x="165" y="400" width="58" height="27" /> |
| 151 | </bpmndi:BPMNLabel> |
| 152 | </bpmndi:BPMNShape> |
| 153 | <bpmndi:BPMNShape id="Activity_0eh82ds_di" bpmnElement="Activity_0eh82ds"> |
| 154 | <dc:Bounds x="299" y="328" width="121" height="94" /> |
| 155 | </bpmndi:BPMNShape> |
| 156 | <bpmndi:BPMNShape id="Activity_1fs2182_di" bpmnElement="Activity_1fs2182"> |
| 157 | <dc:Bounds x="489" y="328" width="121" height="94" /> |
| 158 | </bpmndi:BPMNShape> |
| 159 | <bpmndi:BPMNShape id="Activity_16luyg1_di" bpmnElement="Activity_16luyg1"> |
| 160 | <dc:Bounds x="719" y="328" width="121" height="94" /> |
| 161 | </bpmndi:BPMNShape> |
| 162 | <bpmndi:BPMNShape id="Event_1rsf7yb_di" bpmnElement="Event_1rsf7yb"> |
| 163 | <dc:Bounds x="972" y="357" width="36" height="36" /> |
| 164 | </bpmndi:BPMNShape> |
| 165 | <bpmndi:BPMNShape id="Event_1a9swwa_di" bpmnElement="Event_1a9swwa"> |
| 166 | <dc:Bounds x="1102" y="111" width="36" height="36" /> |
| 167 | <bpmndi:BPMNLabel> |
| 168 | <dc:Bounds x="1093" y="154" width="59" height="27" /> |
| 169 | </bpmndi:BPMNLabel> |
| 170 | </bpmndi:BPMNShape> |
| 171 | <bpmndi:BPMNShape id="ScriptTask_18rzwzb_di" bpmnElement="ScriptTask_18rzwzb"> |
| 172 | <dc:Bounds x="830" y="89" width="100" height="80" /> |
| 173 | </bpmndi:BPMNShape> |
| 174 | <bpmndi:BPMNShape id="Activity_08tw2di_di" bpmnElement="Activity_08tw2di"> |
| 175 | <dc:Bounds x="650" y="89" width="100" height="80" /> |
| 176 | </bpmndi:BPMNShape> |
| 177 | </bpmndi:BPMNPlane> |
| 178 | </bpmndi:BPMNDiagram> |
| 179 | </bpmn:definitions> |