diff options
author | 2017-08-15 21:18:04 -0500 | |
---|---|---|
committer | 2017-08-18 05:46:40 +0000 | |
commit | cf4b15ab00249af6f4d05afd75d16bec689f3241 (patch) | |
tree | 14468fef53aecf04700eab421acca88fc8e853d4 /appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API | |
parent | ab6c2c0cd441cf40723016e9a82aeeeb933fec7e (diff) |
Initial add of appc-directed-graph bundles
Directed Graph library
Additional JIRA Issues: APPC-66, APPC-71, APPC-74
Issue-ID: APPC-65
Change-Id: I1bd643f7675dec19e562e99db65bafa0dcda6ef4
Signed-off-by: Skip Wonnell <kw5258@att.com>
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API')
12 files changed, 252 insertions, 0 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_audit-configuration-notification.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_audit-configuration-notification.json new file mode 100644 index 000000000..239e119cc --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_audit-configuration-notification.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"2bda9d8b.dc07e2","type":"comment","name":"Audit-CONFIGURATION-NOTIFICATION","info":"","comments":"","x":564,"y":76,"z":"50ed8660.c42b78","wires":[]},{"id":"cd1395d8.8212a8","type":"dgstart","name":"DGSTART","outputs":1,"x":117.66668701171875,"y":153.3333396911621,"z":"50ed8660.c42b78","wires":[["afc36e17.65732"]]},{"id":"afc36e17.65732","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":300.90484619140625,"y":151.8571319580078,"z":"50ed8660.c42b78","wires":[["ea11462.c33d1b8"]]},{"id":"ea11462.c33d1b8","type":"method","name":"method audit-configuration-notification","xml":"<method rpc='audit-configuration-notification' mode='sync'>\n","comments":"","outputs":1,"x":206.1429443359375,"y":249.66668701171875,"z":"50ed8660.c42b78","wires":[["59223239.da7a7c"]]},{"id":"60458f7.739457","type":"switchNode","name":"switch: service-instance-id already in config","xml":"<switch test=\"`$audit-configuration-notification-input.service-information.service-instance-id == $service-data.service-information.service-instance-id`\">","comments":"","outputs":1,"x":447.2699890136719,"y":391.5772399902344,"z":"50ed8660.c42b78","wires":[["bbb1f484.ce69c8","36057100.2e7c4"]]},{"id":"bbb1f484.ce69c8","type":"outcomeTrue","name":"outcome: true","xml":"<outcome value=\"true\">\n","outputs":1,"x":747.7777709960938,"y":374.08923149108887,"z":"50ed8660.c42b78","wires":[["edf93c4c.cc86e"]]},{"id":"36057100.2e7c4","type":"outcomeFalse","name":"outcome: false","xml":"<outcome value=\"false\">","comments":"","outputs":1,"x":748.1230773925781,"y":314.17259979248047,"z":"50ed8660.c42b78","wires":[["3ef9114.e12dcee"]]},{"id":"59223239.da7a7c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":123.5728988647461,"y":329.73309326171875,"z":"50ed8660.c42b78","wires":[["4b6ffd54.962d44","60458f7.739457","d2dc49b.c7bbab8"]]},{"id":"4b6ffd54.962d44","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"audit-configuration-notification\"/>\n<parameter name=\"field3\" value=\"`$audit-configuration-notification-input.service-information.service-instance-id`\"/>\n<parameter name=\"field4\" value=\"`$audit-configuration-notification-input.response-code`\"/>\n<parameter name=\"field5\" value=\"`$audit-configuration-notification-input.response-message`\"/>\n<parameter name=\"field6\" value=\"`$audit-configuration-notification-input.audit-config-results.audit-outcome`\"/>\n<parameter name=\"field7\" value=\"`$audit-configuration-notification-input.audit-config-results.applied-configuration`\"/>\n<parameter name=\"field8\" value=\"`$audit-configuration-notification-input.audit-config-results.running-configuration`\"/>\n\n<parameter name=\"field9\" value=\"`$service-data.service-information.service-instance-id`\"/>\n<parameter name=\"field10\" value=\"`$service-configuration-notification-input.response-code`\"/>\n<parameter name=\"field11\" value=\"`$service-data.request-information.request-action`\"/>\n<parameter name=\"field12\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n\n<parameter name=\"field13\" value=\"`$audit-configuration-notification-input.svc-request-id`\"/>\n<parameter name=\"field14\" value=\"`$service-data.appc-request-header.svc-request-id`\"/>","comments":"","outputs":1,"x":336.7158203125,"y":345.0707702636719,"z":"50ed8660.c42b78","wires":[[]]},{"id":"fed84bfa.860428","type":"switchNode","name":"switch: response code Successful","xml":"<switch test=\"`$audit-configuration-notification-input.response-code`\">\n\n","comments":"","outputs":1,"x":401.3543395996094,"y":518.7619018554688,"z":"50ed8660.c42b78","wires":[["44285ae7.d087f4","bb9534d1.342908","275f0633.21aa6a"]]},{"id":"44285ae7.d087f4","type":"success","name":"outcome: Success","xml":"<outcome value=\"Success\">","comments":"","outputs":1,"x":340.92584228515625,"y":684.4285278320312,"z":"50ed8660.c42b78","wires":[["e2e6621b.15e89"]]},{"id":"275f0633.21aa6a","type":"other","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":328,"y":971,"z":"50ed8660.c42b78","wires":[["c9c27153.50dbf"]]},{"id":"c9c27153.50dbf","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":513.1386108398438,"y":965.9999389648438,"z":"50ed8660.c42b78","wires":[["235a2caa.dc26a4","8de0308c.bebf5"]]},{"id":"235a2caa.dc26a4","type":"configure","name":"SDN_GP Asynch Notification","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.async.AsyncResponseAdaptor\" key=\"AUDIT\">\n<parameter name=\"dummyparam\" value=\"test\"/>\n","comments":"","outputs":1,"x":783.4718627929688,"y":917.1514892578125,"z":"50ed8660.c42b78","wires":[[]]},{"id":"8de0308c.bebf5","type":"returnFailure","name":"return: failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='`$audit-configuration-notification-input.response-code`'/>\n\t<parameter name='error-message' value='`$audit-configuration-notification-input.response-message`'/>\n\t<parameter name='internal-error' value='false' />","comments":"","x":742.3817749023438,"y":983.0717163085938,"z":"50ed8660.c42b78","wires":[]},{"id":"3ef9114.e12dcee","type":"returnFailure","name":"return: failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='1000'/>\n\t<parameter name='error-message' value='Service Instance Id not found'/>\n\t<parameter name='internal-error' value='true' />","comments":"","x":1004.6401977539062,"y":315.4285888671875,"z":"50ed8660.c42b78","wires":[]},{"id":"6fc2b7f7.95e328","type":"other","name":"outcome: Other","xml":"<outcome value=\"Other\">\n\n","outputs":1,"x":1918.3543663024902,"y":4982.627190113068,"z":"50ed8660.c42b78","wires":[["a82156c3.c76cb8"]]},{"id":"616774e.572778c","type":"other","name":"outcome: ChangeLayer3ServiceActivateRequest","xml":"<outcome value=\"ChangeLayer3ServiceActivateRequest\">\n\n","outputs":1,"x":2063.2545433044434,"y":4819.393614768982,"z":"50ed8660.c42b78","wires":[["26825f6e.55fa2"]]},{"id":"f43f3748.859d08","type":"execute","name":"execute: EIPAM_UnassignIPAddress","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.EIPAM.EIPAMPlugin\" method=\"unassignIPAddress\">\n\t<parameter name=\"deleteEIPAM_status\" value=\"PENDING_DELETE\" />","outputs":1,"x":2643.284980773926,"y":4735.545325279236,"z":"50ed8660.c42b78","wires":[[]]},{"id":"26825f6e.55fa2","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2342.6183280944824,"y":4816.545227050781,"z":"50ed8660.c42b78","wires":[["f43f3748.859d08","afd3a555.be9328","3e70f431.74a58c","86c2f124.a637c","e06094ff.361828"]]},{"id":"86c2f124.a637c","type":"configure","name":"MSO Asynch Notification","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"MSO\">\n <parameter name=\"dummyparam\" value=\"test\"/>\n","outputs":1,"x":2613.2713928222656,"y":4886.871339797974,"z":"50ed8660.c42b78","wires":[[]]},{"id":"e06094ff.361828","type":"returnSuccess","name":"return success","xml":" <return status=\"success\">\n \n","x":2585.120918273926,"y":4934.317549705505,"z":"50ed8660.c42b78","wires":[]},{"id":"3e70f431.74a58c","type":"save","name":"save: order-status = Activated","xml":"<save plugin=\"com.att.sdnctl.sli.resource.mdsal.ConfigResource\" resource=\"service-data\">\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Activated\" />","outputs":1,"x":2627.1866760253906,"y":4833.433511734009,"z":"50ed8660.c42b78","wires":[[]]},{"id":"afd3a555.be9328","type":"set","name":"set: order-status = Activated","xml":"<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Activated\" />","x":2619.559804916382,"y":4787.139886856079,"z":"50ed8660.c42b78","wires":[]},{"id":"a82156c3.c76cb8","type":"returnFailure","name":"return failure","xml":" <return status=\"failure\">\n\t<parameter name='error-code' value='2000'/>\n\t<parameter name='error-message' value='Invalid Request `$service-data.request-information.request-action`'/>\n\t<parameter name='internal-error' value='true'/>\n \n","x":2231.4364824295044,"y":4984.090530395508,"z":"50ed8660.c42b78","wires":[]},{"id":"e2e6621b.15e89","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":569,"y":696,"z":"50ed8660.c42b78","wires":[["eb60f62e.2cf768","a7de75f9.c2b138","559ed45e.8ff51c","1698aac4.f2c905"]]},{"id":"a20c72ca.5e8dd","type":"set","name":"set Audit Config results","xml":"<set>\n<parameter name='service-data.' value='audit-configuration-notification-input.' />\n","comments":"","x":823,"y":588,"z":"50ed8660.c42b78","wires":[]},{"id":"eb60f62e.2cf768","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"audit-configuration-notification\"/>\n<parameter name=\"field3\" value=\"`$audit-configuration-notification-input.audit-config-results.audit-outcome`\"/>\n<parameter name=\"field4\" value=\"`$audit-configuration-notification-input.audit-config-results.running-configuration`\"/>\n<parameter name=\"field5\" value=\"`$audit-configuration-notification-input.svc-request-id`\"/>\n<parameter name=\"field6\" value=\"`$service-data.appc-request-header.svc-request-id`\"/>\n<parameter name=\"field7\" value=\"`$service-data.oper-status.order-status`\"/>\n<parameter name=\"field8\" value=\"`$service-data.oper-status.last-order-status`\"/>\n\n","comments":"","outputs":1,"x":789,"y":645,"z":"50ed8660.c42b78","wires":[[]]},{"id":"d2dc49b.c7bbab8","type":"set","name":"set:service-data based on input","xml":"<set>\n<parameter name=\"service-data.appc-request-header.svc-request-id\" value=\"`$audit-configuration-notification-input.svc-request-id`\" />\n\n<!--\n<parameter name=\"service-data.service-information.service-instance-id\" value=\"`$audit-configuration-notification-input.service-information.service-instance-id`\" />\n-->\n<parameter name=\"service-data.service-information.service-type\" value=\"`$audit-configuration-notification-input.service-information.service-type`\" />\n\t\n\n\t\n\t\n\t","comments":"","x":412,"y":298,"z":"50ed8660.c42b78","wires":[]},{"id":"bb9534d1.342908","type":"success","name":"outcome: SUCCESS","xml":"<outcome value=\"SUCCESS\">","comments":"","outputs":1,"x":334,"y":756,"z":"50ed8660.c42b78","wires":[["e2e6621b.15e89"]]},{"id":"5f69c5a2.065e0c","type":"set","name":"set: restore Order Status based on last-order-status","xml":"<set>\n<parameter name=\"service-data.oper-status.order-status\" value=\"`$service-data.oper-status.last-order-status`\" />\n\n","comments":"","x":925,"y":700,"z":"50ed8660.c42b78","wires":[]},{"id":"a7de75f9.c2b138","type":"configure","name":"SDN-GP Asynch Notification","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.async.AsyncResponseAdaptor\" key=\"AUDIT\">\n<parameter name=\"dummyparam\" value=\"test\"/>\n","comments":"","outputs":1,"x":852,"y":785,"z":"50ed8660.c42b78","wires":[[]]},{"id":"559ed45e.8ff51c","type":"returnSuccess","name":"return success","xml":"<return status=\"success\">\n<parameter name='error-code' value='200'/>\n<parameter name='error-message' value='`$audit-configuration-notification-input.response-message`'/>\n \n","comments":"","x":815,"y":844,"z":"50ed8660.c42b78","wires":[]},{"id":"1698aac4.f2c905","type":"set","name":"set: last-sub-action-status","xml":"<set>\n<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"Success\" />\n\n","comments":"","x":847,"y":740,"z":"50ed8660.c42b78","wires":[]},{"id":"4cbbd319.e6526c","type":"comment","name":"Lastsubaction status set in Appc","info":"","comments":"","x":1059,"y":942,"z":"50ed8660.c42b78","wires":[]},{"id":"edf93c4c.cc86e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":926,"y":376,"z":"50ed8660.c42b78","wires":[["583ef652.3fb778","fed84bfa.860428"]]},{"id":"583ef652.3fb778","type":"execute","name":"execute: setTime(modify-timestamp)","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"setTime\">\n\t<parameter name=\"ctxVariable\" value=\"service-data.oper-status.modify-timestamp\"/>","comments":"","outputs":1,"x":1187,"y":374,"z":"50ed8660.c42b78","wires":[[]]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_audit-configuration-operation.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_audit-configuration-operation.json new file mode 100644 index 000000000..41d8f0330 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_audit-configuration-operation.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"6295e18d.289b8","type":"dgstart","name":"DGSTART","outputs":1,"x":162,"y":124,"z":"22560c9c.507f14","wires":[["71e03392.dbcd8c"]]},{"id":"71e03392.dbcd8c","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":327.0000305175781,"y":127.33331298828125,"z":"22560c9c.507f14","wires":[["d8b42c68.f5ab3"]]},{"id":"d8b42c68.f5ab3","type":"method","name":"method audit-configuration-operation","xml":"<method rpc='audit-configuration-operation' mode='sync'>\n","comments":"","outputs":1,"x":582.6666870117188,"y":126.33331298828125,"z":"22560c9c.507f14","wires":[["d91d40bd.89138"]]},{"id":"6d141611.56d708","type":"switchNode","name":"switch: request-action","xml":"<switch test=\"`$audit-configuration-operation-input.request-information.request-action`\">\n<!--\n leaf request-action {\n type enumeration {\n enum \"VsbgServiceAuditRequest\";\n }\n }\n}\n-->\n\n","comments":"","outputs":1,"x":187.5,"y":433,"z":"22560c9c.507f14","wires":[["5f81be6d.88ffe","624313d9.5e1ccc"]]},{"id":"5f81be6d.88ffe","type":"outcome","name":"VsbgServiceAuditRequest","xml":"<outcome value='VsbgServiceAuditRequest'>","comments":"","outputs":1,"x":450.5,"y":425,"z":"22560c9c.507f14","wires":[["b7c64a6e.3b97a8"]]},{"id":"b7c64a6e.3b97a8","type":"switchNode","name":"switch: request-sub-action","xml":"<switch test=\"`$audit-configuration-operation-input.request-information.request-sub-action`\">\n","comments":"","outputs":1,"x":714.5,"y":428,"z":"22560c9c.507f14","wires":[["2c21f7b1.0224a8","3dc879b9.2a21a6","fb1f199e.1ee6b8"]]},{"id":"2c21f7b1.0224a8","type":"outcome","name":"AUDIT","xml":"<outcome value='AUDIT'>","comments":"","outputs":1,"x":936.5,"y":428,"z":"22560c9c.507f14","wires":[["b23ec1e7.d9a61"]]},{"id":"624313d9.5e1ccc","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":395.5,"y":490,"z":"22560c9c.507f14","wires":[["60490b53.5d2ee4"]]},{"id":"60490b53.5d2ee4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='request-action not recognized'/>\n","comments":"","x":549.5509033203125,"y":491.8646240234375,"z":"22560c9c.507f14","wires":[]},{"id":"896948ef.2fe218","type":"configure","name":"configure: ConfigComponentAdaptor","xml":"<configure adaptor=\"org.openecomp.appc.ccadaptor.ConfigComponentAdaptor\" key=\"dummy\">\n\t<parameter name=\"action\" value=\"`$service-data.appc-request-header.svc-action`\"/>\n\t","comments":"","outputs":1,"x":1305,"y":658,"z":"22560c9c.507f14","wires":[["b0e4346e.d63768","cf246bec.706c08"]]},{"id":"3dc879b9.2a21a6","type":"outcome","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":880.5,"y":606,"z":"22560c9c.507f14","wires":[["9d054a2c.f820a8"]]},{"id":"9d054a2c.f820a8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='request-sub-action not recognized'/>\n","comments":"","x":1047.5,"y":608,"z":"22560c9c.507f14","wires":[]},{"id":"967eb60d.2ec408","type":"comment","name":"Audit-configuration-Operation","info":"","comments":"","x":1530,"y":67,"z":"22560c9c.507f14","wires":[]},{"id":"b0e4346e.d63768","type":"failure","name":"failure","xml":"<outcome value='failure'>","outputs":1,"x":1527,"y":621,"z":"22560c9c.507f14","wires":[["f35bfc8a.ba17b"]]},{"id":"f35bfc8a.ba17b","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<!-- error code & message provided by ncs-adaptor -->\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":1690.3331298828125,"y":615.6666259765625,"z":"22560c9c.507f14","wires":[]},{"id":"249d783.f996f88","type":"returnSuccess","name":"return success","xml":" <return status=\"success\">\n \n","comments":"","x":1699,"y":719,"z":"22560c9c.507f14","wires":[]},{"id":"b5c3e0b7.6e9cb","type":"set","name":"set Copy from input to Service-data","xml":"<set>\n<parameter name=\"service-data.\" value=\"audit-configuration-operation-input.\"/>\n\n","comments":"","x":1363,"y":502,"z":"22560c9c.507f14","wires":[]},{"id":"cf246bec.706c08","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1531,"y":713,"z":"22560c9c.507f14","wires":[["249d783.f996f88"]]},{"id":"4c8f0493.b0d5bc","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"audit-configuration-operation\"/>\n\n<parameter name=\"field3\" value=\"`$audit-configuration-operation-input.request-information.request-action`\"/>\n<parameter name=\"field4\" value=\"`$service-data.request-information.request-action`\"/>\n<parameter name=\"field5\" value=\"`$audit-configuration-operation-input.request-information.request-sub-action`\"/>\n<parameter name=\"field6\" value=\"`$service-data.request-information.request-sub-action`\"/>\n<parameter name=\"field7\" value=\"`$audit-configuration-operation-input.service-information.service-instance-id`\"/>\n<parameter name=\"field8\" value=\"`$service-data.service-information.service-instance-id`\"/>\n","comments":"","outputs":1,"x":1278,"y":596,"z":"22560c9c.507f14","wires":[[]]},{"id":"441443b2.8ba20c","type":"GenericXML","name":"set: last-action, last-sub-action, last-svc-request-id, last-order-status","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"VsbgServiceAuditRequest\" />\n\t<parameter name=\"service-data.oper-status.last-sub-action\" value=\"`$audit-configuration-operation-input.request-information.request-sub-action`\" />\n\t<parameter name=\"service-data.oper-status.last-svc-request-id\" value=\"`$audit-configuration-operation-input.sdnc-request-header.svc-request-id`\" />\n\t<!-- Causes exception when set to Null\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\" />\n\t-->\n","comments":"","outputs":1,"x":1458,"y":395.33331298828125,"z":"22560c9c.507f14","wires":[[]]},{"id":"b23ec1e7.d9a61","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1094,"y":426.33331298828125,"z":"22560c9c.507f14","wires":[["441443b2.8ba20c","b5c3e0b7.6e9cb","4c8f0493.b0d5bc","896948ef.2fe218","b74ead9c.3101a","db63f043.6eab3"]]},{"id":"e9f54ef7.3c4b3","type":"switchNode","name":"switch: service-instance-id config == input","xml":"<switch test=\"`$audit-configuration-operation-input.service-information.service-instance-id == $service-data.service-information.service-instance-id`\">","comments":"","outputs":1,"x":560,"y":270.33331298828125,"z":"22560c9c.507f14","wires":[["fcc63e45.6168e","baaeb60.30b6648"]]},{"id":"fcc63e45.6168e","type":"outcomeFalse","name":"false","xml":"<outcome value=\"false\">","comments":"","outputs":1,"x":832,"y":206.33331298828125,"z":"22560c9c.507f14","wires":[["ba2ca0a6.b672c"]]},{"id":"ba2ca0a6.b672c","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"404\"/>\n\t<parameter name=\"error-message\" value=\"Service instance not found in config tree\"/>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":993,"y":199.33331298828125,"z":"22560c9c.507f14","wires":[]},{"id":"baaeb60.30b6648","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":828,"y":273.33331298828125,"z":"22560c9c.507f14","wires":[[]]},{"id":"ace6f0cc.7ecce","type":"set","name":"set:service-data based on input","xml":"<set>\n\t\n\t<parameter name=\"service-data.request-information.request-id\" value=\"`$audit-configuration-operation-input.request-information.request-id`\" />\n\t<parameter name=\"service-data.request-information.notification-url\" value=\"`$audit-configuration-operation-input.request-information.notification-url`\" />\n\t<parameter name=\"service-data.request-information.request-action\" value=\"`$audit-configuration-operation-input.request-information.request-action`\" />\n\t<parameter name=\"service-data.request-information.source\" value=\"`$audit-configuration-operation-input.request-information.source`\" />\n\t<parameter name=\"service-data.request-information.order-number\" value=\"`$audit-configuration-operation-input.request-information.order-number`\" />\n\t<parameter name=\"service.request-information.order-version\" value=\"`$audit-configuration-operation-input.request-information.order-version`\" />\n\t<parameter name=\"service-data.appc-request-header.svc-request-id\" value=\"`$audit-configuration-operation-input.appc-request-header.svc-request-id`\" />\n\t<parameter name=\"service-data.appc-request-header.svc-action\" value=\"`$audit-configuration-operation-input.appc-request-header.svc-action`\" />\n\t<parameter name=\"service-data.appc-request-header.svc-notification-url\" value=\"`$audit-configuration-operation-input.appc-request-header.svc-notification-url`\" />\n\t<!-- \n\t<parameter name=\"service-data.service-information.service-instance-id\" value=\"`$audit-configuration-operation-input.service-information.service-instance-id`\" />\n\t-->\n\t<parameter name=\"service-data.service-information.service-type\" value=\"`$audit-configuration-operation-input.service-information.service-type`\" />\n\t<parameter name=\"service-data.request-information.request-sub-action\" value=\"`$audit-configuration-operation-input.request-information.request-sub-action`\" />\n\n\t\n\t\n\t","comments":"","x":537,"y":183.3333282470703,"z":"22560c9c.507f14","wires":[]},{"id":"2806bcfa.2a9a64","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"service-configuration-operation\"/>\n<parameter name=\"field3\" value=\"`$service-data.appc-request-header.svc-action`\"/>\n<parameter name=\"field4\" value=\"`$service-data.appc-request-header.svc-request-id`\"/>\n<parameter name=\"field5\" value=\"`$service-data.service-information.service-instance-id`\"/>\n<parameter name=\"field6\" value=\"`$service-data.request-information.request-id`\"/>\n<parameter name=\"field7\" value=\"`$service-data.request-information.request-action`\"/>\n<parameter name=\"field8\" value=\"`$service-data.request-information.source`\"/>\n<parameter name=\"field9\" value=\"`$service-data.service-information.service-instance-id`\"/>\n<parameter name=\"field10\" value=\"`$service-data.service-information.service-type`\"/>\n<parameter name=\"field11\" value=\"`$service-data.request-information.request-sub-action`\"/>","comments":"","outputs":1,"x":458,"y":223.3333282470703,"z":"22560c9c.507f14","wires":[[]]},{"id":"d91d40bd.89138","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":232.5,"y":199,"z":"22560c9c.507f14","wires":[["ace6f0cc.7ecce","2806bcfa.2a9a64","a37c4df0.5c6a2"]]},{"id":"a37c4df0.5c6a2","type":"switchNode","name":"switch: last-sub-action-status","xml":"<switch test=\"`$service-data.oper-status.last-sub-action-status`\">\n","comments":"","outputs":1,"x":461,"y":326,"z":"22560c9c.507f14","wires":[["117b233.4c88cdd","d97589b.e4e1e78"]]},{"id":"117b233.4c88cdd","type":"outcome","name":"InProgress","xml":"<outcome value='InProgress'>","comments":"","outputs":1,"x":677,"y":319,"z":"22560c9c.507f14","wires":[["8850e7c6.f04338"]]},{"id":"8850e7c6.f04338","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":846,"y":317,"z":"22560c9c.507f14","wires":[["2a7366c4.037b4a","66448305.03e3cc","c09b7edb.44d67","6d141611.56d708"]]},{"id":"2a7366c4.037b4a","type":"set","name":"set: last-sub-action-status = InProgressTimeout","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"InProgressTimeout\" />","comments":"","x":1139,"y":330,"z":"22560c9c.507f14","wires":[]},{"id":"d97589b.e4e1e78","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":673,"y":367,"z":"22560c9c.507f14","wires":[["6d141611.56d708"]]},{"id":"66448305.03e3cc","type":"execute","name":"execute getTimeDifference","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"getTimeDifference\">\n\t<parameter name=\"inDate\" value=\"`$service-data.oper-status.modify-timestamp`\"/>\n\t<parameter name=\"ctxTempVariable\" value=\"tmp.inprogress-time\"/>","comments":"","outputs":1,"x":1085,"y":248,"z":"22560c9c.507f14","wires":[[]]},{"id":"c09b7edb.44d67","type":"switchNode","name":"switch: tmp.inprogress-time > 6 min (360 seconds)","xml":"<switch test=\"`$tmp.inprogress-time > 360`\">","outputs":1,"x":1162,"y":287,"z":"22560c9c.507f14","wires":[["1349d992.d4dd66"]]},{"id":"1349d992.d4dd66","type":"outcomeFalse","name":"false ","xml":"<outcome value='false'>","comments":"","outputs":1,"x":1462,"y":285,"z":"22560c9c.507f14","wires":[["7daebc71.51c9d4"]]},{"id":"7daebc71.51c9d4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Still processing your previous request.'/>","comments":"","x":1646,"y":282,"z":"22560c9c.507f14","wires":[]},{"id":"b74ead9c.3101a","type":"set","name":"set: last-sub-action-status = InProgress","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"InProgress\" />","comments":"","x":1374,"y":548,"z":"22560c9c.507f14","wires":[]},{"id":"db63f043.6eab3","type":"execute","name":"execute: setTime(modify-timestamp)","xml":"<execute plugin=\"org.openecomp.sdnc.sli.plugin.ipAddressTools.IpAddressTool\" method=\"setTime\">\n\t<parameter name=\"ctxVariable\" value=\"service-data.oper-status.modify-timestamp\"/>","comments":"","outputs":1,"x":1366,"y":449,"z":"22560c9c.507f14","wires":[[]]},{"id":"fb1f199e.1ee6b8","type":"outcome","name":"GETRUNNINGCONFIG","xml":"<outcome value='GETRUNNINGCONFIG'>","comments":"","outputs":1,"x":982,"y":505,"z":"22560c9c.507f14","wires":[["b23ec1e7.d9a61"]]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_method_Generic_Evacuate_2.0.0.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_method_Generic_Evacuate_2.0.0.json new file mode 100644 index 000000000..89c1dfe05 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_method_Generic_Evacuate_2.0.0.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"a83fc34.6924bc","type":"dgstart","name":"DGSTART","outputs":1,"x":177,"y":100,"z":"f4cf2376.c92f4","wires":[["531a3928.a7bb9"]]},{"id":"531a3928.a7bb9","type":"service-logic","name":"Appc-API 2.0.0","module":"Appc-API","version":"2.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='2.0.0'>","outputs":1,"x":365,"y":101,"z":"f4cf2376.c92f4","wires":[["352baa79.80aee6"]]},{"id":"352baa79.80aee6","type":"method","name":"Generic_Evacuate","xml":"<method rpc='Generic_Evacuate' mode='sync'>\n","comments":"","outputs":1,"x":269,"y":231,"z":"f4cf2376.c92f4","wires":[["c748601f.21dab8"]]},{"id":"75bc6e9a.dd5c9","type":"execute","name":"execute: evacuate","xml":"<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$identity-url`\" />\n<parameter name=\"org.openecomp.appc.tenant.id\" value=\"`$tenant-id`\" />\n<parameter name=\"org.openecomp.appc.rebuildvm\" value=\"`$rebuild-vm`\" />\n<parameter name=\"org.openecomp.appc.targethost.id\" value=\"`$targethost-id`\" />\n\n","comments":"","outputs":1,"x":411,"y":523,"z":"f4cf2376.c92f4","wires":[["eb6db261.bc7b28","47819cc2.30deac"]]},{"id":"eb6db261.bc7b28","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":601,"y":571,"z":"f4cf2376.c92f4","wires":[["97cc1ef3.9ec4f"]]},{"id":"47819cc2.30deac","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":591,"y":462,"z":"f4cf2376.c92f4","wires":[["b00d6f4f.ffcb88"]]},{"id":"9b05722c.840468","type":"returnSuccess","name":"return success","xml":"<return status='success'>","comments":"","x":1095,"y":501,"z":"f4cf2376.c92f4","wires":[]},{"id":"b00d6f4f.ffcb88","type":"returnFailure","name":"return failure","xml":"<return status='failure'>","comments":"","x":753,"y":462,"z":"f4cf2376.c92f4","wires":[]},{"id":"c748601f.21dab8","type":"execute","name":"execute: flatAndAddToContext","xml":"<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />\n","comments":"","outputs":1,"x":293,"y":350,"z":"f4cf2376.c92f4","wires":[["75fbe835.95b8a8","b3f66172.ffd75"]]},{"id":"75fbe835.95b8a8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":229,"y":523,"z":"f4cf2376.c92f4","wires":[["75bc6e9a.dd5c9"]]},{"id":"b3f66172.ffd75","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":526,"y":287,"z":"f4cf2376.c92f4","wires":[["53bd08e0.7b10f"]]},{"id":"53bd08e0.7b10f","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":711,"y":287,"z":"f4cf2376.c92f4","wires":[]},{"id":"97cc1ef3.9ec4f","type":"switchNode","name":"switch","xml":"<switch test='`$EVACUATE_STATUS`'>\n","comments":"","outputs":1,"x":755,"y":571,"z":"f4cf2376.c92f4","wires":[["6c8bad6c.9d4904","629304e4.1ee93c"]]},{"id":"6c8bad6c.9d4904","type":"success","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":922,"y":502,"z":"f4cf2376.c92f4","wires":[["9b05722c.840468"]]},{"id":"629304e4.1ee93c","type":"outcome","name":"ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":922,"y":637,"z":"f4cf2376.c92f4","wires":[["8fdc00fc.50b118"]]},{"id":"be82d5f2.b11a9","type":"set","name":"set output message","xml":"<set>\n<parameter name='output.status.message' value=\"`$error-message`\" />\n","comments":"","x":1253,"y":636,"z":"f4cf2376.c92f4","wires":[]},{"id":"8fdc00fc.50b118","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1067,"y":636,"z":"f4cf2376.c92f4","wires":[["be82d5f2.b11a9","eca3cbfd.19b238"]]},{"id":"eca3cbfd.19b238","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1241,"y":697,"z":"f4cf2376.c92f4","wires":[]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-activate.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-activate.json new file mode 100644 index 000000000..5855fec9d --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-activate.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"b3e9ca3e.4155c8","type":"comment","name":"Service-Configuration-Activate","info":"","comments":"","x":1059.25,"y":84,"z":"2befdf15.e7ed7","wires":[]},{"id":"3f133fd0.beea1","type":"dgstart","name":"DGSTART","outputs":1,"x":187,"y":132.1111068725586,"z":"2befdf15.e7ed7","wires":[["8ce9de01.e9f6d"]]},{"id":"8ce9de01.e9f6d","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":338.1667022705078,"y":132.77776336669922,"z":"2befdf15.e7ed7","wires":[["8206b75c.b8a748"]]},{"id":"8206b75c.b8a748","type":"method","name":"method service-configuration-activate","xml":"<method rpc='service-configuration-activate' mode='sync'>\n","comments":"","outputs":1,"x":593.5000305175781,"y":132.44442749023438,"z":"2befdf15.e7ed7","wires":[["811b5d04.63a55"]]},{"id":"60c68922.bd8d38","type":"switchNode","name":"switch: order-status","xml":"<switch test=\"`$service-data.oper-status.order-status`\">\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Reserved\";\n\t\tenum \"Activated\";\n\t\tenum \"PendingDelete\";\n\t\tenum \"RequestFailed\";\n\t\tenum \"InProgressTimeout\";\n\t\tenum \"InProgress\";\n\t\tenum \"PendingActivate\";\n\t}\n}\n-->","comments":"","outputs":1,"x":201.26312255859375,"y":328.3101501464844,"z":"2befdf15.e7ed7","wires":[["40c323c3.f0454c","bbca989a.d459c8","d9754250.d9738","703c1455.ded06c"]]},{"id":"40c323c3.f0454c","type":"outcome","name":"Reserved","xml":"<outcome value='Reserved'>","comments":"","outputs":1,"x":407.4147033691406,"y":378.154296875,"z":"2befdf15.e7ed7","wires":[["c2961663.108ab8"]]},{"id":"c2961663.108ab8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":595.4318237304688,"y":342.6607666015625,"z":"2befdf15.e7ed7","wires":[["2a895dab.2d2642","9397a0c9.48f35","2cdf9781.2c80a8","b2ef72eb.cef11","e66a402d.e9c73","e22aac8d.ca469","d64207f5.1d98f8"]]},{"id":"9397a0c9.48f35","type":"set","name":"set: maintinance-indicator = N","xml":"<set>\n\t<parameter name='service-data.oper-status.maintenance-indicator' value='N' />","comments":"","x":862.19384765625,"y":554.8492431640625,"z":"2befdf15.e7ed7","wires":[]},{"id":"bffe67e0.0e1c18","type":"failure","name":"failure","xml":"<outcome value='failure'>","outputs":1,"x":994.10693359375,"y":637.1112060546875,"z":"2befdf15.e7ed7","wires":[["29f6c408.4597ac"]]},{"id":"29f6c408.4597ac","type":"block","name":"block : atomic","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1189.1068115234375,"y":636.1112060546875,"z":"2befdf15.e7ed7","wires":[["5ffc38ce.2ef528","9a7bb0c1.f0b4f"]]},{"id":"bbca989a.d459c8","type":"other","name":"Other","xml":"<outcome value='Other'>\n\n<!-- null, PendingActivate, Activated, Audited -->","comments":"","outputs":1,"x":292.7738952636719,"y":846.9207153320312,"z":"2befdf15.e7ed7","wires":[["a3228f41.ad99"]]},{"id":"2a895dab.2d2642","type":"set","name":"set: last-sub-action-status = InProgress","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"InProgress\" />","comments":"","x":882.4404296875,"y":375.44451904296875,"z":"2befdf15.e7ed7","wires":[]},{"id":"2cdf9781.2c80a8","type":"execute","name":"execute: setTime(modify-timestamp)","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"setTime\">\n\t<parameter name=\"ctxVariable\" value=\"service-data.oper-status.modify-timestamp\"/>","comments":"","outputs":1,"x":876.2498779296875,"y":427,"z":"2befdf15.e7ed7","wires":[[]]},{"id":"a3228f41.ad99","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid Order Status State'/>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":481.58331298828125,"y":843.3333129882812,"z":"2befdf15.e7ed7","wires":[]},{"id":"eb24c6eb.ab8b28","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"404\"/>\n\t<parameter name=\"error-message\" value=\"Service instance not found in config tree\"/>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":783.77392578125,"y":192.46835327148438,"z":"2befdf15.e7ed7","wires":[]},{"id":"5a9b740c.a08a8c","type":"outcomeFalse","name":"false","xml":"<outcome value=\"false\">","comments":"","outputs":1,"x":604.583251953125,"y":190.66664123535156,"z":"2befdf15.e7ed7","wires":[["eb24c6eb.ab8b28"]]},{"id":"5c9b5822.0afcb8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":598.9165649414062,"y":234.00001525878906,"z":"2befdf15.e7ed7","wires":[["60c68922.bd8d38"]]},{"id":"811b5d04.63a55","type":"switchNode","name":"switch: service-instance-id config == input","xml":"<switch test=\"`$service-configuration-operation-input.service-information.service-instance-id == $service-data.service-information.service-instance-id`\">","comments":"","outputs":1,"x":261.2498474121094,"y":209.99998474121094,"z":"2befdf15.e7ed7","wires":[["5a9b740c.a08a8c","5c9b5822.0afcb8"]]},{"id":"b2ef72eb.cef11","type":"save","name":"save: modify-timestamp","xml":"<save plugin=\"org.openecomp.sdnc.sli.resource.mdsal.ConfigResource\" resource=\"service-data\">\n\t\t<parameter name=\"service-data.oper-status.modify-timestamp\" value=\"`$service-data.oper-status.modify-timestamp`\" />","comments":"","outputs":1,"x":838.25,"y":490,"z":"2befdf15.e7ed7","wires":[[]]},{"id":"6ad3b297.a2fb1c","type":"failure","name":"success","xml":"<outcome value='success'>","comments":"","outputs":1,"x":991.2498779296875,"y":904,"z":"2befdf15.e7ed7","wires":[["ff3d958f.811738"]]},{"id":"ff3d958f.811738","type":"block","name":"block : atomic","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1193.91650390625,"y":901.3333740234375,"z":"2befdf15.e7ed7","wires":[["ebb07551.365d58","228ffb48.c84564"]]},{"id":"ebb07551.365d58","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />","comments":"","x":1500.2498779296875,"y":1010,"z":"2befdf15.e7ed7","wires":[]},{"id":"af386884.2ac718","type":"comment","name":"OrderStatus null - NO prepare done","info":"","comments":"","x":198.5,"y":913,"z":"2befdf15.e7ed7","wires":[]},{"id":"bc7aa1d2.0a627","type":"set","name":"set: order-status = RequestFailed","xml":"<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"RequestFailed\" />","comments":"","x":1584.2498779296875,"y":588,"z":"2befdf15.e7ed7","wires":[]},{"id":"e66a402d.e9c73","type":"GenericXML","name":"set: last-action, last-sub-action, last-svc-request-id, last-order-status","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"VsbgServiceActivateRequest\" />\n\t<parameter name=\"service-data.oper-status.last-sub-action\" value=\"`$service-configuration-operation-input.request-information.request-sub-action`\" />\n\t<parameter name=\"service-data.oper-status.last-svc-request-id\" value=\"`$service-configuration-operation-input.sdnc-request-header.svc-request-id`\" />\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\" />\n\n","comments":"","outputs":1,"x":961.2498779296875,"y":320,"z":"2befdf15.e7ed7","wires":[[]]},{"id":"eb1b467c.6f2918","type":"set","name":"set: order-status = PendingActivate","xml":"<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"PendingActivate\" />","comments":"","x":1554.2498779296875,"y":891,"z":"2befdf15.e7ed7","wires":[]},{"id":"138fb80d.270098","type":"comment","name":"Only Need Service_instance_id from input","info":"","comments":"","x":1239,"y":407,"z":"2befdf15.e7ed7","wires":[]},{"id":"e22aac8d.ca469","type":"configure","name":"configure: ConfigComponentAdaptor","xml":"<configure adaptor=\"org.openecomp.appc.ccadaptor.ConfigComponentAdaptor\" key=\"dummy\">\n\t<parameter name=\"action\" value=\"activate\"/>\n\t\n\n\t","comments":"","outputs":1,"x":726.25,"y":666,"z":"2befdf15.e7ed7","wires":[["bffe67e0.0e1c18","6ad3b297.a2fb1c"]]},{"id":"d64207f5.1d98f8","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"service-configuration-operation:Activate:Before Calling ConfigAdaptor\"/>\n<parameter name=\"field3\" value=\"`$service-data.oper-status.order-status`\"/>\n<parameter name=\"field4\" value=\"`$service-data.service-information.service-instance-id`\"/>\n<parameter name=\"field5\" value=\"`$service-data.vnf-config-information.vnf-type`\"/>\n\n<parameter name=\"field7\" value=\"`$service-data.vnf-config-information.vnf-host-ip-address`\"/>\n\n\n","comments":"","outputs":1,"x":789,"y":608,"z":"2befdf15.e7ed7","wires":[[]]},{"id":"5ffc38ce.2ef528","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"service-configuration-operation:Activate:After Calling ConfigAdaptor:Failure\"/>\n<parameter name=\"field3\" value=\"`$service-data.oper-status.order-status`\"/>\n<parameter name=\"field4\" value=\"`$service-data.service-information.service-instance-id`\"/>\n<parameter name=\"field5\" value=\"`$service-data.vnf-config-information.vnf-type`\"/>\n\n<parameter name=\"field7\" value=\"`$service-data.vnf-config-information.vnf-host-ip-address`\"/>\n\n\n","comments":"","outputs":1,"x":1494,"y":547,"z":"2befdf15.e7ed7","wires":[[]]},{"id":"228ffb48.c84564","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"service-configuration-operation:Activate:After Calling ConfigAdaptor:Success\"/>\n<parameter name=\"field3\" value=\"`$service-data.oper-status.order-status`\"/>\n<parameter name=\"field4\" value=\"`$service-data.service-information.service-instance-id`\"/>\n<parameter name=\"field5\" value=\"`$service-data.vnf-config-information.vnf-type`\"/>\n<parameter name=\"field7\" value=\"`$service-data.vnf-config-information.vnf-host-ip-address`\"/>\n\n\n","comments":"","outputs":1,"x":1471,"y":831,"z":"2befdf15.e7ed7","wires":[[]]},{"id":"d9754250.d9738","type":"outcome","name":"RequestFailed","xml":"<outcome value='RequestFailed'>","comments":"","outputs":1,"x":416.25,"y":315,"z":"2befdf15.e7ed7","wires":[["c2961663.108ab8"]]},{"id":"531e0377.38426c","type":"outcome","name":"InProgressTimeout","xml":"<outcome value='InProgressTimeout'>","comments":"","outputs":1,"x":437.25,"y":511,"z":"2befdf15.e7ed7","wires":[[]]},{"id":"f1b8d911.b461b8","type":"set","name":"set: last-sub-action-status = RequestFailed","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"RequestFailed\" />","comments":"","x":1611.25,"y":632,"z":"2befdf15.e7ed7","wires":[]},{"id":"806dae42.18b58","type":"comment","name":"LastSubAction status set on Notification","info":"","comments":"","x":1945.25,"y":630,"z":"2befdf15.e7ed7","wires":[]},{"id":"80611c27.37811","type":"comment","name":"Set Order Status on Notification","info":"","comments":"","x":1761.25,"y":801,"z":"2befdf15.e7ed7","wires":[]},{"id":"9a7bb0c1.f0b4f","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":1518.25,"y":685,"z":"2befdf15.e7ed7","wires":[]},{"id":"703c1455.ded06c","type":"outcome","name":"PendingActivate","xml":"<outcome value='PendingActivate'>","comments":"","outputs":1,"x":406.25,"y":431,"z":"2befdf15.e7ed7","wires":[["c2961663.108ab8"]]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-backup.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-backup.json new file mode 100644 index 000000000..43206ddba --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-backup.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"72300b6a.d66304","type":"comment","name":"Service-Configuration-Backup","info":"","comments":"","x":1466.25,"y":116,"z":"37e3acc8.561634","wires":[]},{"id":"6f0f1b54.abf674","type":"dgstart","name":"DGSTART","outputs":1,"x":85.5,"y":124.1111068725586,"z":"37e3acc8.561634","wires":[["3306295a.100926"]]},{"id":"3306295a.100926","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":254.6667022705078,"y":121.77776336669922,"z":"37e3acc8.561634","wires":[["a625e1b7.68491"]]},{"id":"a625e1b7.68491","type":"method","name":"method service-configuration-backup","xml":"<method rpc='service-configuration-backup' mode='sync'>\n","comments":"","outputs":1,"x":514.0000305175781,"y":116.44442749023438,"z":"37e3acc8.561634","wires":[["7cce1009.b1969"]]},{"id":"50956db6.420d34","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`$service-data.backup-information.service-instance-id`\"/>\n<parameter name=\"SERVICEDATAFILENAME\" value=\"`$service-data.backup-information.file-name`\"/>\n<parameter name=\"field4\" value=\"`$service-data.backup-information.file-type`\"/>\n<parameter name=\"field5\" value=\"`$service-configuration-operation-input.backup-information.service-instance-id`\"/>\n<parameter name=\"INPUTFILENAME\" value=\"`$service-configuration-operation-input.backup-information.file-name`\"/>\n<parameter name=\"field7\" value=\"`$service-configuration-operation-input.backup-information.file-type`\"/>\n<parameter name=\"field8\" value=\"`$service-data.appc-request-header.svc-action`\"/>\n<parameter name=\"field9\" value=\"`$service-data.vnf-config-information.vnf-host-ip-address`\"/>\n<parameter name=\"field10\" value=\"`$service-configuration-operation-input.appc-request-header.svc-action`\"/>\n<parameter name=\"field11\" value=\"`$service-configuration-operation-input.vnf-config-information.vnf-host-ip-address`\"/>\n","comments":"","outputs":1,"x":265.7498779296875,"y":381,"z":"37e3acc8.561634","wires":[[]]},{"id":"792c5a95.fa7b24","type":"GenericXML","name":"set: backup information and host IP","xml":"<set>\n\t<parameter name=\"service-data.backup-information.file-type\" value=\"`$service-configuration-operation-input.backup-information.file-type`\" />\n\t\n\t<parameter name=\"service-data.backup-information.file-name\" value=\"`$service-configuration-operation-input.backup-information.file-name`\" />\n\t\n\t<parameter name=\"service-data.backup-information.service-instance-id\" value=\"`$service-configuration-operation-input.backup-information.service-instance-id`\" />\n\t<parameter name=\"service-data.vnf-config-information.vnf-host-ip-address\" value=\"`$service-configuration-operation-input.vnf-config-information.vnf-host-ip-address`\" />\n\t<parameter name=\"service-data.service-information.service-instance-id\" value=\"`$service-configuration-operation-input.backup-information.service-instance-id`\"/>\n\t<parameter name=\"service-data.vnf-config-information.vendor\" value=\"`$service-configuration-operation-input.vnf-config-information.vendor`\" />\n\t\n\t\n\n","comments":"","outputs":1,"x":356,"y":339,"z":"37e3acc8.561634","wires":[[]]},{"id":"a358039.b124","type":"configure","name":"configure: ConfigComponentAdaptor","xml":"<configure adaptor=\"org.openecomp.appc.ccadaptor.ConfigComponentAdaptor\" key=\"dummy\">\n\t<parameter name=\"action\" value=\"`$service-data.appc-request-header.svc-action`\"/>\n\t\n\n\t","comments":"","outputs":1,"x":170,"y":1066,"z":"37e3acc8.561634","wires":[["cb278383.f55b3","640f72bc.e9135c"]]},{"id":"cb278383.f55b3","type":"failure","name":"failure","xml":"<outcome value='failure'>","outputs":1,"x":434,"y":1070,"z":"37e3acc8.561634","wires":[["92a5a578.2184b8"]]},{"id":"640f72bc.e9135c","type":"failure","name":"success","xml":"<outcome value='success'>","comments":"","outputs":1,"x":430,"y":1187,"z":"37e3acc8.561634","wires":[["31cc3939.22b816"]]},{"id":"31cc3939.22b816","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />","comments":"","x":640,"y":1190,"z":"37e3acc8.561634","wires":[]},{"id":"92a5a578.2184b8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":623,"y":1073,"z":"37e3acc8.561634","wires":[]},{"id":"ed24f120.cf4c8","type":"get-resource","name":"get-resource: A&AI Data","xml":"<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-name = $service-configuration-operation-input.service-information.service-instance-id\" pfx=\"tmp.aai-data\" >\n\n","comments":"","outputs":1,"x":821.5,"y":468,"z":"37e3acc8.561634","wires":[["2291f352.f5521c","4f2eb8f2.d537d8","448baa3.3f7e954"]]},{"id":"544d666.8d42598","type":"GenericXML","name":"set: last-action, last-sub-action, last-svc-request-id, last-order-status","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"VsbgServiceBackupRequest\" />\n\t<parameter name=\"service-data.oper-status.last-sub-action\" value=\"`$service-configuration-operation-input.request-information.request-sub-action`\" />\n\t<parameter name=\"service-data.oper-status.last-svc-request-id\" value=\"`$service-configuration-operation-input.sdnc-request-header.svc-request-id`\" />\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\" />\n\n","comments":"","outputs":1,"x":456.5,"y":426,"z":"37e3acc8.561634","wires":[[]]},{"id":"973644f5.342df8","type":"switchNode","name":"switch: request-sub-action","xml":"<switch test=\"`$service-configuration-operation-input.request-information.request-sub-action`\">\n<!--\n leaf request-sub-action {\n type enumeration {\n enum \"PREPARE\";\n enum \"ACTIVATE\";\n }\n }\n} \n-->","comments":"","outputs":1,"x":116.5,"y":645,"z":"37e3acc8.561634","wires":[["f556e104.4b20b","6709c25e.a37b9c"]]},{"id":"f556e104.4b20b","type":"other","name":"RESTOREBACKUP","xml":"<outcome value='RESTOREBACKUP'>","comments":"","outputs":1,"x":350.5,"y":626,"z":"37e3acc8.561634","wires":[["dd64e29e.a7665"]]},{"id":"172a6471.dec2ec","type":"switchNode","name":"switch: A&AI Prov Status","xml":"<switch test=\"`$tmp.aai-data.prov-status`\">\n\n","comments":"","outputs":1,"x":1174.5,"y":733,"z":"37e3acc8.561634","wires":[["359f8600.44336a","7eaece51.99dc2","6d8cd7bb.309a78","7d475d2b.45f914"]]},{"id":"6709c25e.a37b9c","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":325.5,"y":688,"z":"37e3acc8.561634","wires":[["a358039.b124"]]},{"id":"9af828ad.bb9858","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"404\"/>\n\t<parameter name=\"error-message\" value=\"The SBG is in service and the configuration cannot be restored back to the initial configuration.The SBG should be put in a maintenance state before restoring.\"/>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":1613.5,"y":747,"z":"37e3acc8.561634","wires":[]},{"id":"359f8600.44336a","type":"other","name":"PROV","xml":"<outcome value='PROV'>","comments":"","outputs":1,"x":1434.5,"y":749,"z":"37e3acc8.561634","wires":[["9af828ad.bb9858"]]},{"id":"7eaece51.99dc2","type":"other","name":"PREPROV","xml":"<outcome value='PREPROV'>","comments":"","outputs":1,"x":1445.5,"y":798,"z":"37e3acc8.561634","wires":[["a358039.b124"]]},{"id":"6d8cd7bb.309a78","type":"other","name":"NVTPROV","xml":"<outcome value='NVTPROV'>","comments":"","outputs":1,"x":1450.5,"y":851,"z":"37e3acc8.561634","wires":[["a358039.b124"]]},{"id":"7d475d2b.45f914","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1461.5,"y":904,"z":"37e3acc8.561634","wires":[["f2f5f030.526eb"]]},{"id":"f2f5f030.526eb","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"404\"/>\n\t<parameter name=\"error-message\" value=\"`'Restore configuration is not allowed. SBG Status is' + $tmp.aai-data.prov-status`\"/>\n\n<!--\n<parameter name=\"error-message\" value=\"Restore configuration is not allowed. Invalid A&AI Status\"/>\n-->\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":1634.5,"y":903,"z":"37e3acc8.561634","wires":[]},{"id":"7cce1009.b1969","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":67.5,"y":206,"z":"37e3acc8.561634","wires":[["50956db6.420d34","544d666.8d42598","5ea37258.1f5a0c","ed61d3df.d15ae","973644f5.342df8","792c5a95.fa7b24"]]},{"id":"5ea37258.1f5a0c","type":"set","name":"set: last-sub-action-status = InProgress","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"InProgress\" />","comments":"","x":364.5,"y":469,"z":"37e3acc8.561634","wires":[]},{"id":"ed61d3df.d15ae","type":"execute","name":"execute: setTime(modify-timestamp)","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"setTime\">\n\t<parameter name=\"ctxVariable\" value=\"service-data.oper-status.modify-timestamp\"/>","comments":"","outputs":1,"x":368.5,"y":516,"z":"37e3acc8.561634","wires":[[]]},{"id":"dd64e29e.a7665","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":571.5,"y":568,"z":"37e3acc8.561634","wires":[["ed24f120.cf4c8"]]},{"id":"4cc5dcc9.9cef84","type":"switchNode","name":"switch: A&AI In-Maint","xml":"<switch test=\"`$tmp.aai-data.in-maint`\">\n\n","comments":"","outputs":1,"x":1167.5,"y":654,"z":"37e3acc8.561634","wires":[["a0194efc.a2f1f"]]},{"id":"2291f352.f5521c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1048.5,"y":467,"z":"37e3acc8.561634","wires":[["685cea94.e1a364"]]},{"id":"4f2eb8f2.d537d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1044.5,"y":511,"z":"37e3acc8.561634","wires":[["e6099183.cff0e"]]},{"id":"685cea94.e1a364","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"404\"/>\n\t<parameter name=\"error-message\" value=\"SBG not found in A&AI.\"/>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":1243.5,"y":463,"z":"37e3acc8.561634","wires":[]},{"id":"a0194efc.a2f1f","type":"other","name":"false","xml":"<outcome value='false'>","comments":"","outputs":1,"x":1346.5,"y":654,"z":"37e3acc8.561634","wires":[["13a83c58.fc2154"]]},{"id":"13a83c58.fc2154","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"404\"/>\n\t<parameter name=\"error-message\" value=\"The SBG is in service and the configuration cannot be restored back to the initial configuration.The SBG should be put in a maintenance state before restoring.\"/>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":1513.5,"y":653,"z":"37e3acc8.561634","wires":[]},{"id":"448baa3.3f7e954","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":776.5,"y":580,"z":"37e3acc8.561634","wires":[["1bc02fac.ed8ea"]]},{"id":"1bc02fac.ed8ea","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":944.5,"y":581,"z":"37e3acc8.561634","wires":[["4cc5dcc9.9cef84","172a6471.dec2ec","3b0ebd45.85a932"]]},{"id":"3b0ebd45.85a932","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"PROVSTATUS\" value=\"`$tmp.aai-data.prov-status`\"/>\n<parameter name=\"INMAINT\" value=\"`$tmp.aai-data.in-maint`\"/>\n\n\n","comments":"","outputs":1,"x":1133.5,"y":579,"z":"37e3acc8.561634","wires":[[]]},{"id":"e6099183.cff0e","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"405\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.aai-data.error.message + '.Response code:' + $tmp.aai-data.error.http.response-code`\"/>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":1234,"y":511,"z":"37e3acc8.561634","wires":[]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-notification.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-notification.json new file mode 100644 index 000000000..430bc91f7 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-notification.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"d5b20eaa.df2d7","type":"comment","name":"Service-CONFIGURATION-NOTIFICATION","info":"","comments":"","x":787,"y":49,"z":"c2935c8.a850aa","wires":[]},{"id":"356bcada.a54386","type":"dgstart","name":"DGSTART","outputs":1,"x":96.7618408203125,"y":128.47621154785156,"z":"c2935c8.a850aa","wires":[["ebc2ed13.350ea"]]},{"id":"ebc2ed13.350ea","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":255,"y":129,"z":"c2935c8.a850aa","wires":[["a0592e1a.4e8a6"]]},{"id":"a0592e1a.4e8a6","type":"method","name":"method service-configuration-notification","xml":"<method rpc='service-configuration-notification' mode='sync'>\n","comments":"","outputs":1,"x":542.2380981445312,"y":125.80955505371094,"z":"c2935c8.a850aa","wires":[["31f55649.21899a"]]},{"id":"a6521c1b.8f751","type":"switchNode","name":"switch: service-instance-id already in config","xml":"<switch test=\"`$service-configuration-notification-input.service-information.service-instance-id == $service-data.service-information.service-instance-id`\">","comments":"","outputs":1,"x":367.3651123046875,"y":288.7200927734375,"z":"c2935c8.a850aa","wires":[["377966de.f0066a","447b2d6b.ec5a84"]]},{"id":"377966de.f0066a","type":"outcomeTrue","name":"outcome: true","xml":"<outcome value=\"true\">\n","outputs":1,"x":672.8729553222656,"y":273.23211669921875,"z":"c2935c8.a850aa","wires":[["d76b0bb4.11c118"]]},{"id":"447b2d6b.ec5a84","type":"outcomeFalse","name":"outcome: false","xml":"<outcome value=\"false\">","comments":"","outputs":1,"x":689.2182006835938,"y":179.3154754638672,"z":"c2935c8.a850aa","wires":[["4501a9b5.00b638"]]},{"id":"31f55649.21899a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":91.66802978515625,"y":197.87596130371094,"z":"c2935c8.a850aa","wires":[["d8530e1f.2b615","a6521c1b.8f751","16e0fd48.3fe683"]]},{"id":"d8530e1f.2b615","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n\n<parameter name=\"field3\" value=\"`$service-configuration-notification-input.response-code`\"/>\n<parameter name=\"field4\" value=\"`$service-configuration-notification-input.response-message`\"/>\n<parameter name=\"field5\" value=\"`$service-configuration-notification-input.svc-request-id`\"/>\n\n\n<parameter name=\"field6\" value=\"`$service-configuration-notification-input.service-information.service-type`\"/>\n<parameter name=\"field7\" value=\"`$service-data.service-information.service-instance-id`\"/>\n<parameter name=\"field8\" value=\"`$service-data.appc-request-header.svc-request-id`\"/>\n\n<!--\n<parameter name=\"field2\" value=\"service-configuration-notification\"/>\n<parameter name=\"field3\" value=\"`$service-data.service-information.service-instance-id`\"/>\n<parameter name=\"field4\" value=\"`$service-configuration-notification-input.response-code`\"/>\n<parameter name=\"field5\" value=\"`$service-data.request-information.request-action`\"/>\n<parameter name=\"field6\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n-->","comments":"","outputs":1,"x":289.81097412109375,"y":240.21363830566406,"z":"c2935c8.a850aa","wires":[[]]},{"id":"c7db723d.34c11","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":345.1700744628906,"y":504.00897216796875,"z":"c2935c8.a850aa","wires":[["bbe81125.eaf2d","8db26529.f57d68","d6aa913e.989d","12f56193.76876e"]]},{"id":"b3a1b84b.43c738","type":"switchNode","name":"switch: response code ","xml":"<switch test=\"`$service-configuration-notification-input.response-code`\">\n\n","comments":"","outputs":1,"x":177.44949340820312,"y":400.90478515625,"z":"c2935c8.a850aa","wires":[["c9771646.384a68","f8b4f8ca.d7ca88"]]},{"id":"c9771646.384a68","type":"success","name":"outcome: Success","xml":"<outcome value=\"Success\">","comments":"","outputs":1,"x":128.02099609375,"y":503.57139587402344,"z":"c2935c8.a850aa","wires":[["c7db723d.34c11"]]},{"id":"f8b4f8ca.d7ca88","type":"other","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":103.44949340820312,"y":922,"z":"c2935c8.a850aa","wires":[["3e2f33dd.6a236c"]]},{"id":"490e75b4.a0784c","type":"set","name":"set: order-status = Activated and A&AI Status =NVTPROV/CONFIGURED","xml":"<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Activated\" />\n\t<parameter name=\"tmp.aai-prov-status\" value=\"NVTPROV\" />\n\t<parameter name=\"tmp.aai-orch-status\" value=\"CONFIGURED\" />","comments":"","x":1355.2830810546875,"y":351.3018798828125,"z":"c2935c8.a850aa","wires":[]},{"id":"3e2f33dd.6a236c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":314.58807373046875,"y":918.9999389648438,"z":"c2935c8.a850aa","wires":[["1f7fafba.0add2","b94ddf6d.56216"]]},{"id":"b94ddf6d.56216","type":"configure","name":"SDN_GP Asynch Notification","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.async.AsyncResponseAdaptor\" key=\"CONFIG\">\n<parameter name=\"dummyparam\" value=\"test\"/>\n","comments":"","outputs":1,"x":672.9213256835938,"y":890.1514892578125,"z":"c2935c8.a850aa","wires":[[]]},{"id":"1f7fafba.0add2","type":"returnFailure","name":"return: failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='`$service-configuration-notification-input.response-code`'/>\n\t<parameter name='error-message' value='`$service-configuration-notification-input.response-message`'/>\n\t<parameter name='internal-error' value='false' />","comments":"","x":613.8312377929688,"y":932.0717163085938,"z":"c2935c8.a850aa","wires":[]},{"id":"4501a9b5.00b638","type":"returnFailure","name":"return: failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='1000'/>\n\t<parameter name='error-message' value='Service Instance Id not found'/>\n\t<parameter name='internal-error' value='true' />","comments":"","x":900.7353820800781,"y":178.5714569091797,"z":"c2935c8.a850aa","wires":[]},{"id":"ab4826ec.3cd828","type":"other","name":"outcome: Other","xml":"<outcome value=\"Other\">\n\n","outputs":1,"x":2149.3543663024902,"y":5396.627190113068,"z":"c2935c8.a850aa","wires":[["8984c5a6.ec0fe8"]]},{"id":"9f2faf6c.89703","type":"other","name":"outcome: ChangeLayer3ServiceActivateRequest","xml":"<outcome value=\"ChangeLayer3ServiceActivateRequest\">\n\n","outputs":1,"x":2294.2545433044434,"y":5233.393614768982,"z":"c2935c8.a850aa","wires":[["ede4a3de.8f776"]]},{"id":"7b44beed.e0798","type":"execute","name":"execute: EIPAM_UnassignIPAddress","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.EIPAM.EIPAMPlugin\" method=\"unassignIPAddress\">\n\t<parameter name=\"deleteEIPAM_status\" value=\"PENDING_DELETE\" />","outputs":1,"x":2874.284980773926,"y":5149.545325279236,"z":"c2935c8.a850aa","wires":[[]]},{"id":"ede4a3de.8f776","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2573.6183280944824,"y":5230.545227050781,"z":"c2935c8.a850aa","wires":[["7b44beed.e0798","3e190cb9.7f1f94","84da06b9.4d6678","d6d749b0.cfeac8","ef33ba15.3b9758"]]},{"id":"d6d749b0.cfeac8","type":"configure","name":"MSO Asynch Notification","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"MSO\">\n <parameter name=\"dummyparam\" value=\"test\"/>\n","outputs":1,"x":2844.2713928222656,"y":5300.871339797974,"z":"c2935c8.a850aa","wires":[[]]},{"id":"ef33ba15.3b9758","type":"returnSuccess","name":"return success","xml":" <return status=\"success\">\n \n","x":2816.120918273926,"y":5348.317549705505,"z":"c2935c8.a850aa","wires":[]},{"id":"84da06b9.4d6678","type":"save","name":"save: order-status = Activated","xml":"<save plugin=\"com.att.sdnctl.sli.resource.mdsal.ConfigResource\" resource=\"service-data\">\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Activated\" />","outputs":1,"x":2858.1866760253906,"y":5247.433511734009,"z":"c2935c8.a850aa","wires":[[]]},{"id":"3e190cb9.7f1f94","type":"set","name":"set: order-status = Activated","xml":"<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Activated\" />","x":2850.559804916382,"y":5201.139886856079,"z":"c2935c8.a850aa","wires":[]},{"id":"8984c5a6.ec0fe8","type":"returnFailure","name":"return failure","xml":" <return status=\"failure\">\n\t<parameter name='error-code' value='2000'/>\n\t<parameter name='error-message' value='Invalid Request `$service-data.request-information.request-action`'/>\n\t<parameter name='internal-error' value='true'/>\n \n","x":2462.4364824295044,"y":5398.090530395508,"z":"c2935c8.a850aa","wires":[]},{"id":"bbe81125.eaf2d","type":"configure","name":"SDN_GP Asynch Notification","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.async.AsyncResponseAdaptor\" key=\"CONFIG\">\n<parameter name=\"dummyparam\" value=\"test\"/>","comments":"","outputs":1,"x":827.0951843261719,"y":784.1428833007812,"z":"c2935c8.a850aa","wires":[[]]},{"id":"16e0fd48.3fe683","type":"set","name":"set:service-data based on input","xml":"<set>\n<parameter name=\"service-data.appc-request-header.svc-request-id\" value=\"`$service-configuration-notification-input.svc-request-id`\" />\n\n<!--\n<parameter name=\"service-data.service-information.service-instance-id\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\" />\n-->\n<parameter name=\"service-data.service-information.service-type\" value=\"`$service-configuration-notification-input.service-information.service-type`\" />\n\t\n\n\t\n\t\n\t","comments":"","x":371,"y":197,"z":"c2935c8.a850aa","wires":[]},{"id":"8db26529.f57d68","type":"returnSuccess","name":"return success","xml":"<return status=\"success\">\n<parameter name='error-code' value='200'/>\n<parameter name='error-message' value='`$service-configuration-notification-input.response-message`'/>\n \n","comments":"","x":789.9494934082031,"y":857,"z":"c2935c8.a850aa","wires":[]},{"id":"d6aa913e.989d","type":"switchNode","name":"switch: last-sub-action","xml":"<switch test=\"`$service-data.oper-status.last-sub-action`\">\n","comments":"","outputs":1,"x":586.4494934082031,"y":506,"z":"c2935c8.a850aa","wires":[["ab5c4a39.56b068","2952075e.f8cb78"]]},{"id":"ab5c4a39.56b068","type":"success","name":"outcome: ACTIVATE","xml":"<outcome value=\"ACTIVATE\">","comments":"","outputs":1,"x":825.4494934082031,"y":479,"z":"c2935c8.a850aa","wires":[["54aa365b.8a9b88"]]},{"id":"2952075e.f8cb78","type":"success","name":"outcome: RESTOREBACKUP","xml":"<outcome value=\"RESTOREBACKUP\">","comments":"","outputs":1,"x":832.4494934082031,"y":613,"z":"c2935c8.a850aa","wires":[["9e497ad3.6c9b08"]]},{"id":"54aa365b.8a9b88","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1027.4494934082031,"y":478,"z":"c2935c8.a850aa","wires":[["490e75b4.a0784c","6ebffec.ea695"]]},{"id":"9e497ad3.6c9b08","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1058.4494934082031,"y":617,"z":"c2935c8.a850aa","wires":[["27b70ff2.42077"]]},{"id":"c7e2d0f5.74988","type":"set","name":"set: A&AI Prov Status to PREPROV/UNCONFIGURED","xml":"<set>\n\t<parameter name=\"tmp.aai-prov-status\" value=\"PREPROV\" />\n\t<parameter name=\"tmp.aai-orch-status\" value=\"UNCONFIGURED\" />","comments":"","x":2179.449493408203,"y":538,"z":"c2935c8.a850aa","wires":[]},{"id":"27b70ff2.42077","type":"switchNode","name":"switch: backup-information.file-type","xml":"<switch test=\"`$service-data.backup-information.file-type`\">\n","comments":"","outputs":1,"x":1316.4494934082031,"y":620,"z":"c2935c8.a850aa","wires":[["36ce6a3d.01f3c6","bb6e3f9f.c5558"]]},{"id":"36ce6a3d.01f3c6","type":"success","name":"outcome: InitialConfig","xml":"<outcome value=\"InitialConfig\">","comments":"","outputs":1,"x":1611.4494934082031,"y":593,"z":"c2935c8.a850aa","wires":[["1393e777.b727f9"]]},{"id":"bb6e3f9f.c5558","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":1606.4494934082031,"y":668,"z":"c2935c8.a850aa","wires":[["691391c0.2a05a"]]},{"id":"8fec3fe2.7fe13","type":"call","name":"call: update A&AI","xml":"<call module=\"Appc-API\" rpc=\"update-aai\" mode=\"sync\">","comments":"","outputs":1,"x":2043.449462890625,"y":422,"z":"c2935c8.a850aa","wires":[[]]},{"id":"1393e777.b727f9","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1830.4494934082031,"y":593,"z":"c2935c8.a850aa","wires":[["c7e2d0f5.74988","17a25d0e.4b5ca3","c10e674c.dfbc08","6d36bcf0.c8a684"]]},{"id":"17a25d0e.4b5ca3","type":"call","name":"call: update A&AI for restore","xml":"<call module=\"Appc-API\" rpc=\"update-aai-sbg\" mode=\"sync\">","comments":"","outputs":1,"x":2114.449462890625,"y":724,"z":"c2935c8.a850aa","wires":[[]]},{"id":"691391c0.2a05a","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Backup Config=Downloaded Config, it is assumed that the status in AnAI is NVTPROV so no update is necessary\"/>\n\n\n","comments":"","outputs":1,"x":1806.4495239257812,"y":664,"z":"c2935c8.a850aa","wires":[[]]},{"id":"4eb6e037.dbaf5","type":"set","name":"set: order-status = Reserved ","xml":"<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Reserved\" />\n","comments":"","x":2816.449493408203,"y":585,"z":"c2935c8.a850aa","wires":[]},{"id":"c10e674c.dfbc08","type":"switchNode","name":"switch: order-status","xml":"<switch test=\"`$service-data.oper-status.order-status`\">\n<!--\nleaf order-status { \n\ttype enumeration { \n\t\tenum \"Reserved\";\n\t\tenum \"Activated\";\n\t\tenum \"PendingDelete\";\n\t\tenum \"RequestFailed\";\n\t\tenum \"InProgressTimeout\";\n\t\tenum \"InProgress\";\n\t} \n} \n-->","comments":"","outputs":1,"x":2132.449493408203,"y":586,"z":"c2935c8.a850aa","wires":[["913bd3d3.04dad","92ac0814.df8778"]]},{"id":"913bd3d3.04dad","type":"success","name":"outcome: Activated","xml":"<outcome value=\"Activated\">","comments":"","outputs":1,"x":2366.449493408203,"y":583,"z":"c2935c8.a850aa","wires":[["436e6ada.44f7b4"]]},{"id":"436e6ada.44f7b4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2566.449493408203,"y":582,"z":"c2935c8.a850aa","wires":[["4eb6e037.dbaf5","888848fc.c44698"]]},{"id":"65fee45.b12251c","type":"comment","name":"Lastsubactionstatus updated in Appc","info":"","comments":"","x":1445.449462890625,"y":276,"z":"c2935c8.a850aa","wires":[]},{"id":"12f56193.76876e","type":"set","name":"set: last-sub-action-status","xml":"<set>\n<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"Success\" />\n\n","comments":"","x":821.4494934082031,"y":730,"z":"c2935c8.a850aa","wires":[]},{"id":"b0f15339.b347b","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Dont update Order Status\"/>\n<parameter name=\"field3\" value=\"`$service-data.oper-status.order-status`\"/>\n\n\n","comments":"","outputs":1,"x":2730.449493408203,"y":717,"z":"c2935c8.a850aa","wires":[[]]},{"id":"92ac0814.df8778","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":2362.449493408203,"y":720,"z":"c2935c8.a850aa","wires":[["be0c9c33.2fb04"]]},{"id":"3fdf2b46.361354","type":"execute","name":"execute: setTime(modify-timestamp)","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"setTime\">\n\t<parameter name=\"ctxVariable\" value=\"service-data.oper-status.modify-timestamp\"/>","comments":"","outputs":1,"x":1104.4494934082031,"y":270,"z":"c2935c8.a850aa","wires":[[]]},{"id":"d76b0bb4.11c118","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":842.4494934082031,"y":272,"z":"c2935c8.a850aa","wires":[["3fdf2b46.361354","b3a1b84b.43c738"]]},{"id":"888848fc.c44698","type":"set","name":"set: last-order-status ","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\" />","comments":"","x":2792.449493408203,"y":530,"z":"c2935c8.a850aa","wires":[]},{"id":"be0c9c33.2fb04","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2542.449493408203,"y":720,"z":"c2935c8.a850aa","wires":[["b0f15339.b347b"]]},{"id":"6d36bcf0.c8a684","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"CALLING AAIUPDATE\"/>\n<parameter name=\"field3\" value=\"`$service-data.oper-status.order-status`\"/>\n\n\n","comments":"","outputs":1,"x":2109.4495239257812,"y":654,"z":"c2935c8.a850aa","wires":[[]]},{"id":"6ebffec.ea695","type":"switchNode","name":"switch: update-configuration","xml":"<switch test=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[0].update-configuration_length`\">\n","comments":"","outputs":1,"x":1292,"y":422,"z":"c2935c8.a850aa","wires":[["9cf5bbff.14b8e8","47a88695.0e6938","65a8c6df.0c6b58"]]},{"id":"9cf5bbff.14b8e8","type":"other","name":"outcome: NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1519,"y":425,"z":"c2935c8.a850aa","wires":[["505e7219.efb9dc"]]},{"id":"505e7219.efb9dc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1817,"y":425,"z":"c2935c8.a850aa","wires":[["8fec3fe2.7fe13"]]},{"id":"47a88695.0e6938","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":1525,"y":522,"z":"c2935c8.a850aa","wires":[["1e1d5f8c.03063"]]},{"id":"1e1d5f8c.03063","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Update Configuration populated\"/>\n<parameter name=\"UPDATECONFIGLEN\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[0].update-configuration_length`\"/>\n\n\n","comments":"","outputs":1,"x":1696,"y":523,"z":"c2935c8.a850aa","wires":[[]]},{"id":"65a8c6df.0c6b58","type":"other","name":"outcome: Length=0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1554,"y":468,"z":"c2935c8.a850aa","wires":[["505e7219.efb9dc"]]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-operation.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-operation.json new file mode 100644 index 000000000..ef2d0e482 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-operation.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"b3509dbf.084df","type":"comment","name":"service-configuration-operation","info":"","comments":"","x":1233.3332824707031,"y":125.33335876464844,"z":"57f142c6.1f478c","wires":[]},{"id":"337f0433.e9ec7c","type":"dgstart","name":"DGSTART","outputs":1,"x":93.66665649414062,"y":99.66668701171875,"z":"57f142c6.1f478c","wires":[["d12b2f59.1acc5"]]},{"id":"d12b2f59.1acc5","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":274.66668701171875,"y":99,"z":"57f142c6.1f478c","wires":[["99a183f8.1b55b"]]},{"id":"99a183f8.1b55b","type":"method","name":"method service-configuration-operation","xml":"<method rpc='service-configuration-operation' mode='sync'>\n","comments":"","outputs":1,"x":549.3333435058594,"y":104.00001525878906,"z":"57f142c6.1f478c","wires":[["da27abb6.e9a128"]]},{"id":"2c3a60cb.7af1c","type":"switchNode","name":"switch: request-action","xml":"<switch test=\"`$service-configuration-operation-input.request-information.request-action`\">\n<!--\n leaf request-action {\n type enumeration {\n enum \"VsbgServiceActivateRequest\";\n }\n }\n}\n-->\n\n","comments":"","outputs":1,"x":159.83340454101562,"y":663.0000305175781,"z":"57f142c6.1f478c","wires":[["ce54964e.79ea38","fe8b9eb9.73ad2","78d15bd7.84caa4"]]},{"id":"ce54964e.79ea38","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":381.1743469238281,"y":1447.136474609375,"z":"57f142c6.1f478c","wires":[["f098f080.0fb19"]]},{"id":"fe8b9eb9.73ad2","type":"outcome","name":"VsbgServiceActivateRequest","xml":"<outcome value='VsbgServiceActivateRequest'>","comments":"","outputs":1,"x":477.8334655761719,"y":646.416748046875,"z":"57f142c6.1f478c","wires":[["fa999334.02fee"]]},{"id":"f098f080.0fb19","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='req-action not recognized'/>\n","comments":"","x":571.2252502441406,"y":1447.0010986328125,"z":"57f142c6.1f478c","wires":[]},{"id":"87a37d2a.6ca3e","type":"call","name":"call: service-configuration-activate","xml":"<call module=\"Appc-API\" rpc=\"service-configuration-activate\" mode=\"sync\">","comments":"","outputs":1,"x":1874.4999084472656,"y":637.4166259765625,"z":"57f142c6.1f478c","wires":[[]]},{"id":"fa999334.02fee","type":"switchNode","name":"switch: request-sub-action","xml":"<switch test=\"`$service-configuration-operation-input.request-information.request-sub-action`\">\n<!--\n leaf request-sub-action {\n type enumeration {\n enum \"PREPARE\";\n enum \"ACTIVATE\";\n }\n }\n} \n-->","comments":"","outputs":1,"x":761.1110534667969,"y":645.2222900390625,"z":"57f142c6.1f478c","wires":[["100480f1.8fdcef","1ab975fc.edd7ca","7c055852.c45578"]]},{"id":"100480f1.8fdcef","type":"outcome","name":"PREPARE","xml":"<outcome value='PREPARE'>","comments":"","outputs":1,"x":994.3333435058594,"y":406.666748046875,"z":"57f142c6.1f478c","wires":[["cc499bb2.e44078"]]},{"id":"1ab975fc.edd7ca","type":"other","name":"ACTIVATE","xml":"<outcome value='ACTIVATE'>","comments":"","outputs":1,"x":1025.6663513183594,"y":629.6666259765625,"z":"57f142c6.1f478c","wires":[["21e1499f.20daa6"]]},{"id":"d36bac8b.003aa","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"service-configuration-operation\"/>\n<parameter name=\"field3\" value=\"`$service-configuration-operation-input.appc-request-header.svc-action`\"/>\n<parameter name=\"field4\" value=\"`$service-configuration-operation-input.appc-request-header.svc-request-id`\"/>\n<parameter name=\"field5\" value=\"`$service-configuration-operation-input.service-information.service-instance-id`\"/>\n<parameter name=\"field6\" value=\"`$service-configuration-operation-input.request-information.request-id`\"/>\n<parameter name=\"field7\" value=\"`$service-configuration-operation-input.request-information.request-action`\"/>\n<parameter name=\"field8\" value=\"`$service-configuration-operation-input.request-information.source`\"/>\n<parameter name=\"field9\" value=\"`$service-configuration-operation-input.service-information.service-instance-id`\"/>\n<parameter name=\"field10\" value=\"`$service-configuration-operation-input.service-information.service-type`\"/>\n<parameter name=\"field11\" value=\"`$service-configuration-operation-input.request-information.request-sub-action`\"/>","comments":"","outputs":1,"x":264.6667175292969,"y":213.33335876464844,"z":"57f142c6.1f478c","wires":[[]]},{"id":"da27abb6.e9a128","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":77,"y":204.33335876464844,"z":"57f142c6.1f478c","wires":[["d36bac8b.003aa","50935a83.2d88f4","fad64f0.0ca0eb"]]},{"id":"50935a83.2d88f4","type":"set","name":"set:service-data based on input: request-id ,svc-request-id & service-type","xml":"<set>\n\t\n\t<parameter name=\"service-data.request-information.request-id\" value=\"`$service-configuration-operation-input.request-information.request-id`\" />\n\t<parameter name=\"service-data.request-information.notification-url\" value=\"`$service-configuration-operation-input.request-information.notification-url`\" />\n\t<parameter name=\"service-data.request-information.request-action\" value=\"`$service-configuration-operation-input.request-information.request-action`\" />\n\t<parameter name=\"service-data.request-information.source\" value=\"`$service-configuration-operation-input.request-information.source`\" />\n\t<parameter name=\"service-data.request-information.order-number\" value=\"`$service-configuration-operation-input.request-information.order-number`\" />\n\t<parameter name=\"service.request-information.order-version\" value=\"`$service-configuration-operation-input.request-information.order-version`\" />\n\t<parameter name=\"service-data.appc-request-header.svc-request-id\" value=\"`$service-configuration-operation-input.appc-request-header.svc-request-id`\" />\n\t<parameter name=\"service-data.appc-request-header.svc-action\" value=\"`$service-configuration-operation-input.appc-request-header.svc-action`\" />\n\t<parameter name=\"service-data.appc-request-header.svc-notification-url\" value=\"`$service-configuration-operation-input.appc-request-header.svc-notification-url`\" />\n\t<!-- \n\t<parameter name=\"service-data.service-information.service-instance-id\" value=\"`$service-configuration-operation-input.service-information.service-instance-id`\" />\n\t-->\n\t<parameter name=\"service-data.service-information.service-type\" value=\"`$service-configuration-operation-input.service-information.service-type`\" />\n\t<parameter name=\"service-data.request-information.request-sub-action\" value=\"`$service-configuration-operation-input.request-information.request-sub-action`\" />\n\n\t\n\t<!-- set service-data based on input only for Prepare\n\t<parameter name=\"service-data.\" value=\"`$service-configuration-operation-input.`\" />\n\t-->\n\t","comments":"","x":470.3333435058594,"y":178.00003051757812,"z":"57f142c6.1f478c","wires":[]},{"id":"e1359cee.43a9f","type":"call","name":"call: service-configuration-prepare","xml":"<call module=\"Appc-API\" rpc=\"service-configuration-prepare\" mode=\"sync\">","comments":"","outputs":1,"x":1868.8332824707031,"y":399.3333740234375,"z":"57f142c6.1f478c","wires":[[]]},{"id":"1a154772.444899","type":"call","name":"call: service-configuration-backup","xml":"<call module=\"Appc-API\" rpc=\"service-configuration-backup\" mode=\"sync\">","comments":"","outputs":1,"x":1895.8332824707031,"y":1118.3333129882812,"z":"57f142c6.1f478c","wires":[[]]},{"id":"fad64f0.0ca0eb","type":"switchNode","name":"switch: last-sub-action-status","xml":"<switch test=\"`$service-data.oper-status.last-sub-action-status`\">\n","comments":"","outputs":1,"x":332.8333435058594,"y":257.33335876464844,"z":"57f142c6.1f478c","wires":[["a0cc216d.461e7","17e973e8.0fc1ac"]]},{"id":"a0cc216d.461e7","type":"outcome","name":"InProgress","xml":"<outcome value='InProgress'>","comments":"","outputs":1,"x":556.8333435058594,"y":257.33335876464844,"z":"57f142c6.1f478c","wires":[["c17c511.dddb7b"]]},{"id":"c17c511.dddb7b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":725.8333435058594,"y":255.33335876464844,"z":"57f142c6.1f478c","wires":[["db7678e6.fdbd48","2bea4db9.267f82","8ea5da83.26cac8","2c3a60cb.7af1c"]]},{"id":"db7678e6.fdbd48","type":"execute","name":"execute getTimeDifference","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"getTimeDifference\">\n\t<parameter name=\"inDate\" value=\"`$service-data.oper-status.modify-timestamp`\"/>\n\t<parameter name=\"ctxTempVariable\" value=\"tmp.inprogress-time\"/>","comments":"","outputs":1,"x":950.8333435058594,"y":172.33335876464844,"z":"57f142c6.1f478c","wires":[[]]},{"id":"2bea4db9.267f82","type":"switchNode","name":"switch: tmp.inprogress-time > 6 min (360 seconds)","xml":"<switch test=\"`$tmp.inprogress-time > 360`\">","comments":"","outputs":1,"x":1035.8333435058594,"y":217.33335876464844,"z":"57f142c6.1f478c","wires":[["79a11948.fe39d8"]]},{"id":"8ea5da83.26cac8","type":"set","name":"set: last-sub-action-status = InProgressTimeout","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"InProgressTimeout\" />","comments":"","x":1018.8333435058594,"y":268.33335876464844,"z":"57f142c6.1f478c","wires":[]},{"id":"79a11948.fe39d8","type":"outcomeFalse","name":"false ","xml":"<outcome value='false'>","comments":"","outputs":1,"x":1319.8333435058594,"y":214.33335876464844,"z":"57f142c6.1f478c","wires":[["a7a2d095.18535"]]},{"id":"a7a2d095.18535","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Still processing your previous request.'/>","comments":"","x":1488.8333435058594,"y":214.33335876464844,"z":"57f142c6.1f478c","wires":[]},{"id":"17e973e8.0fc1ac","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":552.8333435058594,"y":305.33335876464844,"z":"57f142c6.1f478c","wires":[["2c3a60cb.7af1c"]]},{"id":"78d15bd7.84caa4","type":"outcome","name":"VsbgServiceBackupRequest","xml":"<outcome value='VsbgServiceBackupRequest'>","comments":"","outputs":1,"x":430.8333435058594,"y":1239.3333740234375,"z":"57f142c6.1f478c","wires":[["ea4d78dd.6dcd78"]]},{"id":"ea4d78dd.6dcd78","type":"switchNode","name":"switch: request-sub-action","xml":"<switch test=\"`$service-configuration-operation-input.request-information.request-sub-action`\">\n<!--\n leaf request-sub-action {\n type enumeration {\n enum \"PREPARE\";\n enum \"ACTIVATE\";\n }\n }\n} \n-->","comments":"","outputs":1,"x":708.8333435058594,"y":1233.3333740234375,"z":"57f142c6.1f478c","wires":[["84453abd.a768b8","28792623.ef98aa","9787f6e7.6ccf78"]]},{"id":"98a0765b.ccc488","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='req-sub-action not recognized'/>\n","comments":"","x":1231.8333435058594,"y":946.3333740234375,"z":"57f142c6.1f478c","wires":[]},{"id":"7c055852.c45578","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":994.8333435058594,"y":948.3333740234375,"z":"57f142c6.1f478c","wires":[["98a0765b.ccc488"]]},{"id":"84453abd.a768b8","type":"outcome","name":"BACKUP","xml":"<outcome value='BACKUP'>","comments":"","outputs":1,"x":961.8333435058594,"y":1162.3333740234375,"z":"57f142c6.1f478c","wires":[["958a3503.5b2248"]]},{"id":"9787f6e7.6ccf78","type":"other","name":"RESTOREBACKUP","xml":"<outcome value='RESTOREBACKUP'>","comments":"","outputs":1,"x":993.8333435058594,"y":1301.3333740234375,"z":"57f142c6.1f478c","wires":[["424610c8.86c17"]]},{"id":"28792623.ef98aa","type":"other","name":"DELETEBACKUP","xml":"<outcome value='DELETEBACKUP'>","comments":"","outputs":1,"x":987.8333435058594,"y":1226.3333740234375,"z":"57f142c6.1f478c","wires":[["958a3503.5b2248"]]},{"id":"cc499bb2.e44078","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1196.8334045410156,"y":404,"z":"57f142c6.1f478c","wires":[["5a5419b8.fc9918","31add50b.19bf1a"]]},{"id":"5a5419b8.fc9918","type":"switchNode","name":"switch: vnf-type","xml":"<switch test=\"`$vnf-type`\">\n\n\n\n","comments":"","outputs":1,"x":1390.8333740234375,"y":445.99998474121094,"z":"57f142c6.1f478c","wires":[["1e58ebd8.081eb4","954b003f.67029","9a9bdf49.8ba78"]]},{"id":"91388dfc.6747d","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1616.8334045410156,"y":530,"z":"57f142c6.1f478c","wires":[["24a0fbd6.988d54"]]},{"id":"24a0fbd6.988d54","type":"call","name":"call: service-configuration-prepare-sbc","xml":"<call module=\"Appc-API\" rpc=\"service-configuration-prepare-sbc\" mode=\"sync\">","comments":"","outputs":1,"x":1865.8334045410156,"y":531,"z":"57f142c6.1f478c","wires":[[]]},{"id":"21e1499f.20daa6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1200.8334045410156,"y":632,"z":"57f142c6.1f478c","wires":[["e4abddd7.b20bb","644356b8.a81388"]]},{"id":"e4abddd7.b20bb","type":"switchNode","name":"switch: vnf-type","xml":"<switch test=\"`$vnf-type`\">\n\n\n","comments":"","outputs":1,"x":1407.8333740234375,"y":687.9999847412109,"z":"57f142c6.1f478c","wires":[["a8bcf335.4b6e2","2095438c.a75e9c","bb4c3fe0.cf855"]]},{"id":"b625abfb.61b5b8","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1612.8334045410156,"y":865,"z":"57f142c6.1f478c","wires":[["8f4ded84.df145"]]},{"id":"8f4ded84.df145","type":"call","name":"call: service-configuration-activate-sbc","xml":"<call module=\"Appc-API\" rpc=\"service-configuration-activate-sbc\" mode=\"sync\">","comments":"","outputs":1,"x":1870.8334045410156,"y":865,"z":"57f142c6.1f478c","wires":[[]]},{"id":"5ed23ab3.8f89b4","type":"switchNode","name":"switch: vnf-type","xml":"<switch test=\"`$service-configuration-operation-input.vnf-config-information.vnf-type`\">\n\n\n","comments":"","outputs":1,"x":1426.8333435058594,"y":1180,"z":"57f142c6.1f478c","wires":[["9e313562.3da0e8","e1d6aa6b.f84178","90f39d1d.80f2e","49273b18.628b74"]]},{"id":"9e313562.3da0e8","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1603.8334045410156,"y":1225.9999389648438,"z":"57f142c6.1f478c","wires":[["cacc58e7.d542e8"]]},{"id":"cacc58e7.d542e8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='req-sub-action not recognized'/>\n","comments":"","x":1767.8334045410156,"y":1226.9999389648438,"z":"57f142c6.1f478c","wires":[]},{"id":"958a3503.5b2248","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1164.8333435058594,"y":1182,"z":"57f142c6.1f478c","wires":[["5ed23ab3.8f89b4","74cd7b8e.ce5be4"]]},{"id":"424610c8.86c17","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1201.8333435058594,"y":1301,"z":"57f142c6.1f478c","wires":[["71166b82.41c6b4","12ceb3cb.d87cac"]]},{"id":"71166b82.41c6b4","type":"switchNode","name":"switch: vnf-type","xml":"<switch test=\"`$service-configuration-operation-input.vnf-config-information.vnf-type`\">\n\n\n","comments":"","outputs":1,"x":1403.8333740234375,"y":1401.999984741211,"z":"57f142c6.1f478c","wires":[["5c593415.be3a7c","e4202ecb.1ac4c","ee07041c.0ca338","817e32b6.557fd"]]},{"id":"9f48a4dd.288c18","type":"other","name":"ISBC","xml":"<outcome value='ISBC'>","comments":"","outputs":1,"x":1610.8334045410156,"y":1359.9999389648438,"z":"57f142c6.1f478c","wires":[["cf377cc7.2c72f"]]},{"id":"5c593415.be3a7c","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1593.8334045410156,"y":1592.9999389648438,"z":"57f142c6.1f478c","wires":[["e23a5427.dc90c8"]]},{"id":"912b075b.2b9118","type":"call","name":"call: service-configuration-backup","xml":"<call module=\"Appc-API\" rpc=\"service-configuration-backup\" mode=\"sync\">","comments":"","outputs":1,"x":1862.8334045410156,"y":1496.9999389648438,"z":"57f142c6.1f478c","wires":[[]]},{"id":"cf377cc7.2c72f","type":"call","name":"call: service-configuration-restorebkup-sbc","xml":"<call module=\"Appc-API\" rpc=\"service-configuration-restorebkup-sbc\" mode=\"sync\">","comments":"","outputs":1,"x":1987.8334045410156,"y":1357.9999389648438,"z":"57f142c6.1f478c","wires":[[]]},{"id":"e0db2af5.61e098","type":"comment","name":"Use vnftype from config tree","info":"","comments":"","x":1106.8334045410156,"y":586,"z":"57f142c6.1f478c","wires":[]},{"id":"a8bcf335.4b6e2","type":"outcome","name":"N-SBG","xml":"<outcome value='N-SBG'>\n","comments":"","outputs":1,"x":1616.5499572753906,"y":602.8833618164062,"z":"57f142c6.1f478c","wires":[["87a37d2a.6ca3e"]]},{"id":"6947ff76.6c01d","type":"outcome","name":"TSBC","xml":"<outcome value='TSBC'>\n","comments":"","outputs":1,"x":1612,"y":1316.3333587646484,"z":"57f142c6.1f478c","wires":[["cf377cc7.2c72f"]]},{"id":"31add50b.19bf1a","type":"set","name":"set VNF-Type","xml":"<set>\n<parameter name=\"vnf-type\" value=\"`$service-configuration-operation-input.vnf-config-parameters-list.vnf-config-parameters[0].vnf-type`\" />\n\t\n","comments":"","x":1403,"y":374.33335876464844,"z":"57f142c6.1f478c","wires":[]},{"id":"644356b8.a81388","type":"set","name":"set VNF-Type","xml":"<set>\n<parameter name=\"vnf-type\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[0].vnf-type`\" />\n\t\n","comments":"","x":1424,"y":596.3333587646484,"z":"57f142c6.1f478c","wires":[]},{"id":"74cd7b8e.ce5be4","type":"set","name":"set VNF-Type","xml":"<set>\n<parameter name=\"vnf-type\" value=\"`$service-configuration-operation-input.vnf-config-information.vnf-type`\" />\n\t\n","comments":"","x":1421,"y":1112.3333587646484,"z":"57f142c6.1f478c","wires":[]},{"id":"12ceb3cb.d87cac","type":"set","name":"set VNF-Type","xml":"<set>\n<parameter name=\"vnf-type\" value=\"`$service-configuration-operation-input.vnf-config-information.vnf-type`\" />\n\t\n","comments":"","x":1410,"y":1300.3333587646484,"z":"57f142c6.1f478c","wires":[]},{"id":"e4202ecb.1ac4c","type":"outcome","name":"N-SBG","xml":"<outcome value='N-SBG'>\n","comments":"","outputs":1,"x":1611.6666564941406,"y":1457.6666870117188,"z":"57f142c6.1f478c","wires":[["912b075b.2b9118"]]},{"id":"e23a5427.dc90c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='req-sub-action not recognized'/>\n","comments":"","x":1767.6666564941406,"y":1592.6666870117188,"z":"57f142c6.1f478c","wires":[]},{"id":"1e58ebd8.081eb4","type":"other","name":"A-SBG","xml":"<outcome value='A-SBG'>","comments":"","outputs":1,"x":1613.6666564941406,"y":401.66668701171875,"z":"57f142c6.1f478c","wires":[["e1359cee.43a9f"]]},{"id":"9a9bdf49.8ba78","type":"other","name":"N-SBG","xml":"<outcome value='N-SBG'>","comments":"","outputs":1,"x":1615.6666564941406,"y":358.66668701171875,"z":"57f142c6.1f478c","wires":[["e1359cee.43a9f"]]},{"id":"954b003f.67029","type":"other","name":"T-SBG","xml":"<outcome value='T-SBG'>","comments":"","outputs":1,"x":1614.6666564941406,"y":447.66668701171875,"z":"57f142c6.1f478c","wires":[["e1359cee.43a9f"]]},{"id":"2095438c.a75e9c","type":"other","name":"A-SBG","xml":"<outcome value='A-SBG'>","comments":"","outputs":1,"x":1614.6666564941406,"y":640.6666870117188,"z":"57f142c6.1f478c","wires":[["87a37d2a.6ca3e"]]},{"id":"bb4c3fe0.cf855","type":"other","name":"T-SBG","xml":"<outcome value='T-SBG'>","comments":"","outputs":1,"x":1614.6666564941406,"y":687.6666870117188,"z":"57f142c6.1f478c","wires":[["87a37d2a.6ca3e"]]},{"id":"e1d6aa6b.f84178","type":"outcome","name":"N-SBG","xml":"<outcome value='N-SBG'>\n","comments":"","outputs":1,"x":1608.6666564941406,"y":1066.6666870117188,"z":"57f142c6.1f478c","wires":[["1a154772.444899"]]},{"id":"90f39d1d.80f2e","type":"other","name":"A-SBG","xml":"<outcome value='A-SBG'>","comments":"","outputs":1,"x":1609.6666564941406,"y":1107.6666870117188,"z":"57f142c6.1f478c","wires":[["1a154772.444899"]]},{"id":"49273b18.628b74","type":"other","name":"T-SBG","xml":"<outcome value='T-SBG'>","comments":"","outputs":1,"x":1610.6666564941406,"y":1152.6666870117188,"z":"57f142c6.1f478c","wires":[["1a154772.444899"]]},{"id":"a9b42c2b.83b31","type":"outcome","name":"vDBE-V","xml":"<outcome value='vDBE-V'>\n","comments":"","outputs":1,"x":1615.6666564941406,"y":737.6666870117188,"z":"57f142c6.1f478c","wires":[["c5f4780c.2868d8"]]},{"id":"c1b3fa8.0bc5e08","type":"other","name":"vDBE-I","xml":"<outcome value='vDBE-I'>","comments":"","outputs":1,"x":1614.6666564941406,"y":776.6666870117188,"z":"57f142c6.1f478c","wires":[["c5f4780c.2868d8"]]},{"id":"c8dfc4c3.d05048","type":"other","name":"vDBE-P","xml":"<outcome value='vDBE-P'>","comments":"","outputs":1,"x":1610.6666564941406,"y":821.6666870117188,"z":"57f142c6.1f478c","wires":[["c5f4780c.2868d8"]]},{"id":"c5f4780c.2868d8","type":"call","name":"call: service-configuration-activate-vdbe","xml":"<call module=\"Appc-API\" rpc=\"service-configuration-activate-vdbe\" mode=\"sync\">","comments":"","outputs":1,"x":1906.6666564941406,"y":771.6666870117188,"z":"57f142c6.1f478c","wires":[[]]},{"id":"ee07041c.0ca338","type":"other","name":"A-SBG","xml":"<outcome value='A-SBG'>","comments":"","outputs":1,"x":1607.6666564941406,"y":1500.6666870117188,"z":"57f142c6.1f478c","wires":[["912b075b.2b9118"]]},{"id":"817e32b6.557fd","type":"other","name":"T-SBG","xml":"<outcome value='T-SBG'>","comments":"","outputs":1,"x":1610.6666564941406,"y":1536.6666870117188,"z":"57f142c6.1f478c","wires":[["912b075b.2b9118"]]},{"id":"2dd38ed4.235162","type":"outcome","name":"vUSP - Metaswitch vSBC","xml":"<outcome value='vUSP - Metaswitch vSBC'>\n","comments":"","outputs":1,"x":1662.6666564941406,"y":1403.6666870117188,"z":"57f142c6.1f478c","wires":[["cf377cc7.2c72f"]]},{"id":"c7742018.c7acd","type":"comment","name":"Keep only SBG Flow","info":"","comments":"","x":1800,"y":311,"z":"57f142c6.1f478c","wires":[]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-prepare.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-prepare.json new file mode 100644 index 000000000..0e41453ab --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_service-configuration-prepare.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"6ce8b23c.6622bc","type":"comment","name":"IF NCS success, all can fail and we still return success","info":"","x":2710.476806640625,"y":1298.6689453125,"z":"9633ac01.1c873","wires":[]},{"id":"176fa587.64801a","type":"comment","name":"IF NCS success, all can fail and we still return success","info":"","x":3402.651191711426,"y":715.9393172264099,"z":"9633ac01.1c873","wires":[]},{"id":"cdb39a50.0e04e8","type":"comment","name":"Used for Cancel, disconnect","info":"","x":3131.91357421875,"y":1137.333251953125,"z":"9633ac01.1c873","wires":[]},{"id":"22d49eda.3a5e82","type":"comment","name":"Service-Configuration-Prepare","info":"","comments":"","x":576.75,"y":25,"z":"9633ac01.1c873","wires":[]},{"id":"7f2c4f0f.b4df9","type":"dgstart","name":"DGSTART","outputs":1,"x":102,"y":99.1111068725586,"z":"9633ac01.1c873","wires":[["3f18b239.d3494e"]]},{"id":"3f18b239.d3494e","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":259.66668701171875,"y":97.77776336669922,"z":"9633ac01.1c873","wires":[["fd14a489.4c1158"]]},{"id":"fd14a489.4c1158","type":"method","name":"method service-configuration-prepare","xml":"<method rpc='service-configuration-prepare' mode='sync'>\n","comments":"","outputs":1,"x":507,"y":104.44442749023438,"z":"9633ac01.1c873","wires":[["4b7f48e1.29b478"]]},{"id":"4b7f48e1.29b478","type":"switchNode","name":"switch: order-status","xml":"<switch test=\"`$service-data.oper-status.order-status`\">\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Reserved\";\n\t\tenum \"Activated\";\n\t\tenum \"PendingDelete\";\n\t\tenum \"RequestFailed\";\n\t\tenum \"InProgressTimeout\";\n\t\tenum \"InProgress\";\n\t}\n}\n-->","comments":"","outputs":1,"x":135.25,"y":187.31015014648438,"z":"9633ac01.1c873","wires":[["a2d91a.3cdbf6e8","21c383a7.69136c","1d1d1f1f.1fcae1","9a4d7636.b60368","ea79ba30.614648"]]},{"id":"1d1d1f1f.1fcae1","type":"outcome","name":"RequestFailed","xml":"<outcome value='RequestFailed'>","comments":"","outputs":1,"x":398.7848205566406,"y":272.3448486328125,"z":"9633ac01.1c873","wires":[["37764947.e60ce6"]]},{"id":"a2d91a.3cdbf6e8","type":"outcome","name":"Reserved","xml":"<outcome value='Reserved'>","comments":"","outputs":1,"x":390.9147033691406,"y":221.154296875,"z":"9633ac01.1c873","wires":[["37764947.e60ce6"]]},{"id":"37764947.e60ce6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":612.931884765625,"y":207.66079711914062,"z":"9633ac01.1c873","wires":[["2b276628.d6c4ba","a87cb168.0c421","a899e50f.59e928","9f955bc.fe03ba8","4eb7d82e.78eb68","abd61b38.bbefe8","806b14e0.e3f2d8"]]},{"id":"4eb7d82e.78eb68","type":"configure","name":"configure: ConfigComponentAdaptor","xml":"<configure adaptor=\"org.openecomp.appc.ccadaptor.ConfigComponentAdaptor\" key=\"dummy\">\n\t<parameter name=\"action\" value=\"prepare\"/>\n\t\n\n\t","comments":"","outputs":1,"x":933.3130493164062,"y":653.2779541015625,"z":"9633ac01.1c873","wires":[["c19ff3d7.54cf2","f045d778.2bf8e8"]]},{"id":"2b276628.d6c4ba","type":"set","name":"set: maintinance-indicator = N","xml":"<set>\n\t<parameter name='service-data.oper-status.maintenance-indicator' value='N' />","comments":"","x":902.6939086914062,"y":545.8492431640625,"z":"9633ac01.1c873","wires":[]},{"id":"c19ff3d7.54cf2","type":"failure","name":"failure","xml":"<outcome value='failure'>","outputs":1,"x":1173.6070556640625,"y":569.1112060546875,"z":"9633ac01.1c873","wires":[["733e8f0a.db9e5"]]},{"id":"b28d79c6.26f198","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<!-- error code & message provided by ncs-adaptor -->\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":1571.940185546875,"y":500.77783203125,"z":"9633ac01.1c873","wires":[]},{"id":"733e8f0a.db9e5","type":"block","name":"block : atomic","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1346.60693359375,"y":556.1112060546875,"z":"9633ac01.1c873","wires":[["b28d79c6.26f198","7b6460f9.47c97"]]},{"id":"9a4d7636.b60368","type":"other","name":"Other","xml":"<outcome value='Other'>\n\n<!-- Audited, PendingActivate, Activated, other -->\n<!-- Audit is allowed only after Activate -->","comments":"","outputs":1,"x":369.2738952636719,"y":703.9207153320312,"z":"9633ac01.1c873","wires":[["7a642d2c.3f9d14"]]},{"id":"a899e50f.59e928","type":"set","name":"set: last-sub-action-status = InProgress","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"InProgress\" />","comments":"","x":921.9404296875,"y":392.44451904296875,"z":"9633ac01.1c873","wires":[]},{"id":"a87cb168.0c421","type":"execute","name":"execute: setTime(modify-timestamp)","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"setTime\">\n\t<parameter name=\"ctxVariable\" value=\"service-data.oper-status.modify-timestamp\"/>","comments":"","outputs":1,"x":914.7498779296875,"y":494,"z":"9633ac01.1c873","wires":[[]]},{"id":"7a642d2c.3f9d14","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid Order Status State'/>\n\t<parameter name='ack-final' value='Y'/>","comments":"","x":596.0833129882812,"y":704.3333129882812,"z":"9633ac01.1c873","wires":[]},{"id":"21c383a7.69136c","type":"other","name":"outcome: NULL","xml":"<outcome value=''>\n","outputs":1,"x":409.75,"y":173,"z":"9633ac01.1c873","wires":[["37764947.e60ce6"]]},{"id":"f045d778.2bf8e8","type":"failure","name":"success","xml":"<outcome value='success'>","comments":"","outputs":1,"x":1173.7498779296875,"y":698,"z":"9633ac01.1c873","wires":[["657c1712.60d3f8"]]},{"id":"657c1712.60d3f8","type":"block","name":"block : atomic","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1366.4166259765625,"y":628.3333740234375,"z":"9633ac01.1c873","wires":[["35a34d7c.e7dea2","ab3dbd3e.dadbd","1f374bb.3fed3b4","52652755.f025f8"]]},{"id":"35a34d7c.e7dea2","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />","comments":"","x":1599.7498779296875,"y":794,"z":"9633ac01.1c873","wires":[]},{"id":"806b14e0.e3f2d8","type":"GenericXML","name":"set: last-action, last-sub-action, last-svc-request-id, last-order-status","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"VsbgServiceActivateRequest\" />\n\t<parameter name=\"service-data.oper-status.last-sub-action\" value=\"`$service-configuration-operation-input.request-information.request-sub-action`\" />\n\t<parameter name=\"service-data.oper-status.last-svc-request-id\" value=\"`$service-configuration-operation-input.sdnc-request-header.svc-request-id`\" />\n\t<!-- Setting this to null seems to be failing\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\" />\n\t-->\n","comments":"","outputs":1,"x":996.7498779296875,"y":156,"z":"9633ac01.1c873","wires":[[]]},{"id":"ab3dbd3e.dadbd","type":"set","name":"set: order-status = Reserved","xml":"<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Reserved\" />","comments":"","x":1629.75,"y":659,"z":"9633ac01.1c873","wires":[]},{"id":"9f955bc.fe03ba8","type":"set","name":"set Copy from input to Service-data","xml":"<set>\n<parameter name=\"service-data.\" value=\"service-configuration-operation-input.\"/>\n\n","comments":"","x":895.75,"y":271,"z":"9633ac01.1c873","wires":[]},{"id":"1f374bb.3fed3b4","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"service-configuration-operation:Prepare:After Calling ConfigAdaptor:Success\"/>\n<parameter name=\"field3\" value=\"`$service-data.oper-status.order-status`\"/>\n<parameter name=\"field4\" value=\"`$service-data.service-information.service-instance-id`\"/>\n\n\n","comments":"","outputs":1,"x":1569.75,"y":602,"z":"9633ac01.1c873","wires":[[]]},{"id":"7b6460f9.47c97","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"service-configuration-operation:Prepare:After Calling ConfigAdaptor:Failure\"/>\n<parameter name=\"field3\" value=\"`$service-data.oper-status.order-status`\"/>\n<parameter name=\"field4\" value=\"`$service-data.service-information.service-instance-id`\"/>\n\n\n","comments":"","outputs":1,"x":1552.75,"y":380,"z":"9633ac01.1c873","wires":[[]]},{"id":"128e76b6.814b29","type":"comment","name":"Failed prepares are not saved in Config Tree","info":"","comments":"","x":1860.75,"y":496,"z":"9633ac01.1c873","wires":[]},{"id":"52652755.f025f8","type":"set","name":"set: last-sub-action-status = Success","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-sub-action-status\" value=\"Success\" />","comments":"","x":1668.5,"y":719,"z":"9633ac01.1c873","wires":[]},{"id":"ea79ba30.614648","type":"outcome","name":"Activated","xml":"<outcome value='Activated'>","comments":"","outputs":1,"x":387.5,"y":330,"z":"9633ac01.1c873","wires":[["37764947.e60ce6"]]},{"id":"abd61b38.bbefe8","type":"switchNode","name":"switch: update-configuration","xml":"<switch test=\"`$service-configuration-operation-input.vnf-config-parameters-list.vnf-config-parameters[0].update-configuration_length`\">\n","comments":"","outputs":1,"x":848.5,"y":69,"z":"9633ac01.1c873","wires":[["a9cb27b6.b38238","99f8115d.6be47"]]},{"id":"a9cb27b6.b38238","type":"other","name":"outcome: NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1085.5,"y":71,"z":"9633ac01.1c873","wires":[["131554ac.7778fb"]]},{"id":"f0f0e9e5.ffc3b8","type":"comment","name":"New Start Prepare","info":"","comments":"","x":1077.5,"y":30,"z":"9633ac01.1c873","wires":[]},{"id":"131554ac.7778fb","type":"block","name":"block : atomic","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1275.5,"y":70,"z":"9633ac01.1c873","wires":[["f8d7c48f.cf07a8"]]},{"id":"f8d7c48f.cf07a8","type":"set","name":"Clear Service Data VNF Parameters List","xml":"<set>\n <parameter name=\"service-data.vnf-config-parameters-list.\" value=\"\" />\n\n","comments":"","x":1537.5,"y":72,"z":"9633ac01.1c873","wires":[]},{"id":"99f8115d.6be47","type":"other","name":"outcome: Length=0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1054.5,"y":116,"z":"9633ac01.1c873","wires":[["131554ac.7778fb"]]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-aai-sbg.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-aai-sbg.json new file mode 100644 index 000000000..6a4f225cc --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-aai-sbg.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"e4acf725.3e5368","type":"dgstart","name":"DGSTART","outputs":1,"x":144,"y":101.66667938232422,"z":"228e37c6.d64d28","wires":[["f2b8f674.218f68"]]},{"id":"f2b8f674.218f68","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":316.16668701171875,"y":99.33333587646484,"z":"228e37c6.d64d28","wires":[["ee859c41.5b3d"]]},{"id":"ee859c41.5b3d","type":"method","name":"method update-aai-sbg","xml":"<method rpc='update-aai-sbg' mode='sync'>\n","comments":"","outputs":1,"x":542.5000610351562,"y":96,"z":"228e37c6.d64d28","wires":[["1ea263b6.f7623c"]]},{"id":"f1224205.fa0ae","type":"get-resource","name":"get-resource: A&AI Data for VNF","xml":"<get-resource plugin=\"org.openecomp.sli.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-name = $service-configuration-notification-input.service-information.service-instance-id\" pfx=\"tmp.aai-data-vnf\" >\n\n\n","comments":"","outputs":1,"x":482,"y":488.6666793823242,"z":"228e37c6.d64d28","wires":[["e82e0adb.b65708","e9062897.951a98","10e2236c.ca781d"]]},{"id":"1ea263b6.f7623c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":156,"y":446.5555648803711,"z":"228e37c6.d64d28","wires":[["c6cade3b.45348","6ac564d6.b69f3c","f1224205.fa0ae"]]},{"id":"590ffc26.02a9c4","type":"save","name":"update: A&AI ( VNF)","xml":"<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $tmp.aai-data-vnf.vnf-id\" force=\"true\" local-only=\"false\" pfx=\"tmp.AnAI-data.vnf\" >\n<parameter name=\"prov-status\" value=\"`$tmp.aai-prov-status`\"/>\n\t","comments":"","outputs":1,"x":1110,"y":553.6666793823242,"z":"228e37c6.d64d28","wires":[["93c45525.6bbad8"]]},{"id":"93c45525.6bbad8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1315,"y":553.6666793823242,"z":"228e37c6.d64d28","wires":[["ab29e001.3519f"]]},{"id":"e82e0adb.b65708","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":747,"y":271.5555648803711,"z":"228e37c6.d64d28","wires":[["88be6342.bfb18"]]},{"id":"10e2236c.ca781d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":742,"y":418.5555648803711,"z":"228e37c6.d64d28","wires":[["ef7853e6.66e51"]]},{"id":"88be6342.bfb18","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":927,"y":268.5555648803711,"z":"228e37c6.d64d28","wires":[["17750ac8.a59a05","f95ae508.8ceb48"]]},{"id":"f95ae508.8ceb48","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Get from A&AI Failed for ' + $service-configuration-notification-input.service-information.service-instance-id + '.' + $error-message`\"/>","comments":"","x":1177,"y":292.5555648803711,"z":"228e37c6.d64d28","wires":[]},{"id":"17750ac8.a59a05","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Get Request to AnAI Failed\"/>\n<parameter name=\"field3\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n\n","comments":"","outputs":1,"x":1127,"y":219.5555648803711,"z":"228e37c6.d64d28","wires":[[]]},{"id":"c6cade3b.45348","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"CALLING Get fOR SERVICEINSTANCEID\"/>\n<parameter name=\"field3\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n<parameter name=\"RESPONSEMSG\" value=\"`$response-message`\"/>\n","comments":"","outputs":1,"x":396,"y":410.5555648803711,"z":"228e37c6.d64d28","wires":[[]]},{"id":"e9062897.951a98","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":741,"y":534.6666793823242,"z":"228e37c6.d64d28","wires":[["fe9270b6.c94b1"]]},{"id":"fe9270b6.c94b1","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":904,"y":534.6666793823242,"z":"228e37c6.d64d28","wires":[["590ffc26.02a9c4","a951e2eb.c2b06","e0c6e7c0.4f70a8","251b1675.5c6f5a"]]},{"id":"a951e2eb.c2b06","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"VNFID\" value=\"`$tmp.aai-data-vnf.vnf-id`\"/>\n<parameter name=\"RELATIONSHIPLEN\" value=\"`$tmp.aai-data-vnf.relationship-list.relationship_length`\"/>\n<parameter name=\"RELATIONSHIPVALUE\" value=\"`$tmp.aai-data-vnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\"/>\n","comments":"","outputs":1,"x":1076,"y":505.6666488647461,"z":"228e37c6.d64d28","wires":[[]]},{"id":"ab29e001.3519f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1486,"y":550.6666793823242,"z":"228e37c6.d64d28","wires":[["6accc3cf.d7a9cc","69bca953.dd37e8"]]},{"id":"6accc3cf.d7a9cc","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Update to A&AI Failed for ' + $tmp.aai-data-vnf.vnf-id + '.' + $error-message`\"/>","comments":"","x":1747,"y":558.6666793823242,"z":"228e37c6.d64d28","wires":[]},{"id":"69bca953.dd37e8","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Update Request to AnAI Failed\"/>\n<parameter name=\"field3\" value=\"`$tmp.aai-data-vnf.vnf-id`\"/>\n\n","comments":"","outputs":1,"x":1675,"y":509.6666488647461,"z":"228e37c6.d64d28","wires":[[]]},{"id":"6ac564d6.b69f3c","type":"set","name":"set: Append to response-message","xml":"<set>\n\t <parameter name=\"response-message\" value=\"`$error-message + '.' + $response-message`\"/>","comments":"","x":465,"y":581.5555953979492,"z":"228e37c6.d64d28","wires":[]},{"id":"ef7853e6.66e51","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":908,"y":420.6666793823242,"z":"228e37c6.d64d28","wires":[["fed74f08.2ce21","c1e7cc99.a9f12"]]},{"id":"fed74f08.2ce21","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Get Request to AnAI Failed\"/>\n<parameter name=\"field3\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n<parameter name=\"ErrorMessage\" value=\"`$tmp.aai-data-vnf.error-message`\"/>\n<parameter name=\"HTTP Code\" value=\"`$tmp.aai-data-vnf.error.http.response-code`\"/>","comments":"","outputs":1,"x":1077,"y":384.6666793823242,"z":"228e37c6.d64d28","wires":[[]]},{"id":"c1e7cc99.a9f12","type":"set","name":"set: Append to error message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Get from A&AI Failed for ' + $service-configuration-notification-input.service-information.service-instance-id + '.' + $tmp.aai-data-vnf.error-message + '.HTTP Code:' + $tmp.aai-data-vnf.error.http.response-code + '.' + $error-message `\"/>\n","comments":"","x":1139,"y":436.6666793823242,"z":"228e37c6.d64d28","wires":[]},{"id":"e0c6e7c0.4f70a8","type":"call","name":"call: update-vserver-info","xml":"<call module=\"Appc-API\" rpc=\"update-vserver-info\" mode=\"sync\">","comments":"","outputs":1,"x":1117,"y":603.7777633666992,"z":"228e37c6.d64d28","wires":[[]]},{"id":"251b1675.5c6f5a","type":"call","name":"call: update-vnfc-info","xml":"<call module=\"Appc-API\" rpc=\"update-vnfc-info\" mode=\"sync\">","comments":"","outputs":1,"x":1093,"y":655.7777633666992,"z":"228e37c6.d64d28","wires":[[]]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-aai.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-aai.json new file mode 100644 index 000000000..a048bc68b --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-aai.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"f584e162.49c158","type":"dgstart","name":"DGSTART","outputs":1,"x":146.88333129882812,"y":89.88333129882812,"z":"dadd0ec.02a1b7","wires":[["60b57c68.194f74"]]},{"id":"60b57c68.194f74","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":307.0500183105469,"y":91.54998779296875,"z":"dadd0ec.02a1b7","wires":[["3641d110.30da4e"]]},{"id":"3641d110.30da4e","type":"method","name":"method update-aai","xml":"<method rpc='update-aai' mode='sync'>\n","comments":"","outputs":1,"x":499.3833923339844,"y":93.2166519165039,"z":"dadd0ec.02a1b7","wires":[["b3a09b4d.f75bd8"]]},{"id":"288fce64.17083a","type":"get-resource","name":"get-resource: A&AI Data for VNF","xml":"<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-name = $service-configuration-notification-input.service-information.service-instance-id\" pfx=\"tmp.aai-data-vnf\" >\n\n\n","comments":"","outputs":1,"x":432.8833312988281,"y":194.772216796875,"z":"dadd0ec.02a1b7","wires":[["cc3bc54e.9184b8","d3de5a90.3ddcf8","81c50c73.66e56"]]},{"id":"7a4607ab.20c7d8","type":"get-resource","name":"get-resource: A&AI Data for VM Name","xml":"<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vserver\" key=\"vserver.vserver-name = $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vm-name\" pfx=\"tmp.aai-data-vm\" >\n\n","comments":"","outputs":1,"x":1529.8833312988281,"y":488.772216796875,"z":"dadd0ec.02a1b7","wires":[["ac80a5a9.b87a88","bbbda2e4.18a088","730690ac.6a2dd8"]]},{"id":"7d05439.245a33c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":669.8833312988281,"y":437.7722473144531,"z":"dadd0ec.02a1b7","wires":[["374baba4.2826c4"]]},{"id":"6987c348.7915ac","type":"get-resource","name":"get-resource: A&AI Data for VM Name","xml":"<get-resource plugin=\"org.openecomp.sdnc.sli.AAIService\" resource=\"vserver\" key=\"vserver.vserver-name = $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vm-name\" pfx=\"tmp.aai-data-vm\" >\n\n\n","comments":"","outputs":1,"x":1420.8833312988281,"y":1092.7722473144531,"z":"dadd0ec.02a1b7","wires":[["79054415.929364","3ca1a800.bd8a18","7c6d32ee.aaa864"]]},{"id":"45ea0a21.ea708c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":671.8833312988281,"y":998.7722473144531,"z":"dadd0ec.02a1b7","wires":[["61e15e5d.3c6e6"]]},{"id":"b3a09b4d.f75bd8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":155.88333129882812,"y":152.772216796875,"z":"dadd0ec.02a1b7","wires":[["288fce64.17083a","a5df8a6a.2b19c8","d1fff83e.f87ea8","b52fc28c.1d4a4","5d1fa6e4.9044d"]]},{"id":"fe99cd15.356a28","type":"save","name":"update: A&AI ( VNF)","xml":"<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $tmp.aai-data-vnf.vnf-id\" force=\"true\" local-only=\"false\" pfx=\"tmp.AnAI-data.vnf\" >\n<parameter name=\"prov-status\" value=\"`$tmp.aai-prov-status`\"/>\n\t","comments":"","outputs":1,"x":1005.8833312988281,"y":275.7722473144531,"z":"dadd0ec.02a1b7","wires":[["a351e49e.b5ebc8"]]},{"id":"a351e49e.b5ebc8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1178.8833312988281,"y":277.7722473144531,"z":"dadd0ec.02a1b7","wires":[["4c376449.e30b9c"]]},{"id":"51e66bf8.6e6d1c","type":"save","name":"update: A&AI ( VM)","xml":"<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vserver\" \nkey=\"vserver.vserver-id = $tmp.aai-data-vm.vserver-id AND \ntenant.tenant-id = $tmp.aai-data-vm.tenant-id AND\ncloud-region.cloud-owner = 'att-aic' AND\ncloud-region.cloud-region-id = $tmp.aai-data-vm.cloud-region-id\"\nforce=\"true\" local-only=\"false\" pfx=\"tmp.AnAI-data.vnf\" >\n<parameter name=\"prov-status\" value=\"`$tmp.aai-prov-status`\"/>\n","comments":"","outputs":1,"x":2011.8833312988281,"y":564.772216796875,"z":"dadd0ec.02a1b7","wires":[["c14c4a8e.be626"]]},{"id":"c14c4a8e.be626","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2191.883331298828,"y":561.772216796875,"z":"dadd0ec.02a1b7","wires":[["78be292c.29bea"]]},{"id":"71066a0e.98a3bc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2042.8833312988281,"y":1151.7722473144531,"z":"dadd0ec.02a1b7","wires":[["ee6c0881.9fce5"]]},{"id":"88c7f999.f3a79","type":"save","name":"update: A&AI ( VM)","xml":"<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vserver\" \nkey=\"vserver.vserver-id = $tmp.aai-data-vm.vserver-id AND \ntenant.tenant-id = $tmp.aai-data-vm.tenant-id AND\ncloud-region.cloud-owner = $tmp.aai-data-vm.cloud-owner AND\ncloud-region.cloud-region-id = $tmp.aai-data-vm.cloud-region-id\"\nforce=\"true\" local-only=\"false\" pfx=\"tmp.AnAI-data.vnf\" >\n<parameter name=\"prov-status\" value=\"`$tmp.aai-prov-status`\"/>","comments":"","outputs":1,"x":1858.3833312988281,"y":1155.7722473144531,"z":"dadd0ec.02a1b7","wires":[["71066a0e.98a3bc"]]},{"id":"160a822.fe9487e","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Get AnAI Request Failed\"/>\n<parameter name=\"field3\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vm-name`\"/>\n\n","comments":"","outputs":1,"x":2188.883331298828,"y":385.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"ac80a5a9.b87a88","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1818.8833312988281,"y":409.772216796875,"z":"dadd0ec.02a1b7","wires":[["b427505d.58def"]]},{"id":"bbbda2e4.18a088","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1792.8833312988281,"y":484.772216796875,"z":"dadd0ec.02a1b7","wires":[["b427505d.58def"]]},{"id":"b427505d.58def","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1996.8833312988281,"y":447.772216796875,"z":"dadd0ec.02a1b7","wires":[["160a822.fe9487e","e9834288.6b48d"]]},{"id":"9ea3c68.d6f28b8","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"AnAI Request Failed\"/>\n<parameter name=\"field3\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vm-name`\"/>\n\n","comments":"","outputs":1,"x":2031.8833312988281,"y":1011.7722473144531,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"79054415.929364","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1674.8833312988281,"y":1016.7722473144531,"z":"dadd0ec.02a1b7","wires":[["bf377ff1.8c91b8"]]},{"id":"3ca1a800.bd8a18","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1676.8833312988281,"y":1086.7722473144531,"z":"dadd0ec.02a1b7","wires":[["bf377ff1.8c91b8"]]},{"id":"bf377ff1.8c91b8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1859.8833312988281,"y":1029.7722473144531,"z":"dadd0ec.02a1b7","wires":[["9ea3c68.d6f28b8","85acf41b.0ed97"]]},{"id":"81c50c73.66e56","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":726.8833312988281,"y":103.772216796875,"z":"dadd0ec.02a1b7","wires":[["831c109c.40926"]]},{"id":"cc3bc54e.9184b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":670.8833312988281,"y":171.772216796875,"z":"dadd0ec.02a1b7","wires":[["b5511dc5.89e028"]]},{"id":"831c109c.40926","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":888.8833312988281,"y":89.772216796875,"z":"dadd0ec.02a1b7","wires":[["dcc5affb.84c298","ea59351.e3d6148"]]},{"id":"ea59351.e3d6148","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Get from A&AI Failed for ' + $service-configuration-notification-input.service-information.service-instance-id + '.' + $error-message`\"/>","comments":"","x":1176.8833312988281,"y":113.772216796875,"z":"dadd0ec.02a1b7","wires":[]},{"id":"dcc5affb.84c298","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Get Request to AnAI Failed\"/>\n<parameter name=\"field3\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n\n","comments":"","outputs":1,"x":1091.8833312988281,"y":74.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"e9834288.6b48d","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Get from A&AI Failed for ' + $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vm-name + '.' + $error-message`\"/>","comments":"","x":2247.883331298828,"y":445.772216796875,"z":"dadd0ec.02a1b7","wires":[]},{"id":"24de5b4.ca9c024","type":"for","name":"for: vnf-config-parameters-list","xml":"<for index=\"i\" start=\"0\" end=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters_length`\">","comments":"","outputs":1,"x":439.8833312988281,"y":437.7722473144531,"z":"dadd0ec.02a1b7","wires":[["7d05439.245a33c"]]},{"id":"d674bc1d.c068e","type":"for","name":"for: vnf-config-parameters-list","xml":"<for index=\"i\" start=\"0\" end=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters_length`\" >","comments":"","outputs":1,"x":441.8833312988281,"y":996.7722473144531,"z":"dadd0ec.02a1b7","wires":[["45ea0a21.ea708c"]]},{"id":"abeef1bf.9c7088","type":"for","name":"for: vnf-config-parameters-list.system-controller","xml":"<for index=\"j\" start=\"0\" end=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller_length`\" >","comments":"","outputs":1,"x":936.8833312988281,"y":559.7722473144531,"z":"dadd0ec.02a1b7","wires":[["96702561.b9af1"]]},{"id":"21b151fc.80e8d6","type":"for","name":"for: vnf-config-parameters-list.payload","xml":"<for index=\"j\" start=\"0\" end=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload_length`\" >","comments":"","outputs":1,"x":889.8833312988281,"y":1097.7722473144531,"z":"dadd0ec.02a1b7","wires":[["417c9ce9.cc81c4"]]},{"id":"96702561.b9af1","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1241.8833312988281,"y":559.7722473144531,"z":"dadd0ec.02a1b7","wires":[["72d66398.c78b04","7a4607ab.20c7d8"]]},{"id":"72d66398.c78b04","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"VNFCNAME\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name`\"/>\n<parameter name=\"VMNAME\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vm-name`\"/>\n<parameter name=\"field3\" value=\"`$service-configuration-notification-input.backup-information.service-instance-id`\"/>","comments":"","outputs":1,"x":1427.8833312988281,"y":439.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"8b2f85e1.b2ecf8","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"VNFCNAME\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name`\"/>\n<parameter name=\"VMNAME\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vm-name`\"/>\n\n","comments":"","outputs":1,"x":1350.8833312988281,"y":1034.7722473144531,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"417c9ce9.cc81c4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1158.8833312988281,"y":1102.7722473144531,"z":"dadd0ec.02a1b7","wires":[["8b2f85e1.b2ecf8","6987c348.7915ac"]]},{"id":"ca324f16.621e98","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"SYSCONTRVSERVERID\" value=\"`$tmp.aai-data-vm.vserver-id`\"/>\n\n<parameter name=\"SYSCONTRLTENANTID\" value=\"`$tmp.aai-data-vm.tenant-id`\"/>\n<parameter name=\"SYSCONTRLCLOUDREGION\" value=\"`$tmp.aai-data-vm.cloud-region-id`\"/>\n<parameter name=\"SYSCONTRLCLOUDOWNER\" value=\"`$tmp.aai-data-vm.cloud-owner`\"/>","comments":"","outputs":1,"x":2005.8833312988281,"y":519.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"fe551909.d15fc","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"PAYLDVSERVERID\" value=\"`$tmp.aai-data-vm.vserver-id`\"/>\n\n<parameter name=\"PAYLDTENANTID\" value=\"`$tmp.aai-data-vm.tenant-id`\"/>\n<parameter name=\"PAYLDCLOUDREGION\" value=\"`$tmp.aai-data-vm.cloud-region-id`\"/>","comments":"","outputs":1,"x":1834.8833312988281,"y":1096.7722473144531,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"a5df8a6a.2b19c8","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"CALLING Get fOR SERVICEINSTANCEID\"/>\n<parameter name=\"field3\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n<parameter name=\"RESPONSEMSG\" value=\"`$response-message`\"/>\n","comments":"","outputs":1,"x":359.8833312988281,"y":149.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"d3de5a90.3ddcf8","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":669.8833312988281,"y":219.77224731445312,"z":"dadd0ec.02a1b7","wires":[["6fc6feed.ecd3e"]]},{"id":"6fc6feed.ecd3e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":817.8833312988281,"y":223.77224731445312,"z":"dadd0ec.02a1b7","wires":[["fe99cd15.356a28","6ce473c.8c06e8c"]]},{"id":"730690ac.6a2dd8","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1668.8833312988281,"y":541.7722778320312,"z":"dadd0ec.02a1b7","wires":[["b233e1f3.c73c5"]]},{"id":"7c6d32ee.aaa864","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1477.8833312988281,"y":1164.7722473144531,"z":"dadd0ec.02a1b7","wires":[["be4db60d.4ea4f"]]},{"id":"b233e1f3.c73c5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1824.8833312988281,"y":538.7722778320312,"z":"dadd0ec.02a1b7","wires":[["ca324f16.621e98","51e66bf8.6e6d1c","82af3939.ee1638"]]},{"id":"be4db60d.4ea4f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1646.8833312988281,"y":1157.7722473144531,"z":"dadd0ec.02a1b7","wires":[["fe551909.d15fc","88c7f999.f3a79","4929d27f.47a514"]]},{"id":"6ce473c.8c06e8c","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"VNFID\" value=\"`$tmp.aai-data-vnf.vnf-id`\"/>\n\n","comments":"","outputs":1,"x":982.8833312988281,"y":228.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"4c376449.e30b9c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1331.8833312988281,"y":279.7722473144531,"z":"dadd0ec.02a1b7","wires":[["2050dfe6.9e5678","42e9661a.76f588"]]},{"id":"2050dfe6.9e5678","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Update to A&AI Failed for ' + $tmp.aai-data-vnf.vnf-id + '.' + $error-message`\"/>","comments":"","x":1556.8833312988281,"y":295.7722473144531,"z":"dadd0ec.02a1b7","wires":[]},{"id":"78be292c.29bea","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2346.883331298828,"y":557.772216796875,"z":"dadd0ec.02a1b7","wires":[["8a2fd214.c42f28","5dd7cb15.eb6d04"]]},{"id":"8a2fd214.c42f28","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Update to A&AI Failed for ' + $tmp.aai-data-vm.vserver-id + ' and ' + $tmp.aai-data-vm.tenant-id + '.' + $error-message`\"/>","comments":"","x":2604.883331298828,"y":549.772216796875,"z":"dadd0ec.02a1b7","wires":[]},{"id":"85acf41b.0ed97","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Get from A&AI Failed for ' + $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vm-name + '.' + $error-message`\"/>","comments":"","x":2088.883331298828,"y":1063.7722473144531,"z":"dadd0ec.02a1b7","wires":[]},{"id":"ee6c0881.9fce5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2197.883331298828,"y":1151.7722473144531,"z":"dadd0ec.02a1b7","wires":[["7645fc9f.c57cfc","43bd5dc3.8e2b9c"]]},{"id":"7645fc9f.c57cfc","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Update to A&AI Failed for ' + $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name + ' and ' + $tmp.aai-data-vm.vserver-id + ' and ' + $tmp.aai-data-vm.tenant-id + '.' + $error-message`\"/>","comments":"","x":2456.883331298828,"y":1157.7722473144531,"z":"dadd0ec.02a1b7","wires":[]},{"id":"42e9661a.76f588","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Update Request to AnAI Failed\"/>\n<parameter name=\"field3\" value=\"`$tmp.aai-data-vnf.vnf-id`\"/>\n\n","comments":"","outputs":1,"x":1480.8833312988281,"y":236.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"5dd7cb15.eb6d04","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Update Request to AnAI Failed\"/>\n<parameter name=\"VSERVERID\" value=\"`$tmp.aai-data-vm.vserver-id`\"/>\n<parameter name=\"TENANTID\" value=\"`$tmp.aai-data-vm.tenant-id`\"/>\n\n","comments":"","outputs":1,"x":2546.883331298828,"y":484.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"43bd5dc3.8e2b9c","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Update Request to AnAI Failed\"/>\n<parameter name=\"VSERVERID\" value=\"`$tmp.aai-data-vm.vserver-id`\"/>\n<parameter name=\"TENANTID\" value=\"`$tmp.aai-data-vm.tenant-id`\"/>\n<parameter name=\"VNFCNAME\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name`\"/>\n\n","comments":"","outputs":1,"x":2397.883331298828,"y":1102.7722473144531,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"d1fff83e.f87ea8","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"RETURNED RESPONSEMESSAGE\"/>\n<parameter name=\"RESPONSEMSG\" value=\"`$response-message`\"/>\n<parameter name=\"ERRORMSG\" value=\"`$error-message`\"/>\n\n","comments":"","outputs":1,"x":209.88333129882812,"y":1174.7722473144531,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"b52fc28c.1d4a4","type":"set","name":"set: Append to response-message","xml":"<set>\n\t <parameter name=\"response-message\" value=\"`$error-message + '.' + $response-message`\"/>","comments":"","x":348.8833312988281,"y":1102.7722473144531,"z":"dadd0ec.02a1b7","wires":[]},{"id":"82af3939.ee1638","type":"get-resource","name":"get-resource: A&AI Data for VNFC Name ","xml":"<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vnfc\" key=\"vnfc.vnfc-name = $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name\" pfx=\"tmp.aai-data-vnfc\" >\n\n\n","comments":"","outputs":1,"x":1350.8833312988281,"y":750.8833312988281,"z":"dadd0ec.02a1b7","wires":[["87f6d8fb.3a4178","9a1fb492.234f88","5f9c4c3d.eaf734"]]},{"id":"87f6d8fb.3a4178","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1638.8833312988281,"y":750.8833312988281,"z":"dadd0ec.02a1b7","wires":[["a5ce84b.71763f8"]]},{"id":"9a1fb492.234f88","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1638.8833312988281,"y":794.8833312988281,"z":"dadd0ec.02a1b7","wires":[["7dab047c.7c4afc"]]},{"id":"5f9c4c3d.eaf734","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1599.8833312988281,"y":866.8833312988281,"z":"dadd0ec.02a1b7","wires":[["dbfe79e5.0b0828"]]},{"id":"7dab047c.7c4afc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1810.8833312988281,"y":795.8833312988281,"z":"dadd0ec.02a1b7","wires":[["fdc1b24b.056628","3ef21e81.c48d3a"]]},{"id":"fdc1b24b.056628","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Get AnAI Request Failed\"/>\n<parameter name=\"field3\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name`\"/>\n\n","comments":"","outputs":1,"x":1983.8833312988281,"y":796.8833312988281,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"3ef21e81.c48d3a","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Get from A&AI Failed for ' + $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name + '.' + $error-message`\"/>","comments":"","x":2060.883331298828,"y":848.8833312988281,"z":"dadd0ec.02a1b7","wires":[]},{"id":"98b1f0dc.508aa","type":"save","name":"update: A&AI VNFC","xml":"<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vnfc\" \nkey=\"vnfc.vnfc-name = $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name and \nvserver.vserver-id = $tmp.aai-data-vm.vserver-id AND \ntenant.tenant-id = $tmp.aai-data-vm.tenant-id AND\ncloud-region.cloud-owner = $tmp.aai-data-vm.cloud-owner AND\ncloud-region.region-id = $tmp.aai-data-vm.cloud-region-id \" \nforce=\"true\" local-only=\"false\" pfx=\"tmp.AnAI-data.vnf\" >\n<parameter name=\"prov-status\" value=\"`$tmp.aai-prov-status`\"/>\n<parameter name=\"orchestration-status\" value=\"`$tmp.aai-orch-status`\"/>\n","comments":"","outputs":1,"x":1997.8833312988281,"y":907.8833312988281,"z":"dadd0ec.02a1b7","wires":[["192a6b14.797755"]]},{"id":"192a6b14.797755","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2182.883331298828,"y":905.8833312988281,"z":"dadd0ec.02a1b7","wires":[["b5f3def.a2598a"]]},{"id":"b5f3def.a2598a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2341.883331298828,"y":904.8833312988281,"z":"dadd0ec.02a1b7","wires":[["66d9795a.67749","d0e455fb.cb2bb"]]},{"id":"66d9795a.67749","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Update Request to AnAI Failed\"/>\n<parameter name=\"VSERVERID\" value=\"`$tmp.aai-data-vm.vserver-id`\"/>\n<parameter name=\"TENANTID\" value=\"`$tmp.aai-data-vm.tenant-id`\"/>\n<parameter name=\"VNFCNAME\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name`\"/>\n\n","comments":"","outputs":1,"x":2507.883331298828,"y":897.8833312988281,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"d0e455fb.cb2bb","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Update to A&AI Failed for ' + $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name + ' and ' + $tmp.aai-data-vm.vserver-id + ' and ' + $tmp.aai-data-vm.tenant-id + '.' + $error-message`\"/>","comments":"","x":2575.883331298828,"y":972.8833312988281,"z":"dadd0ec.02a1b7","wires":[]},{"id":"dbfe79e5.0b0828","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1766.8833312988281,"y":873.8833312988281,"z":"dadd0ec.02a1b7","wires":[["98b1f0dc.508aa"]]},{"id":"a5ce84b.71763f8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1802.8833312988281,"y":752.8833312988281,"z":"dadd0ec.02a1b7","wires":[["7f85854e.ee1f2c"]]},{"id":"4929d27f.47a514","type":"get-resource","name":"get-resource: A&AI Data for VNFC Name ","xml":"<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vnfc\" key=\"vnfc.vnfc-name = $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name\" pfx=\"tmp.aai-data-vnfc\" >\n\n\n","comments":"","outputs":1,"x":1361.8833312988281,"y":1289.8833312988281,"z":"dadd0ec.02a1b7","wires":[["2b880d65.9c32d2","c37e32cd.bc4068","267fb50b.de5aca"]]},{"id":"2b880d65.9c32d2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1684.8833312988281,"y":1233.8833312988281,"z":"dadd0ec.02a1b7","wires":[["200888dd.0ae66"]]},{"id":"200888dd.0ae66","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1853.8833312988281,"y":1234.8833312988281,"z":"dadd0ec.02a1b7","wires":[["b0b510db.4d195","2e369178.b31f1e","a081a670.f21cc8","de199a12.186958"]]},{"id":"c37e32cd.bc4068","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1350.8833312988281,"y":1704.88330078125,"z":"dadd0ec.02a1b7","wires":[["ce0143e7.ef5088"]]},{"id":"ce0143e7.ef5088","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1518.3833312988281,"y":1695.38330078125,"z":"dadd0ec.02a1b7","wires":[["25856fd3.ffb808","6209c1fb.de06b8"]]},{"id":"25856fd3.ffb808","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Get AnAI Request Failed\"/>\n<parameter name=\"field3\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name`\"/>\n\n","comments":"","outputs":1,"x":1708.8833312988281,"y":1670.1334228515625,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"6209c1fb.de06b8","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Get from A&AI Failed for ' + $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name + '.' + $error-message`\"/>","comments":"","x":1772.8833312988281,"y":1732.6334228515625,"z":"dadd0ec.02a1b7","wires":[]},{"id":"267fb50b.de5aca","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1296.8833312988281,"y":1795.88330078125,"z":"dadd0ec.02a1b7","wires":[["c2b91da1.31212"]]},{"id":"c2b91da1.31212","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1457.8833312988281,"y":1792.88330078125,"z":"dadd0ec.02a1b7","wires":[["1411530d.0e5f25"]]},{"id":"1411530d.0e5f25","type":"save","name":"update: A&AI VNFC","xml":"<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vnfc\" \nkey=\"vnfc.vnfc-name = $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name and \nvserver.vserver-id = $tmp.aai-data-vm.vserver-id AND \ntenant.tenant-id = $tmp.aai-data-vm.tenant-id AND \ncloud-region.region-id = $tmp.aai-data-vm.cloud-region-id \" \nforce=\"true\" local-only=\"false\" pfx=\"tmp.AnAI-data.vnf\" >\n<parameter name=\"prov-status\" value=\"`$tmp.aai-prov-status`\"/>\n<parameter name=\"orchestration-status\" value=\"`$tmp.aai-orch-status`\"/>","comments":"","outputs":1,"x":1676.6333312988281,"y":1789.38330078125,"z":"dadd0ec.02a1b7","wires":[["61314afe.433934"]]},{"id":"61314afe.433934","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1867.8833312988281,"y":1781.88330078125,"z":"dadd0ec.02a1b7","wires":[["c89228c6.2332"]]},{"id":"c89228c6.2332","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2039.6333312988281,"y":1784.3834228515625,"z":"dadd0ec.02a1b7","wires":[["e673bc52.4d3588","ba8f2c00.1cb49"]]},{"id":"e673bc52.4d3588","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Update Request to AnAI Failed\"/>\n<parameter name=\"VSERVERID\" value=\"`$tmp.aai-data-vm.vserver-id`\"/>\n<parameter name=\"TENANTID\" value=\"`$tmp.aai-data-vm.tenant-id`\"/>\n<parameter name=\"VNFCNAME\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name`\"/>\n\n","comments":"","outputs":1,"x":2250.883331298828,"y":1780.8834533691406,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"ba8f2c00.1cb49","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Update to A&AI Failed for ' + $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name + ' and ' + $tmp.aai-data-vm.vserver-id + ' and ' + $tmp.aai-data-vm.tenant-id + '.' + $error-message`\"/>","comments":"","x":2304.883331298828,"y":1841.63330078125,"z":"dadd0ec.02a1b7","wires":[]},{"id":"aa1c8b4a.65bd98","type":"save","name":"save Put VNFC","xml":"<save plugin='org.openecomp.sdnc.sli.aai.AAIService' resource='vnfc' key='vnfc.vnfc-name = $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name' force='true' pfx='tmp.vnfc-payload'>\n<parameter name='nfc-naming-code' value='`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-function-code`'/>\n<parameter name='nfc-function' value='`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-type`'/>\n<parameter name='prov-status' value='`$tmp.aai-prov-status`'/>\n<parameter name='orchestration-status' value='`$tmp.aai-orch-status`'/>\n<parameter name='group-notation' value='`$tmp.group-notation`'/>\n<parameter name='in-maint' value = 'false'/>\n<parameter name='is-closed-loop' value = 'false'/>\n\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vserver\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vserver.vserver-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value='`$tmp.aai-data-vm.vserver-id`'/>\n\n\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"tenant.tenant-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value='`$tmp.aai-data-vm.tenant-id`'/>\n\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"cloud-region.cloud-owner\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"att-aic\"/>\n\n<parameter name=\"relationship-list.relationship[0].relationship-data[3].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[3].relationship-value\" value='`$tmp.aai-data-vm.cloud-region-id`'/>\n\n\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value='`$tmp.aai-data-vnf.vnf-id`'/>\n\n<parameter name=\"relationship-list.relationship[2].related-to\" value=\"vf-module\" />\n<parameter name=\"relationship-list.relationship[2].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[2].relationship-data[0].relationship-value\" value='`$tmp.aai-data-vnf.vnf-id`'/>\n\n<parameter name=\"relationship-list.relationship[2].relationship-data[1].relationship-key\" value=\"vf-module.vf-module-id\" />\n<parameter name=\"relationship-list.relationship[2].relationship-data[1].relationship-value\" value='`$tmp.vf-module-id`'/>\n\n","comments":"","outputs":1,"x":1844.8833312988281,"y":1591.772216796875,"z":"dadd0ec.02a1b7","wires":[["ef0ad117.013118"]]},{"id":"ef0ad117.013118","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2037.3833312988281,"y":1592.272216796875,"z":"dadd0ec.02a1b7","wires":[["61824226.e5de5c"]]},{"id":"61824226.e5de5c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2203.633331298828,"y":1594.772216796875,"z":"dadd0ec.02a1b7","wires":[["e39467f2.9da8e","96bb6e84.7eb65"]]},{"id":"e39467f2.9da8e","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Insert to AnAI Request Failed\"/>\n<parameter name=\"field3\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name`\"/>\n\n","comments":"","outputs":1,"x":2408.133331298828,"y":1566.272216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"96bb6e84.7eb65","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Insert to A&AI Failed for ' + $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vnfc-name + '.' + $error-message`\"/>","comments":"","x":2472.133331298828,"y":1631.272216796875,"z":"dadd0ec.02a1b7","wires":[]},{"id":"adb43ab1.b906a","type":"save","name":"save Put VNFC","xml":"<save plugin='org.openecomp.sdnc.sli.aai.AAIService' resource='vnfc' key='vnfc.vnfc-name = $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name' force='true' pfx='tmp.vnfc-sys-controller'>\n<parameter name='nfc-naming-code' value='`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-function-code`'/>\n<parameter name='nfc-function' value='`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-type`'/>\n<parameter name='prov-status' value='`$tmp.aai-prov-status`'/>\n<parameter name='orchestration-status' value='`$tmp.aai-orch-status`'/>\n<parameter name='in-maint' value = 'false'/>\n<parameter name='is-closed-loop' value = 'false'/>\n<parameter name='ipaddress-v4-oam-vip' value='`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].ipaddress-v4-oam-vip`'/>\n\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vserver\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vserver.vserver-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value='`$tmp.aai-data-vm.vserver-id`'/>\n\n\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"tenant.tenant-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value='`$tmp.aai-data-vm.tenant-id`'/>\n\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"cloud-region.cloud-owner\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"att-aic\"/>\n\n<parameter name=\"relationship-list.relationship[0].relationship-data[3].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[3].relationship-value\" value='`$tmp.aai-data-vm.cloud-region-id`'/>\n\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value='`$tmp.aai-data-vnf.vnf-id`'/>\n\n<parameter name=\"relationship-list.relationship[2].related-to\" value=\"vf-module\" />\n<parameter name=\"relationship-list.relationship[2].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[2].relationship-data[0].relationship-value\" value='`$tmp.aai-data-vnf.vnf-id`'/>\n\n<parameter name=\"relationship-list.relationship[2].relationship-data[1].relationship-key\" value=\"vf-module.vf-module-id\" />\n<parameter name=\"relationship-list.relationship[2].relationship-data[1].relationship-value\" value='`$tmp.vf-module-id`'/>\n\n\n\n\n","comments":"","outputs":1,"x":2133.883331298828,"y":742.88330078125,"z":"dadd0ec.02a1b7","wires":[["d7900a9c.7da84"]]},{"id":"d7900a9c.7da84","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2304.883331298828,"y":745.88330078125,"z":"dadd0ec.02a1b7","wires":[["72b78381.72e564"]]},{"id":"72b78381.72e564","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2454.883331298828,"y":748.88330078125,"z":"dadd0ec.02a1b7","wires":[["6ec9ceda.df3c08","3e702e5c.460b52"]]},{"id":"6ec9ceda.df3c08","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Insert to AnAI Request Failed\"/>\n<parameter name=\"field3\" value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name`\"/>\n\n","comments":"","outputs":1,"x":2661.883331298828,"y":739.88330078125,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"3e702e5c.460b52","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Insert to A&AI Failed for ' + $service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller[$j].vnfc-name + '.' + $error-message`\"/>","comments":"","x":2632.883331298828,"y":799.88330078125,"z":"dadd0ec.02a1b7","wires":[]},{"id":"5d1fa6e4.9044d","type":"switchNode","name":"switch: vnf config parameters length","xml":"<switch test=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters_length`\">","comments":"","outputs":1,"x":452.8833312988281,"y":331.8833312988281,"z":"dadd0ec.02a1b7","wires":[["6d251fe1.ce948","8116154b.78897","2678a5a8.92149a"]]},{"id":"6d251fe1.ce948","type":"other","name":"outcome: Length=0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":725.8833312988281,"y":285.8833312988281,"z":"dadd0ec.02a1b7","wires":[["23922609.736d32"]]},{"id":"8116154b.78897","type":"other","name":"outcome: NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":717.8833312988281,"y":328.8833312988281,"z":"dadd0ec.02a1b7","wires":[["23922609.736d32"]]},{"id":"23922609.736d32","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":926.8833312988281,"y":346.8833312988281,"z":"dadd0ec.02a1b7","wires":[["e83f7841.59349","bcff289c.8387e"]]},{"id":"374baba4.2826c4","type":"switchNode","name":"switch: vnf config parameters length","xml":"<switch test=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].system-controller_length`\">","comments":"","outputs":1,"x":917.8833312988281,"y":440.8833312988281,"z":"dadd0ec.02a1b7","wires":[["21fe012c.7735de","d44acbe9.0fc8d","58a1a997.e4de58"]]},{"id":"21fe012c.7735de","type":"other","name":"outcome: Length=0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1202.8833312988281,"y":420.8833312988281,"z":"dadd0ec.02a1b7","wires":[["7a704acc.29114c"]]},{"id":"d44acbe9.0fc8d","type":"other","name":"outcome: NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1200.8833312988281,"y":456.8833312988281,"z":"dadd0ec.02a1b7","wires":[["7a704acc.29114c"]]},{"id":"7a704acc.29114c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1408.8833312988281,"y":364.8833312988281,"z":"dadd0ec.02a1b7","wires":[["bac9d9bd.31db88","5bd6775e.e90f"]]},{"id":"bac9d9bd.31db88","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"System Controller VM and VNFC data not in config tree\"/>\n\n\n","comments":"","outputs":1,"x":1573.8833312988281,"y":385.8833312988281,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"61e15e5d.3c6e6","type":"switchNode","name":"switch: vnf config parameters length","xml":"<switch test=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload_length`\">","comments":"","outputs":1,"x":938.8833312988281,"y":954.8833312988281,"z":"dadd0ec.02a1b7","wires":[["d1d3cc7a.d03f38","bef5e49.0ae0a18","5aca3756.8f5d68"]]},{"id":"d1d3cc7a.d03f38","type":"other","name":"outcome: Length=0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1211.8833312988281,"y":866.8833312988281,"z":"dadd0ec.02a1b7","wires":[["7698fee1.31c398"]]},{"id":"bef5e49.0ae0a18","type":"other","name":"outcome: NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1200.8833312988281,"y":919.8833312988281,"z":"dadd0ec.02a1b7","wires":[["7698fee1.31c398"]]},{"id":"7698fee1.31c398","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1395.8833312988281,"y":890.8833312988281,"z":"dadd0ec.02a1b7","wires":[["4c33b874.1472a8","50b953b8.7fd2b4"]]},{"id":"4c33b874.1472a8","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Payload VM and VNFC data not in config tree\"/>\n\n\n","comments":"","outputs":1,"x":1575.8833312988281,"y":963.8833312988281,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"e83f7841.59349","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"RETURNED RESPONSEMESSAGE\"/>\n<parameter name=\"RESPONSEMSG\" value=\"`$response-message`\"/>\n<parameter name=\"ERRORMSG\" value=\"`$error-message`\"/>\n<parameter name=\"field3\" value=\"VM and VNFC data not in config tree.Stop the flow\"/>\n\n","comments":"","outputs":1,"x":1110.8833312988281,"y":378.8833312988281,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"b5511dc5.89e028","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":836.8833312988281,"y":173.88333129882812,"z":"dadd0ec.02a1b7","wires":[["ad6db0f2.c3e3d8","ee40fdd3.06b65"]]},{"id":"ad6db0f2.c3e3d8","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Get Request to AnAI Failed\"/>\n<parameter name=\"field3\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n<parameter name=\"ErrorMessage\" value=\"`$tmp.aai-data-vnf.error-message`\"/>\n<parameter name=\"HTTP Code\" value=\"`$tmp.aai-data-vnf.error.http.response-code`\"/>","comments":"","outputs":1,"x":1009.8833312988281,"y":151.88333129882812,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"ee40fdd3.06b65","type":"set","name":"set: Append to error message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Get from A&AI Failed for ' + $service-configuration-notification-input.service-information.service-instance-id + '.' + $tmp.aai-data-vnf.error-message + '.HTTP Code:' + $tmp.aai-data-vnf.error.http.response-code + '.' + $error-message `\"/>\n","comments":"","x":1067.8833312988281,"y":189.88333129882812,"z":"dadd0ec.02a1b7","wires":[]},{"id":"bcff289c.8387e","type":"set","name":"set: Append to error message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'VM and VNFC Data not found in config tree.' + $error-message `\"/>\n","comments":"","x":1168.8833312988281,"y":333.8833312988281,"z":"dadd0ec.02a1b7","wires":[]},{"id":"5bd6775e.e90f","type":"set","name":"set: Append to error message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'System Controller VM and VNFC Data not found in config tree.' + $error-message `\"/>\n","comments":"","x":1641.8833312988281,"y":343.8833312988281,"z":"dadd0ec.02a1b7","wires":[]},{"id":"50b953b8.7fd2b4","type":"set","name":"set: Append to error message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Payload VM and VNFC Data not found in config tree.' + $error-message `\"/>\n","comments":"","x":1643.8833312988281,"y":915.8833312988281,"z":"dadd0ec.02a1b7","wires":[]},{"id":"2678a5a8.92149a","type":"other","name":"outcome: Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":710.8833312988281,"y":374.8833312988281,"z":"dadd0ec.02a1b7","wires":[["b103ce65.33fce8"]]},{"id":"b103ce65.33fce8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":189.88333129882812,"y":437.8833312988281,"z":"dadd0ec.02a1b7","wires":[["24de5b4.ca9c024","d674bc1d.c068e"]]},{"id":"58a1a997.e4de58","type":"other","name":"outcome: Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1200.8833312988281,"y":499.8833312988281,"z":"dadd0ec.02a1b7","wires":[["85cc2474.418408"]]},{"id":"85cc2474.418408","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":662.8833312988281,"y":559.8833312988281,"z":"dadd0ec.02a1b7","wires":[["abeef1bf.9c7088"]]},{"id":"5aca3756.8f5d68","type":"other","name":"outcome: Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1201.8833312988281,"y":971.8833312988281,"z":"dadd0ec.02a1b7","wires":[["c656724.3e1799"]]},{"id":"c656724.3e1799","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1105.8833312988281,"y":1018.8833312988281,"z":"dadd0ec.02a1b7","wires":[["21b151fc.80e8d6"]]},{"id":"2e369178.b31f1e","type":"switchNode","name":"Check Odd or Even VM Name","xml":"<switch test=\"`((( $tmp.vm_last_number / 2 ) * 2 ) == $tmp.vm_last_number )`\">\n","comments":"","outputs":1,"x":2156.1332092285156,"y":1306.3833312988281,"z":"dadd0ec.02a1b7","wires":[["5e4c34d5.73ae44","252740d6.27f8d"]]},{"id":"b0b510db.4d195","type":"set","name":"Set VM Name & Mated Pair","xml":"<set>\n<parameter name ='tmp.vm-name' value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vm-name`\"/>\n<parameter name ='tmp.vm-name-length' value=\"`length($service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].vm-name)`\"/>\n<parameter name='tmp.mated-pair-number' value=\"`$service-data.vnf-config-parameters-list.vnf-config-parameters[$i].payload[$j].mated-pair-number`\"/>\n\n\n","comments":"","x":2141.133087158203,"y":1202.8833312988281,"z":"dadd0ec.02a1b7","wires":[]},{"id":"230a3fb3.b2f42","type":"set","name":"Set Even Group Notation","xml":"<set>\n<parameter name='tmp.group-notation' value=\"`$tmp.odd-group-notation`\"/>\n","comments":"","x":2625.383331298828,"y":1329.8833312988281,"z":"dadd0ec.02a1b7","wires":[]},{"id":"5e4c34d5.73ae44","type":"outcomeFalse","name":"Odd Pair","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2418.133331298828,"y":1239.8833312988281,"z":"dadd0ec.02a1b7","wires":[["4fd78629.fd2a"]]},{"id":"252740d6.27f8d","type":"other","name":"Even Pair","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2421.883331298828,"y":1329.8833312988281,"z":"dadd0ec.02a1b7","wires":[["230a3fb3.b2f42"]]},{"id":"4fd78629.fd2a","type":"set","name":"Set Odd Group Notation","xml":"<set>\n<parameter name='tmp.odd-group-notation' value=\"`$tmp.mated-pair-number`\"/>\n<parameter name='tmp.group-notation' value=\"`$tmp.mated-pair-number`\"/>\n","comments":"","x":2611.883331298828,"y":1238.6333312988281,"z":"dadd0ec.02a1b7","wires":[]},{"id":"a081a670.f21cc8","type":"set","name":"Get VM Name last digit","xml":"<set>\n<parameter name='tmp.vm_last_number' value='`substr($tmp.vm-name, $tmp.vm-name-length - 1, $tmp.vm-name-length)`' />\n","comments":"","x":2125.5162658691406,"y":1255.5166320800781,"z":"dadd0ec.02a1b7","wires":[]},{"id":"7f85854e.ee1f2c","type":"call","name":"call: GetVfModuleInfo","xml":"<call module=\"APPC\" rpc=\"GetVfModuleInfo\" mode=\"sync\">","comments":"","outputs":1,"x":1719.8833312988281,"y":656.772216796875,"z":"dadd0ec.02a1b7","wires":[["b49a6650.45cd5"]]},{"id":"b49a6650.45cd5","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1892.8833312988281,"y":657.772216796875,"z":"dadd0ec.02a1b7","wires":[["503b2662.b77ba8"]]},{"id":"503b2662.b77ba8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2046.8833312988281,"y":658.772216796875,"z":"dadd0ec.02a1b7","wires":[["f5d65eb9.5a7a98"]]},{"id":"f5d65eb9.5a7a98","type":"switchNode","name":"switch: tmp.vf-module-id","xml":"<switch test=\"`$tmp.vf-module-id`\">","comments":"","outputs":1,"x":2259.883331298828,"y":647.772216796875,"z":"dadd0ec.02a1b7","wires":[["737ffceb.a4ea1c","ec18370e.90a828"]]},{"id":"737ffceb.a4ea1c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2461.883331298828,"y":648.772216796875,"z":"dadd0ec.02a1b7","wires":[["19f1001e.534b4"]]},{"id":"19f1001e.534b4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2614.883331298828,"y":647.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"ec18370e.90a828","type":"outcome","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":2324.883331298828,"y":689.772216796875,"z":"dadd0ec.02a1b7","wires":[["adb43ab1.b906a"]]},{"id":"de199a12.186958","type":"call","name":"call: GetVfModuleInfo","xml":"<call module=\"APPC\" rpc=\"GetVfModuleInfo\" mode=\"sync\">","comments":"","outputs":1,"x":2059.883331298828,"y":1397.772216796875,"z":"dadd0ec.02a1b7","wires":[["64552bae.841f74","47c81582.0e394c"]]},{"id":"64552bae.841f74","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2261.883331298828,"y":1392.772216796875,"z":"dadd0ec.02a1b7","wires":[["70e5eccb.c4034c"]]},{"id":"70e5eccb.c4034c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2419.883331298828,"y":1392.772216796875,"z":"dadd0ec.02a1b7","wires":[["33a190ec.6c9318"]]},{"id":"33a190ec.6c9318","type":"switchNode","name":"switch: tmp.vf-module-id","xml":"<switch test=\"`$tmp.vf-module-id`\">","comments":"","outputs":1,"x":2636.883331298828,"y":1395.772216796875,"z":"dadd0ec.02a1b7","wires":[["7ed8ab5f.887e7c"]]},{"id":"389d5df6.4e0f92","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2613.883331298828,"y":1455.772216796875,"z":"dadd0ec.02a1b7","wires":[[]]},{"id":"7ed8ab5f.887e7c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2446.883331298828,"y":1453.772216796875,"z":"dadd0ec.02a1b7","wires":[["389d5df6.4e0f92"]]},{"id":"47c81582.0e394c","type":"outcome","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":2267.883331298828,"y":1484.772216796875,"z":"dadd0ec.02a1b7","wires":[["aa1c8b4a.65bd98"]]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-vnfc-info.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-vnfc-info.json new file mode 100644 index 000000000..7e80246b7 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-vnfc-info.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"e04ef47c.3215f8","type":"get-resource","name":"get-resource: A&AI Data for VServer","xml":"<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vserver\" \nkey=\"vserver.vserver-id = $aaiinfo[$k].vserverid AND \ntenant.tenant-id = $aaiinfo[$k].tenantid AND\ncloud-owner.cloud-owner = $aaiinfo[$k].cloudowner AND\ncloud-owner.cloud-region-id = $aaiinfo[$k].cloudregionid\"\npfx=\"tmp.vserver\" >\n\n","comments":"","outputs":1,"x":687,"y":242,"z":"41b72404.afec6c","wires":[["90723a84.da0ac8","1641aacf.1bb8d5","ce2e4797.e5dce8"]]},{"id":"db0c2b7a.2249b8","type":"dgstart","name":"DGSTART","outputs":1,"x":182,"y":88,"z":"41b72404.afec6c","wires":[["b4a8117e.15ffe"]]},{"id":"b4a8117e.15ffe","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":353,"y":88,"z":"41b72404.afec6c","wires":[["a986558f.a02158"]]},{"id":"a986558f.a02158","type":"method","name":"method update-vnfc-info","xml":"<method rpc='update-vnfc-info' mode='sync'>\n","comments":"","outputs":1,"x":571,"y":87,"z":"41b72404.afec6c","wires":[["f40274ec.45dc48"]]},{"id":"f40274ec.45dc48","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":191,"y":169,"z":"41b72404.afec6c","wires":[["35510db3.59edd2","7914ac5c.128d94"]]},{"id":"35510db3.59edd2","type":"set","name":"set vnfclistlen=0","xml":"<set>\n<parameter name='vnfclistlen' value='0' />\n","comments":"","x":389,"y":169,"z":"41b72404.afec6c","wires":[]},{"id":"7914ac5c.128d94","type":"for","name":"for: ...aaiinfo[]","xml":"<for atomic=\"true\" index=\"k\" start=\"0\" end=\"`$listlen`\" >","comments":"","outputs":1,"x":221,"y":242,"z":"41b72404.afec6c","wires":[["3045b1d2.35ddce"]]},{"id":"3045b1d2.35ddce","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":425,"y":242,"z":"41b72404.afec6c","wires":[["e04ef47c.3215f8"]]},{"id":"90723a84.da0ac8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":950,"y":200,"z":"41b72404.afec6c","wires":[["779f4d7e.48c3a4"]]},{"id":"1641aacf.1bb8d5","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":932,"y":262,"z":"41b72404.afec6c","wires":[["779f4d7e.48c3a4"]]},{"id":"ce2e4797.e5dce8","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":175,"y":361,"z":"41b72404.afec6c","wires":[["d50c31cf.afdcb"]]},{"id":"779f4d7e.48c3a4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1110,"y":231,"z":"41b72404.afec6c","wires":[["19b92c9d.0883c3","978de4c4.502568"]]},{"id":"d50c31cf.afdcb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":345,"y":359,"z":"41b72404.afec6c","wires":[["242033b4.b7cefc"]]},{"id":"242033b4.b7cefc","type":"switchNode","name":"switch: relationship length","xml":"<switch test=\"`$tmp.vserver.relationship-list.relationship_length`\">","comments":"","outputs":1,"x":592,"y":356,"z":"41b72404.afec6c","wires":[["4b73af6.16da35","9dee33de.63fe4"]]},{"id":"9dee33de.63fe4","type":"other","name":"Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":148,"y":470,"z":"41b72404.afec6c","wires":[["9d7a03cc.e03f9"]]},{"id":"4b73af6.16da35","type":"outcome","name":"NULL","xml":"<outcome value=\"\">","comments":"","outputs":1,"x":837,"y":360,"z":"41b72404.afec6c","wires":[["ad47714f.d22d7"]]},{"id":"ad47714f.d22d7","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1000,"y":362,"z":"41b72404.afec6c","wires":[[]]},{"id":"9d7a03cc.e03f9","type":"for","name":"for: ...relationship[]","xml":"<for atomic=\"true\" index=\"i\" start=\"0\" end=\"`$tmp.vserver.relationship-list.relationship_length`\" >","comments":"","outputs":1,"x":311,"y":472,"z":"41b72404.afec6c","wires":[["492c0783.96c068"]]},{"id":"2c5f0c84.d10154","type":"switchNode","name":"switch: ...related-to","xml":"<switch test=\"`$tmp.vserver.relationship-list.relationship[$i].related-to`\">","comments":"","outputs":1,"x":416,"y":534,"z":"41b72404.afec6c","wires":[["bc7fa4da.47b9a8"]]},{"id":"bc7fa4da.47b9a8","type":"outcome","name":"vnfc","xml":"<outcome value=\"vnfc\">","comments":"","outputs":1,"x":606,"y":531,"z":"41b72404.afec6c","wires":[["11b7918.6ecea6f"]]},{"id":"11b7918.6ecea6f","type":"for","name":"for: ...relationship-data[]","xml":"<for atomic=\"true\" index=\"j\" start=\"0\" end=\"`$tmp.vserver.relationship-list.relationship[$i].relationship-data_length`\" >","comments":"","outputs":1,"x":810,"y":524,"z":"41b72404.afec6c","wires":[["ee37b8a1.0891d8"]]},{"id":"ee37b8a1.0891d8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":205,"y":627,"z":"41b72404.afec6c","wires":[["8445cf0d.2611f"]]},{"id":"8445cf0d.2611f","type":"switchNode","name":"switch: ...relationship-key","xml":"<switch test=\"`$tmp.vserver.relationship-list.relationship[$i].relationship-data[$j].relationship-key`\">","comments":"","outputs":1,"x":428,"y":627,"z":"41b72404.afec6c","wires":[["549f9c75.4154b4"]]},{"id":"549f9c75.4154b4","type":"outcome","name":"vnfc-name","xml":"<outcome value=\"vnfc.vnfc-name\">","comments":"","outputs":1,"x":636,"y":626,"z":"41b72404.afec6c","wires":[["4324c492.53486c"]]},{"id":"492c0783.96c068","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":199,"y":539,"z":"41b72404.afec6c","wires":[["2c5f0c84.d10154"]]},{"id":"978de4c4.502568","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Get from A&AI Failed for ' + $aaiinfo[$k].vserverid + '.' + $error-message`\"/>","comments":"","x":1350,"y":252,"z":"41b72404.afec6c","wires":[]},{"id":"19b92c9d.0883c3","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Get Request to AnAI Failed\"/>\n<parameter name=\"field3\" value=\"`$service-configuration-notification-input.service-information.service-instance-id`\"/>\n\n","comments":"","outputs":1,"x":1279,"y":183,"z":"41b72404.afec6c","wires":[[]]},{"id":"b826abf3.300a78","type":"save","name":"update: A&AI VNFC","xml":"<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vnfc\" \nkey=\"vnfc.vnfc-name = $tmp.vserver.relationship-list.relationship[$i].relationship-data[$j].relationship-value and \nvserver.vserver-id = $aaiinfo[$k].vserverid AND \ntenant.tenant-id = $aaiinfo[$k].tenantid AND \ncloud-region.region-id = $aaiinfo[$k].cloudregionid \" \nforce=\"true\" local-only=\"false\" pfx=\"tmp.AnAI-data.vnf\" >\n<parameter name=\"prov-status\" value=\"`$tmp.aai-prov-status`\"/>\n<parameter name=\"orchestration-status\" value=\"`$tmp.aai-orch-status`\"/>","comments":"","outputs":1,"x":1034,"y":632,"z":"41b72404.afec6c","wires":[["7cdb0cb0.1522c4"]]},{"id":"7cdb0cb0.1522c4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1217,"y":633,"z":"41b72404.afec6c","wires":[["c7cfd40b.5685e8"]]},{"id":"c7cfd40b.5685e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1376,"y":635,"z":"41b72404.afec6c","wires":[["699e97c2.6a8028","e8a05782.1f7848"]]},{"id":"699e97c2.6a8028","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Update Request to AnAI Failed\"/>\n<parameter name=\"VNFCNAME\" value=\"`$vnfcinfo[$vnfclistlen].vnfcname`\"/>\n<parameter name=\"VSERVERID\" value=\"`$vnfcinfo[$vnfclistlen].vserverid`\"/>\n<parameter name=\"TENANTID\" value=\"`$vnfcinfo[$vnfclistlen].tenantid`\"/>\n\n","comments":"","outputs":1,"x":1559,"y":592,"z":"41b72404.afec6c","wires":[[]]},{"id":"e8a05782.1f7848","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Update to A&AI Failed for VNFC ' + $vnfcinfo[$vnfclistlen].vnfcname + '.' + $error-message`\"/>","comments":"","x":1621,"y":664,"z":"41b72404.afec6c","wires":[]},{"id":"4324c492.53486c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":812,"y":628,"z":"41b72404.afec6c","wires":[["b826abf3.300a78","4bca8618.535918"]]},{"id":"4bca8618.535918","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"VNFCNAME\" value=\"`$tmp.vserver.relationship-list.relationship[$i].relationship-data[$j].relationship-value`\"/>\n<parameter name=\"VSERVERID\" value=\"`$aaiinfo[$k].vserverid`\"/>\n<parameter name=\"TENANTID\" value=\"`$aaiinfo[$k].tenantid`\"/>\n<parameter name=\"CLOUDOWNER\" value=\"`$aaiinfo[$k].cloudowner`\"/>\n<parameter name=\"CLOUDREGIONID\" value=\"`$aaiinfo[$k].cloudregionid`\"/>\n","comments":"","outputs":1,"x":1005,"y":577,"z":"41b72404.afec6c","wires":[[]]}] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-vserver-info.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-vserver-info.json new file mode 100644 index 000000000..b451430ae --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Appc-API/Appc-API_update-vserver-info.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +[{"id":"fb57c265.1ba01","type":"dgstart","name":"DGSTART","outputs":1,"x":219,"y":54,"z":"7ec136e2.e63208","wires":[["185188b4.36cb77"]]},{"id":"185188b4.36cb77","type":"service-logic","name":"Appc-API 4.0.0","module":"Appc-API","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='Appc-API' version='4.0.0'>","outputs":1,"x":390,"y":52,"z":"7ec136e2.e63208","wires":[["d3b34772.6e59f8"]]},{"id":"d3b34772.6e59f8","type":"method","name":"method update-vserver-info","xml":"<method rpc='update-vserver-info' mode='sync'>\n","comments":"","outputs":1,"x":618,"y":54,"z":"7ec136e2.e63208","wires":[["531cec36.49f504"]]},{"id":"531cec36.49f504","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":208,"y":108,"z":"7ec136e2.e63208","wires":[["875b1407.c421d8","41c061d8.a53ca","73a4109.f924ef"]]},{"id":"875b1407.c421d8","type":"set","name":"set listlen=0","xml":"<set>\n<parameter name='listlen' value='0' />\n","comments":"","x":386,"y":110,"z":"7ec136e2.e63208","wires":[]},{"id":"41c061d8.a53ca","type":"switchNode","name":"switch: relationship length","xml":"<switch test=\"`$tmp.aai-data-vnf.relationship-list.relationship_length`\">","comments":"","outputs":1,"x":240,"y":182,"z":"7ec136e2.e63208","wires":[["abcca544.fa55e8","4d4625e4.11b96c"]]},{"id":"4d4625e4.11b96c","type":"other","name":"Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":441,"y":263,"z":"7ec136e2.e63208","wires":[["782291d7.96aa1"]]},{"id":"abcca544.fa55e8","type":"outcome","name":"NULL","xml":"<outcome value=\"\">","comments":"","outputs":1,"x":448,"y":181,"z":"7ec136e2.e63208","wires":[["53fc41ee.f2a9f"]]},{"id":"53fc41ee.f2a9f","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":584,"y":180,"z":"7ec136e2.e63208","wires":[["f7e3690.45d8a98"]]},{"id":"4d016af.3128194","type":"for","name":"for: ...relationship[]","xml":"<for atomic=\"true\" index=\"i\" start=\"0\" end=\"`$tmp.aai-data-vnf.relationship-list.relationship_length`\" >","comments":"","outputs":1,"x":779,"y":269,"z":"7ec136e2.e63208","wires":[["1a71448.22d60bc"]]},{"id":"9b3225cd.90bf18","type":"switchNode","name":"switch: ...related-to","xml":"<switch test=\"`$tmp.aai-data-vnf.relationship-list.relationship[$i].related-to`\">","comments":"","outputs":1,"x":651,"y":343,"z":"7ec136e2.e63208","wires":[["df84265d.f084a8"]]},{"id":"df84265d.f084a8","type":"outcome","name":"vserver","xml":"<outcome value=\"vserver\">","comments":"","outputs":1,"x":376,"y":433,"z":"7ec136e2.e63208","wires":[["53e2f95c.eafab8"]]},{"id":"96f6935c.60847","type":"for","name":"for: ...relationship-data[]","xml":"<for atomic=\"true\" index=\"j\" start=\"0\" end=\"`$tmp.aai-data-vnf.relationship-list.relationship[$i].relationship-data_length`\" >","comments":"","outputs":1,"x":774,"y":429,"z":"7ec136e2.e63208","wires":[["f4ad596a.fd0f58"]]},{"id":"7255506e.be107","type":"switchNode","name":"switch: ...relationship-key","xml":"<switch test=\"`$tmp.aai-data-vnf.relationship-list.relationship[$i].relationship-data[$j].relationship-key`\">","comments":"","outputs":1,"x":1281,"y":406,"z":"7ec136e2.e63208","wires":[["93748d51.43dc5","d91de34.d004d2","8770a1e7.506fc","205912c3.6a437e"]]},{"id":"93748d51.43dc5","type":"outcome","name":"vserver-id","xml":"<outcome value=\"vserver.vserver-id\">","comments":"","outputs":1,"x":1515.5,"y":340,"z":"7ec136e2.e63208","wires":[["a9a68c63.9d993"]]},{"id":"d91de34.d004d2","type":"outcome","name":"tenant-id","xml":"<outcome value=\"tenant.tenant-id\">","comments":"","outputs":1,"x":1509,"y":413,"z":"7ec136e2.e63208","wires":[["bcb84af7.25e408"]]},{"id":"8770a1e7.506fc","type":"outcome","name":"cloud-owner","xml":"<outcome value=\"cloud-region.cloud-owner\">","comments":"","outputs":1,"x":1518,"y":502,"z":"7ec136e2.e63208","wires":[["b647ebc2.e53768"]]},{"id":"205912c3.6a437e","type":"outcome","name":"cloud-region-id","xml":"<outcome value=\"cloud-region.cloud-region-id\">","comments":"","outputs":1,"x":1518,"y":591,"z":"7ec136e2.e63208","wires":[["14d7bb26.c3cfd5"]]},{"id":"a9a68c63.9d993","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1698,"y":339,"z":"7ec136e2.e63208","wires":[["699f0edf.474f4"]]},{"id":"bcb84af7.25e408","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1699,"y":413,"z":"7ec136e2.e63208","wires":[["cb69969f.96fd98"]]},{"id":"b647ebc2.e53768","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1711,"y":503,"z":"7ec136e2.e63208","wires":[["1fc1517e.50999f"]]},{"id":"14d7bb26.c3cfd5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1719,"y":582,"z":"7ec136e2.e63208","wires":[["c95c710e.e3083"]]},{"id":"699f0edf.474f4","type":"set","name":"set vserverid","xml":"<set>\n<parameter name=\"aaiinfo[$listlen].vserverid\" value=\"`$tmp.aai-data-vnf.relationship-list.relationship[$i].relationship-data[$j].relationship-value`\" />\n","comments":"","x":1940,"y":346,"z":"7ec136e2.e63208","wires":[]},{"id":"cb69969f.96fd98","type":"set","name":"set tenantid","xml":"<set>\n<parameter name='aaiinfo[$listlen].tenantid' value='`$tmp.aai-data-vnf.relationship-list.relationship[$i].relationship-data[$j].relationship-value`' />\n","comments":"","x":1947,"y":413,"z":"7ec136e2.e63208","wires":[]},{"id":"1fc1517e.50999f","type":"set","name":"set cloudowner","xml":"<set>\n<parameter name='aaiinfo[$listlen].cloudowner' value='`$tmp.aai-data-vnf.relationship-list.relationship[$i].relationship-data[$j].relationship-value`' />\n","comments":"","x":1946,"y":498,"z":"7ec136e2.e63208","wires":[]},{"id":"c95c710e.e3083","type":"set","name":"set cloudregion","xml":"<set>\n<parameter name='aaiinfo[$listlen].cloudregionid' value='`$tmp.aai-data-vnf.relationship-list.relationship[$i].relationship-data[$j].relationship-value`' />\n","comments":"","x":1933,"y":571,"z":"7ec136e2.e63208","wires":[]},{"id":"f4ad596a.fd0f58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":994,"y":430,"z":"7ec136e2.e63208","wires":[["7255506e.be107"]]},{"id":"6ede6908.924968","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"VSERVERID\" value=\"`$aaiinfo[$listlen].vserverid`\"/>\n<parameter name=\"TENANTID\" value=\"`$aaiinfo[$listlen].tenantid`\"/>\n<parameter name=\"CLOUDOWNER\" value=\"`$aaiinfo[$listlen].cloudowner`\"/>\n<parameter name=\"CLOUDREGIONID\" value=\"`$aaiinfo[$listlen].cloudregionid`\"/>\n","comments":"","outputs":1,"x":740,"y":590,"z":"7ec136e2.e63208","wires":[[]]},{"id":"f7e3690.45d8a98","type":"set","name":"set listlen=0","xml":"<set>\n<parameter name='listlen' value='0' />\n","comments":"","x":736,"y":177,"z":"7ec136e2.e63208","wires":[]},{"id":"9efd4b8.e1f9eb8","type":"set","name":"increment listlen","xml":"<set>\n\t<parameter name='listlen' value='`$listlen + 1`' />\n\n","comments":"","x":763,"y":778,"z":"7ec136e2.e63208","wires":[]},{"id":"8701a0e1.96a92","type":"save","name":"update: A&AI ( VM)","xml":"<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" resource=\"vserver\" \nkey=\"vserver.vserver-id = $aaiinfo[$listlen].vserverid AND \ntenant.tenant-id = $aaiinfo[$listlen].tenantid AND\ncloud-region.cloud-owner = $aaiinfo[$listlen].cloudowner AND\ncloud-region.cloud-region-id = $aaiinfo[$listlen].cloudregionid\"\n force=\"true\" local-only=\"false\" pfx=\"tmp.AnAI-data.vnf\" >\n<parameter name=\"prov-status\" value=\"`$tmp.aai-prov-status`\"/>\n","comments":"","outputs":1,"x":769.5,"y":654,"z":"7ec136e2.e63208","wires":[["37951ea8.1137b2"]]},{"id":"37951ea8.1137b2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":963.5,"y":654,"z":"7ec136e2.e63208","wires":[["b793f606.57c9d8"]]},{"id":"b793f606.57c9d8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1132.5,"y":655,"z":"7ec136e2.e63208","wires":[["40a42380.b197ac","e7af383f.fc57f8"]]},{"id":"40a42380.b197ac","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Update Request to AnAI Failed\"/>\n<parameter name=\"VSERVERID\" value=\"`$aaiinfo[$i].vserverid`\"/>\n<parameter name=\"TENANTID\" value=\"`$aaiinfo[$i].tenantid`\"/>\n\n","comments":"","outputs":1,"x":1331.5,"y":635,"z":"7ec136e2.e63208","wires":[[]]},{"id":"e7af383f.fc57f8","type":"set","name":"set: Append to error message","xml":"<set>\n\t <parameter name=\"error-message\" value=\"`'Update to A&AI Failed for ' + $aaiinfo[$i].vserverid + ' and ' + $aaiinfo[$i].tenantid + '.' + $error-message`\"/>","comments":"","x":1406.5,"y":696,"z":"7ec136e2.e63208","wires":[]},{"id":"53e2f95c.eafab8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":552,"y":431,"z":"7ec136e2.e63208","wires":[["96f6935c.60847","8701a0e1.96a92","9efd4b8.e1f9eb8","6ede6908.924968"]]},{"id":"782291d7.96aa1","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":599,"y":267,"z":"7ec136e2.e63208","wires":[["4d016af.3128194"]]},{"id":"1a71448.22d60bc","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":453,"y":343,"z":"7ec136e2.e63208","wires":[["9b3225cd.90bf18"]]},{"id":"73a4109.f924ef","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"RELATIONSHIPLEN\" value=\"`$tmp.aai-data-vnf.relationship-list.relationship_length`\"/>\n\n","comments":"","outputs":1,"x":375,"y":145,"z":"7ec136e2.e63208","wires":[[]]}] |