Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.10.0"> |
| 3 | <bpmn:process id="DoScaleE2EServiceInstance" name="DoScaleE2EServiceInstance" isExecutable="true"> |
| 4 | <bpmn:startEvent id="StartEvent_08ndnk6" name="Start Flow"> |
| 5 | <bpmn:outgoing>SequenceFlow_1fhno84</bpmn:outgoing> |
| 6 | </bpmn:startEvent> |
| 7 | <bpmn:scriptTask id="ScriptTask_16yrgke" name="PreProcess Incoming Request" scriptFormat="groovy"> |
| 8 | <bpmn:incoming>SequenceFlow_1fhno84</bpmn:incoming> |
| 9 | <bpmn:outgoing>SequenceFlow_194bhkx</bpmn:outgoing> |
| 10 | <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.* |
| 11 | def ddsi = new DoScaleE2EServiceInstance() |
| 12 | ddsi.preProcessRequest(execution) |
| 13 | ]]></bpmn:script> |
| 14 | </bpmn:scriptTask> |
| 15 | <bpmn:endEvent id="EndEvent_1f5ursk"> |
| 16 | <bpmn:incoming>SequenceFlow_1yee730</bpmn:incoming> |
| 17 | </bpmn:endEvent> |
| 18 | <bpmn:scriptTask id="ScriptTask_0vmzliy" name="Prepare Resource Oper Status" scriptFormat="groovy"> |
| 19 | <bpmn:incoming>SequenceFlow_194bhkx</bpmn:incoming> |
| 20 | <bpmn:outgoing>SequenceFlow_0b5p6gy</bpmn:outgoing> |
| 21 | <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.* |
| 22 | def ddsi = new DoScaleE2EServiceInstance() |
| 23 | ddsi.preInitResourcesOperStatus(execution)]]></bpmn:script> |
| 24 | </bpmn:scriptTask> |
| 25 | <bpmn:serviceTask id="ServiceTask_17d588b" name="Init Resource Oper Status"> |
| 26 | <bpmn:extensionElements> |
| 27 | <camunda:connector> |
| 28 | <camunda:inputOutput> |
| 29 | <camunda:inputParameter name="url">${URN_mso_openecomp_adapters_db_endpoint}</camunda:inputParameter> |
| 30 | <camunda:inputParameter name="headers"> |
| 31 | <camunda:map> |
| 32 | <camunda:entry key="content-type">application/soap+xml</camunda:entry> |
| 33 | <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry> |
| 34 | </camunda:map> |
| 35 | </camunda:inputParameter> |
| 36 | <camunda:inputParameter name="payload">${CVFMI_initResOperStatusRequest}</camunda:inputParameter> |
| 37 | <camunda:inputParameter name="method">POST</camunda:inputParameter> |
| 38 | <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter> |
| 39 | <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter> |
| 40 | </camunda:inputOutput> |
| 41 | <camunda:connectorId>http-connector</camunda:connectorId> |
| 42 | </camunda:connector> |
| 43 | </bpmn:extensionElements> |
| 44 | <bpmn:incoming>SequenceFlow_0b5p6gy</bpmn:incoming> |
| 45 | <bpmn:outgoing>SequenceFlow_0nqrq1k</bpmn:outgoing> |
| 46 | </bpmn:serviceTask> |
| 47 | <bpmn:callActivity id="CallActivity_1jkl1i3" name="Call Network Service Scale" calledElement="DoScaleVFCServiceInstance"> |
| 48 | <bpmn:extensionElements> |
| 49 | <camunda:in source="globalSubscriberId" target="globalSubscriberId" /> |
| 50 | <camunda:in source="serviceType" target="serviceType" /> |
| 51 | <camunda:in source="serviceId" target="serviceId" /> |
| 52 | <camunda:in source="operationId" target="operationId" /> |
| 53 | <camunda:in source="resouceTemplateUUID" target="resouceTemplateUUID" /> |
| 54 | <camunda:in source="resouceInstanceId" target="resouceInstanceId" /> |
| 55 | <camunda:in source="resourceType" target="resourceType" /> |
| 56 | <camunda:in source="operationType" target="operationType" /> |
| 57 | <camunda:in source="nsScaleParams" target="nsScaleParams" /> |
| 58 | <camunda:in source="bpmnRequest" target="bpmnRequest" /> |
| 59 | <camunda:in source="serviceInstanceId" target="serviceInstanceId" /> |
| 60 | <camunda:in source="serviceInstanceName" target="serviceInstanceName" /> |
| 61 | <camunda:in source="nodeTemplateUUID" target="nodeTemplateUUID" /> |
| 62 | <camunda:in source="msoRequestId" target="msoRequestId" /> |
| 63 | <camunda:in source="requestDescription" target="requestDescription" /> |
| 64 | </bpmn:extensionElements> |
| 65 | <bpmn:incoming>SequenceFlow_0nqrq1k</bpmn:incoming> |
| 66 | <bpmn:outgoing>SequenceFlow_1yee730</bpmn:outgoing> |
| 67 | </bpmn:callActivity> |
| 68 | <bpmn:sequenceFlow id="SequenceFlow_1fhno84" sourceRef="StartEvent_08ndnk6" targetRef="ScriptTask_16yrgke" /> |
| 69 | <bpmn:sequenceFlow id="SequenceFlow_194bhkx" sourceRef="ScriptTask_16yrgke" targetRef="ScriptTask_0vmzliy" /> |
| 70 | <bpmn:sequenceFlow id="SequenceFlow_1yee730" sourceRef="CallActivity_1jkl1i3" targetRef="EndEvent_1f5ursk" /> |
| 71 | <bpmn:sequenceFlow id="SequenceFlow_0nqrq1k" sourceRef="ServiceTask_17d588b" targetRef="CallActivity_1jkl1i3" /> |
| 72 | <bpmn:sequenceFlow id="SequenceFlow_0b5p6gy" sourceRef="ScriptTask_0vmzliy" targetRef="ServiceTask_17d588b" /> |
| 73 | <bpmn:subProcess id="SubProcess_19qmltk" name="Sub-process for UnexpectedErrors" triggeredByEvent="true"> |
| 74 | <bpmn:startEvent id="StartEvent_0581c7y"> |
| 75 | <bpmn:outgoing>SequenceFlow_0yyws1p</bpmn:outgoing> |
| 76 | <bpmn:errorEventDefinition /> |
| 77 | </bpmn:startEvent> |
| 78 | <bpmn:endEvent id="EndEvent_0k146bt"> |
| 79 | <bpmn:incoming>SequenceFlow_0i814ke</bpmn:incoming> |
| 80 | </bpmn:endEvent> |
| 81 | <bpmn:scriptTask id="ScriptTask_0l79kxj" name="Log / Print Unexpected Error" scriptFormat="groovy"> |
| 82 | <bpmn:incoming>SequenceFlow_0yyws1p</bpmn:incoming> |
| 83 | <bpmn:outgoing>SequenceFlow_0i814ke</bpmn:outgoing> |
| 84 | <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.* |
| 85 | ExceptionUtil ex = new ExceptionUtil() |
| 86 | ex.processJavaException(execution)]]></bpmn:script> |
| 87 | </bpmn:scriptTask> |
| 88 | <bpmn:sequenceFlow id="SequenceFlow_0yyws1p" name="" sourceRef="StartEvent_0581c7y" targetRef="ScriptTask_0l79kxj" /> |
| 89 | <bpmn:sequenceFlow id="SequenceFlow_0i814ke" name="" sourceRef="ScriptTask_0l79kxj" targetRef="EndEvent_0k146bt" /> |
| 90 | </bpmn:subProcess> |
| 91 | </bpmn:process> |
| 92 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 93 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoScaleE2EServiceInstance"> |
| 94 | <bpmndi:BPMNShape id="StartEvent_08ndnk6_di" bpmnElement="StartEvent_08ndnk6"> |
| 95 | <dc:Bounds x="96" y="129" width="36" height="36" /> |
| 96 | <bpmndi:BPMNLabel> |
| 97 | <dc:Bounds x="90" y="170" width="50" height="12" /> |
| 98 | </bpmndi:BPMNLabel> |
| 99 | </bpmndi:BPMNShape> |
| 100 | <bpmndi:BPMNShape id="ScriptTask_16yrgke_di" bpmnElement="ScriptTask_16yrgke"> |
| 101 | <dc:Bounds x="189" y="107" width="100" height="80" /> |
| 102 | </bpmndi:BPMNShape> |
| 103 | <bpmndi:BPMNShape id="EndEvent_1f5ursk_di" bpmnElement="EndEvent_1f5ursk"> |
| 104 | <dc:Bounds x="1016" y="279" width="36" height="36" /> |
| 105 | <bpmndi:BPMNLabel> |
| 106 | <dc:Bounds x="899" y="320" width="90" height="12" /> |
| 107 | </bpmndi:BPMNLabel> |
| 108 | </bpmndi:BPMNShape> |
| 109 | <bpmndi:BPMNShape id="ScriptTask_0vmzliy_di" bpmnElement="ScriptTask_0vmzliy"> |
| 110 | <dc:Bounds x="436" y="107" width="100" height="80" /> |
| 111 | </bpmndi:BPMNShape> |
| 112 | <bpmndi:BPMNShape id="ServiceTask_17d588b_di" bpmnElement="ServiceTask_17d588b"> |
| 113 | <dc:Bounds x="695" y="107" width="100" height="80" /> |
| 114 | </bpmndi:BPMNShape> |
| 115 | <bpmndi:BPMNShape id="CallActivity_1jkl1i3_di" bpmnElement="CallActivity_1jkl1i3"> |
| 116 | <dc:Bounds x="984" y="107" width="100" height="80" /> |
| 117 | </bpmndi:BPMNShape> |
| 118 | <bpmndi:BPMNEdge id="SequenceFlow_1fhno84_di" bpmnElement="SequenceFlow_1fhno84"> |
| 119 | <di:waypoint xsi:type="dc:Point" x="132" y="147" /> |
| 120 | <di:waypoint xsi:type="dc:Point" x="189" y="147" /> |
| 121 | <bpmndi:BPMNLabel> |
| 122 | <dc:Bounds x="72" y="126" width="90" height="12" /> |
| 123 | </bpmndi:BPMNLabel> |
| 124 | </bpmndi:BPMNEdge> |
| 125 | <bpmndi:BPMNEdge id="SequenceFlow_194bhkx_di" bpmnElement="SequenceFlow_194bhkx"> |
| 126 | <di:waypoint xsi:type="dc:Point" x="289" y="147" /> |
| 127 | <di:waypoint xsi:type="dc:Point" x="436" y="147" /> |
| 128 | <bpmndi:BPMNLabel> |
| 129 | <dc:Bounds x="317.5" y="126" width="90" height="12" /> |
| 130 | </bpmndi:BPMNLabel> |
| 131 | </bpmndi:BPMNEdge> |
| 132 | <bpmndi:BPMNEdge id="SequenceFlow_1yee730_di" bpmnElement="SequenceFlow_1yee730"> |
| 133 | <di:waypoint xsi:type="dc:Point" x="1033" y="187" /> |
| 134 | <di:waypoint xsi:type="dc:Point" x="1034" y="279" /> |
| 135 | <bpmndi:BPMNLabel> |
| 136 | <dc:Bounds x="988.5" y="212" width="90" height="12" /> |
| 137 | </bpmndi:BPMNLabel> |
| 138 | </bpmndi:BPMNEdge> |
| 139 | <bpmndi:BPMNEdge id="SequenceFlow_0nqrq1k_di" bpmnElement="SequenceFlow_0nqrq1k"> |
| 140 | <di:waypoint xsi:type="dc:Point" x="795" y="147" /> |
| 141 | <di:waypoint xsi:type="dc:Point" x="984" y="147" /> |
| 142 | <bpmndi:BPMNLabel> |
| 143 | <dc:Bounds x="844.5" y="126" width="90" height="12" /> |
| 144 | </bpmndi:BPMNLabel> |
| 145 | </bpmndi:BPMNEdge> |
| 146 | <bpmndi:BPMNEdge id="SequenceFlow_0b5p6gy_di" bpmnElement="SequenceFlow_0b5p6gy"> |
| 147 | <di:waypoint xsi:type="dc:Point" x="536" y="147" /> |
| 148 | <di:waypoint xsi:type="dc:Point" x="695" y="147" /> |
| 149 | <bpmndi:BPMNLabel> |
| 150 | <dc:Bounds x="570.5" y="126" width="90" height="12" /> |
| 151 | </bpmndi:BPMNLabel> |
| 152 | </bpmndi:BPMNEdge> |
| 153 | <bpmndi:BPMNShape id="SubProcess_19qmltk_di" bpmnElement="SubProcess_19qmltk" isExpanded="true"> |
| 154 | <dc:Bounds x="132" y="351" width="467" height="193" /> |
| 155 | </bpmndi:BPMNShape> |
| 156 | <bpmndi:BPMNShape id="StartEvent_0581c7y_di" bpmnElement="StartEvent_0581c7y"> |
| 157 | <dc:Bounds x="201" y="419" width="36" height="36" /> |
| 158 | <bpmndi:BPMNLabel> |
| 159 | <dc:Bounds x="84" y="460" width="90" height="12" /> |
| 160 | </bpmndi:BPMNLabel> |
| 161 | </bpmndi:BPMNShape> |
| 162 | <bpmndi:BPMNShape id="EndEvent_0k146bt_di" bpmnElement="EndEvent_0k146bt"> |
| 163 | <dc:Bounds x="494" y="419" width="36" height="36" /> |
| 164 | <bpmndi:BPMNLabel> |
| 165 | <dc:Bounds x="377" y="460" width="90" height="12" /> |
| 166 | </bpmndi:BPMNLabel> |
| 167 | </bpmndi:BPMNShape> |
| 168 | <bpmndi:BPMNShape id="ScriptTask_0l79kxj_di" bpmnElement="ScriptTask_0l79kxj"> |
| 169 | <dc:Bounds x="305" y="397" width="100" height="80" /> |
| 170 | </bpmndi:BPMNShape> |
| 171 | <bpmndi:BPMNEdge id="SequenceFlow_0yyws1p_di" bpmnElement="SequenceFlow_0yyws1p"> |
| 172 | <di:waypoint xsi:type="dc:Point" x="237" y="437" /> |
| 173 | <di:waypoint xsi:type="dc:Point" x="305" y="437" /> |
| 174 | <bpmndi:BPMNLabel> |
| 175 | <dc:Bounds x="136" y="422" width="90" height="12" /> |
| 176 | </bpmndi:BPMNLabel> |
| 177 | </bpmndi:BPMNEdge> |
| 178 | <bpmndi:BPMNEdge id="SequenceFlow_0i814ke_di" bpmnElement="SequenceFlow_0i814ke"> |
| 179 | <di:waypoint xsi:type="dc:Point" x="405" y="437" /> |
| 180 | <di:waypoint xsi:type="dc:Point" x="494" y="437" /> |
| 181 | <bpmndi:BPMNLabel> |
| 182 | <dc:Bounds x="317" y="422" width="90" height="12" /> |
| 183 | </bpmndi:BPMNLabel> |
| 184 | </bpmndi:BPMNEdge> |
| 185 | </bpmndi:BPMNPlane> |
| 186 | </bpmndi:BPMNDiagram> |
| 187 | </bpmn:definitions> |