summaryrefslogtreecommitdiffstats
path: root/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getPolicyType.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getPolicyType.json')
-rw-r--r--platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getPolicyType.json651
1 files changed, 441 insertions, 210 deletions
diff --git a/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getPolicyType.json b/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getPolicyType.json
index fcfe11ec..5a0d4ac0 100644
--- a/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getPolicyType.json
+++ b/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getPolicyType.json
@@ -1,6 +1,6 @@
[
{
- "id": "deb6b7ae.432f48",
+ "id": "5b092693.8b31a8",
"type": "service-logic",
"name": "A1-ADAPTER-API ${project.version}",
"module": "A1-ADAPTER-API",
@@ -8,620 +8,851 @@
"comments": "",
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='A1-ADAPTER-API' version='${project.version}'>",
"outputs": 1,
- "x": 227.00390625,
- "y": 105.00390625,
- "z": "4e8e4e8b.e7eb7",
+ "x": 184,
+ "y": 97.00000095367432,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "42af6ba5.ed05e4"
+ "afc11ca.4c58de"
]
]
},
{
- "id": "42af6ba5.ed05e4",
+ "id": "afc11ca.4c58de",
"type": "method",
"name": "method getPolicyType",
"xml": "<method rpc='getPolicyType' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 290.00391387939453,
- "y": 228.00391578674316,
- "z": "4e8e4e8b.e7eb7",
+ "x": 247.00000762939453,
+ "y": 220.00001049041748,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "7d583e57.3a038"
+ "3ad9b2ad.8bd4de"
]
]
},
{
- "id": "14acd312.55d52d",
+ "id": "6646c270.0174cc",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Get Policy Type from Near RT RIC ID\"/>\n<parameter name=\"field2\" value=\"`$get-policy-type-input.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$get-policy-type-input.policy-type-id`\"/>",
"comments": "",
"outputs": 1,
- "x": 755.0039329528809,
- "y": 41.003905296325684,
- "z": "4e8e4e8b.e7eb7",
+ "x": 712.0000267028809,
+ "y": 33,
+ "z": "b55eea1d.a59fe8",
"wires": [
[]
]
},
{
- "id": "7d583e57.3a038",
+ "id": "3ad9b2ad.8bd4de",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 493.00390625,
- "y": 179.00390625,
- "z": "4e8e4e8b.e7eb7",
+ "x": 450,
+ "y": 171.00000095367432,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "14acd312.55d52d",
- "278bea58.810416",
- "9f2d6793.a34c08",
- "656e0fe4.4c146",
- "699ddeff.ea20c"
+ "6646c270.0174cc",
+ "1372436.3cfc4bd",
+ "48c86cd1.d4ec04",
+ "7589e079.778f",
+ "610eb9a7.c191a8"
]
]
},
{
- "id": "71079a32.757f84",
+ "id": "217182fc.bc476e",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 160.00390625,
- "y": 41.00390625,
- "z": "4e8e4e8b.e7eb7",
+ "x": 117,
+ "y": 33.000000953674316,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "deb6b7ae.432f48"
+ "5b092693.8b31a8"
]
]
},
{
- "id": "278bea58.810416",
+ "id": "1372436.3cfc4bd",
"type": "set",
"name": "set default status value",
"xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='getPolicyTypes executed successfully' />",
"comments": "",
- "x": 792.0040130615234,
- "y": 94.00390434265137,
- "z": "4e8e4e8b.e7eb7",
+ "x": 749.0001068115234,
+ "y": 85.99999904632568,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "9f2d6793.a34c08",
+ "id": "48c86cd1.d4ec04",
"type": "execute",
"name": "execute Properties",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/a1-adapter-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 792.00390625,
- "y": 147.00390625,
- "z": "4e8e4e8b.e7eb7",
+ "x": 749,
+ "y": 139.00000095367432,
+ "z": "b55eea1d.a59fe8",
"wires": [
[]
]
},
{
- "id": "656e0fe4.4c146",
+ "id": "7589e079.778f",
"type": "switchNode",
"name": "A1 Mediator Deployed",
"xml": "<switch test='`$prop.ric-plt-A1Mediator-deployed`'>\n",
"comments": "",
"outputs": 1,
- "x": 742.00390625,
- "y": 203.00390625,
- "z": "4e8e4e8b.e7eb7",
+ "x": 699,
+ "y": 195.00000095367432,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "dca8b30a.68fdc",
- "9120c0b9.1ccb5"
+ "4960c05e.4a48e",
+ "9d487d40.76962"
]
]
},
{
- "id": "9120c0b9.1ccb5",
+ "id": "9d487d40.76962",
"type": "outcome",
"name": "Deployed",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1026.0039520263672,
- "y": 63.003971576690674,
- "z": "4e8e4e8b.e7eb7",
+ "x": 983.0000457763672,
+ "y": 55.00006628036499,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "c8aa8c79.ffc7b"
+ "fae15a24.468558"
]
]
},
{
- "id": "c8aa8c79.ffc7b",
+ "id": "fae15a24.468558",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1003.0040016174316,
- "y": 209.00392389297485,
- "z": "4e8e4e8b.e7eb7",
+ "x": 960.0000953674316,
+ "y": 201.00001859664917,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "f87feba2.fca948"
+ "8adeeb48.5c34c8"
]
]
},
{
- "id": "dca8b30a.68fdc",
+ "id": "4960c05e.4a48e",
"type": "outcome",
"name": "Not Deployed",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 979.0039749145508,
- "y": 498.0039677619934,
- "z": "4e8e4e8b.e7eb7",
+ "x": 936.0000686645508,
+ "y": 490.0000624656677,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "3f2d9857.202c88"
+ "cafd16f3.2ead98"
]
]
},
{
- "id": "3f2d9857.202c88",
+ "id": "cafd16f3.2ead98",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1194.0040130615234,
- "y": 627.0039205551147,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1151.0001068115234,
+ "y": 619.0000152587891,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "1628f3ec.4529fc",
- "941815be.0e6418",
- "af6e494e.eba298"
+ "e3d060c0.b81ec",
+ "944ee6aa.e0ceb8",
+ "77b3dd76.a3cb44"
]
]
},
{
- "id": "1628f3ec.4529fc",
+ "id": "e3d060c0.b81ec",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"Error in Getting A1 Policy Type. Aborting\" />",
"comments": "",
- "x": 1319.0037689208984,
- "y": 708.0039050579071,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1275.9998626708984,
+ "y": 699.9999997615814,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "f87feba2.fca948",
+ "id": "8adeeb48.5c34c8",
"type": "block",
"name": "A1 Mediator RestAPI Invocation",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1197.0040130615234,
- "y": 320.00391072034836,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1154.0001068115234,
+ "y": 312.0000054240227,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "5d39225d.b5d86c",
- "8bcf78cb.a45fa8",
- "ec0ff476.077b18",
- "adeac94f.c6b478",
- "ca2401e.27b07"
+ "38afaf12.aee1f",
+ "3a82d4a7.de542c",
+ "c33b0782.69bf48",
+ "77404dcb.5cb384",
+ "de061428.e131a8"
]
]
},
{
- "id": "8bcf78cb.a45fa8",
+ "id": "3a82d4a7.de542c",
"type": "set",
"name": "set tmp variables for A1 Mediator REST API call",
"xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$get-policy-type-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.policy-type-id\" value=\"`$get-policy-type-input.policy-type-id`\"/>",
"comments": "",
- "x": 1532.0054016113281,
- "y": 159.89304208755493,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1489.0014953613281,
+ "y": 151.88913679122925,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "5d39225d.b5d86c",
+ "id": "38afaf12.aee1f",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for A1 Adapter Get Policy Type.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.restapi.policytype-url`\"/>",
"comments": "",
"outputs": 1,
- "x": 1459.0040550231934,
- "y": 312.0039167404175,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1418.0001220703125,
+ "y": 305,
+ "z": "b55eea1d.a59fe8",
"wires": [
[]
]
},
{
- "id": "ec0ff476.077b18",
+ "id": "c33b0782.69bf48",
"type": "execute",
"name": "Get Policy Types",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.a1Mediator.url + '/' + $tmp.restapi.policytype-url`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"a1MediatorRsp\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
"comments": "",
"outputs": 1,
- "x": 1486.0045127868652,
- "y": 383.01427364349365,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1443.0006065368652,
+ "y": 375.01036834716797,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "6449f6f.dddf208",
- "d6f09679.a01fe8"
+ "e4055a3f.3f1948",
+ "d16bd1ec.d9d41"
]
]
},
{
- "id": "6449f6f.dddf208",
+ "id": "e4055a3f.3f1948",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1450.0039367675781,
- "y": 471.00401973724365,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1407.0000305175781,
+ "y": 463.00011444091797,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "91104dd5.632de"
+ "75a0dbe4.4e34d4"
]
]
},
{
- "id": "d6f09679.a01fe8",
+ "id": "d16bd1ec.d9d41",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1694.0041809082031,
- "y": 342.0039281845093,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1651.0002746582031,
+ "y": 334.0000228881836,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "e81637cc.588ed8"
+ "670e82ec.e25a0c"
]
]
},
{
- "id": "d8c6f411.0c63d8",
+ "id": "c041efea.9ebb8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"404\" />\n<parameter name=\"response-message\" value=\"Error in Getting A1 Policy Type. Aborting\" />",
"comments": "",
- "x": 1610.0045166015625,
- "y": 578.0039892196655,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1567.0006103515625,
+ "y": 570.0000839233398,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "e81637cc.588ed8",
+ "id": "670e82ec.e25a0c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1844.0037860870361,
- "y": 306.00395822525024,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1800.9998798370361,
+ "y": 298.00005292892456,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "a2df3924.7ce618"
+ "a67a8a02.c4eee8",
+ "ae1fa477.a961e8",
+ "4e22b738.909c78",
+ "d3650671.cbdc18"
]
]
},
{
- "id": "a2df3924.7ce618",
+ "id": "a67a8a02.c4eee8",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A1 Policy Type Information \"/>\n<parameter name=\"field2\" value=\"`$a1MediatorRsp.*`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A1 Policy Type Information \"/>\n<parameter name=\"field2\" value=\"`$a1MediatorRsp.httpResponse`\"/>",
"comments": "",
"outputs": 1,
- "x": 2025.00390625,
- "y": 283.00390911102295,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1991,
+ "y": 279,
+ "z": "b55eea1d.a59fe8",
"wires": [
[]
]
},
{
- "id": "941815be.0e6418",
+ "id": "944ee6aa.e0ceb8",
"type": "block",
"name": "DMAAP Reponse Publish",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1980.0040283203125,
- "y": 675.0040578842163,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1937.0001220703125,
+ "y": 667.0001525878906,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "1211b972.fe3cf7",
- "3f01de14.4ed1b2",
- "ffe957f0.991a38"
+ "fc69fb2.0d81f08",
+ "4306b6e3.228028",
+ "7c10f260.44e35c"
]
]
},
{
- "id": "3f01de14.4ed1b2",
+ "id": "4306b6e3.228028",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`\" />\n <parameter name='restapiUrl' value=\"`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`\" />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name='responsePrefix' value='dmaap' />",
"comments": "",
"outputs": 1,
- "x": 2329.0042266845703,
- "y": 853.0034625530243,
- "z": "4e8e4e8b.e7eb7",
+ "x": 2286.0003204345703,
+ "y": 844.9995572566986,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "a14ff319.1db5f",
- "1fd03359.fc712d"
+ "a20937dd.f06898",
+ "afcdec04.54575"
]
]
},
{
- "id": "1211b972.fe3cf7",
+ "id": "fc69fb2.0d81f08",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyType'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>\n<parameter name='tmp.a1Policy-dmaap-resp.payload' value=\"Working On it\" />",
+ "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyType'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>\n<parameter name='tmp.a1Policy-dmaap-resp.payload' value='`$tmp.a1-mediator-restapi.payload`' />",
"comments": "",
- "x": 2318.670944213867,
- "y": 644.0040187835693,
- "z": "4e8e4e8b.e7eb7",
+ "x": 2276.6669921875,
+ "y": 637.0001220703125,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "a14ff319.1db5f",
+ "id": "a20937dd.f06898",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2544.5041122436523,
- "y": 775.9207663536072,
- "z": "4e8e4e8b.e7eb7",
+ "x": 2501.5002059936523,
+ "y": 767.9168610572815,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "1c603946.e2ec57"
+ "6180ced9.26a6c"
]
]
},
{
- "id": "1fd03359.fc712d",
+ "id": "afcdec04.54575",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2548.5040321350098,
- "y": 914.920608997345,
- "z": "4e8e4e8b.e7eb7",
+ "x": 2505.5001258850098,
+ "y": 906.9167037010193,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "f06f4733.197198"
+ "e35e575c.da5738"
]
]
},
{
- "id": "1c603946.e2ec57",
+ "id": "6180ced9.26a6c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2704.5039463043213,
- "y": 777.9207673072815,
- "z": "4e8e4e8b.e7eb7",
+ "x": 2661.5000400543213,
+ "y": 769.9168620109558,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "758bbaed.01d694"
+ "2c8065c6.6dbfda"
]
]
},
{
- "id": "758bbaed.01d694",
+ "id": "2c8065c6.6dbfda",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"Error publishing DMAAP A1 Policy Response message. \" />",
"comments": "",
- "x": 2886.503677368164,
- "y": 768.9208431243896,
- "z": "4e8e4e8b.e7eb7",
+ "x": 2843.499771118164,
+ "y": 760.916937828064,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "f06f4733.197198",
+ "id": "e35e575c.da5738",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2731.5036754608154,
- "y": 907.920717716217,
- "z": "4e8e4e8b.e7eb7",
+ "x": 2688.4997692108154,
+ "y": 899.9168124198914,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "f7ca92e4.64915"
+ "b0aef6ff.309868"
]
]
},
{
- "id": "f7ca92e4.64915",
+ "id": "b0aef6ff.309868",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"DMAAP A1Policy message Successfully Published \"/>",
"comments": "",
"outputs": 1,
- "x": 2917.5038299560547,
- "y": 895.9210414886475,
- "z": "4e8e4e8b.e7eb7",
+ "x": 2874.4999237060547,
+ "y": 887.9171361923218,
+ "z": "b55eea1d.a59fe8",
"wires": [
[]
]
},
{
- "id": "ffe957f0.991a38",
+ "id": "7c10f260.44e35c",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Before DMAAP Event - template file name, restapiURL\"/>\n<parameter name='field3' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`\" />\n<parameter name='field4' value=\"`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`\" />\n<parameter name='field5' value=\"Status Code and Status Value to be published\" />\n<parameter name='field6' value=\"`$tmp.a1Adapter-dmaap-resp.status-code`\" />\n<parameter name='field7' value=\"`$tmp.a1Adapter-dmaap-resp.status-value`\" />\n<parameter name='field8' value=\"A1 Adapter DMAAP Response Payload\" />\n<parameter name='field9' value=\"`$tmp.a1Policy-dmaap-resp.payload`\" />\n<parameter name='field10' value=\"RPC Name\" />\n<parameter name='field11' value=\"`$tmp.a1-adapter-api.rpc-name`\" />",
"comments": "",
"outputs": 1,
- "x": 2327.504165649414,
- "y": 735.4589986801147,
- "z": "4e8e4e8b.e7eb7",
+ "x": 2287.500244140625,
+ "y": 727.455078125,
+ "z": "b55eea1d.a59fe8",
"wires": [
[]
]
},
{
- "id": "af6e494e.eba298",
+ "id": "77b3dd76.a3cb44",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='A1 Mediator Not Deployed'/>\n",
"comments": "",
- "x": 1397.0041275024414,
- "y": 561.0039281845093,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1354.0002212524414,
+ "y": 553.0000228881836,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "b95a43d4.018fc",
+ "id": "c52c6d9d.59628",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
"comments": "",
- "x": 1773.7578506469727,
- "y": 411.00782680511475,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1730.7539443969727,
+ "y": 403.00392150878906,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "699ddeff.ea20c",
+ "id": "610eb9a7.c191a8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 735.7578010559082,
- "y": 817.0078420639038,
- "z": "4e8e4e8b.e7eb7",
+ "x": 692.7538948059082,
+ "y": 809.0039367675781,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "12f7b185.4d91ee",
- "941815be.0e6418"
+ "e54fca82.f54998",
+ "944ee6aa.e0ceb8"
]
]
},
{
- "id": "12f7b185.4d91ee",
+ "id": "e54fca82.f54998",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='A1 Adapter is healthy'/>\n<parameter name='health-status' value='200'/>\n<parameter name='ack-final' value='Y'/>\n",
"comments": "",
- "x": 885.7578449249268,
- "y": 899.0078115463257,
- "z": "4e8e4e8b.e7eb7",
+ "x": 842.7539386749268,
+ "y": 891.00390625,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "91104dd5.632de",
+ "id": "75a0dbe4.4e34d4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1598.0078468322754,
- "y": 477.0078339576721,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1555.0039405822754,
+ "y": 469.00392866134644,
+ "z": "b55eea1d.a59fe8",
"wires": [
[
- "b95a43d4.018fc",
- "941815be.0e6418",
- "d8c6f411.0c63d8"
+ "c52c6d9d.59628",
+ "944ee6aa.e0ceb8",
+ "c041efea.9ebb8"
]
]
},
{
- "id": "9b40ce31.b3a69",
+ "id": "e78926ee.e57698",
"type": "set",
"name": "set tmp variables for input RPC parms",
"xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$create-policy-type-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.policy-type-id\" value=\"`$create-policy-type-input.policy-type-id`\"/>\n<parameter name=\"tmp.name\" value=\"`$create-policy-type-input.name`\"/>\n<parameter name=\"tmp.description\" value=\"`$create-policy-type-input.description`\"/>",
"comments": "",
- "x": 219.00390625,
- "y": 470.00390625,
- "z": "4e8e4e8b.e7eb7",
+ "x": 176,
+ "y": 462.0000009536743,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "adeac94f.c6b478",
+ "id": "77404dcb.5cb384",
"type": "execute",
"name": "generate A1 Mediator URL",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.policytype`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.policytype-url\"/>\n <parameter name=\"target\" value=\"{policy_type_id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.policy-type-id`\"/>",
"comments": "",
"outputs": 1,
- "x": 1527.0033569335938,
- "y": 259.12530422210693,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1483.9994506835938,
+ "y": 251.12139892578125,
+ "z": "b55eea1d.a59fe8",
"wires": [
[]
]
},
{
- "id": "a2adb928.6c9c98",
+ "id": "4ee7bbbd.0e4a04",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for A1 Adapter Create Policy Type.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.policy-type-id`\"/>\n<parameter name=\"field4\" value=\"`$tmp.name`\"/>\n<parameter name=\"field5\" value=\"`$tmp.restapi.policytype-url`\"/>\n<parameter name=\"field6\" value=\"`$a1-mediator.restapi-payload`\"/>\n<parameter name=\"field7\" value=\"Temporary A1 Mediatory Payload\"/>\n<parameter name=\"field8\" value=\"`$tmp.a1-mediator-restapi.payload`\"/>",
"comments": "",
"outputs": 1,
- "x": 174.0029296875,
- "y": 643.1148071289062,
- "z": "4e8e4e8b.e7eb7",
+ "x": 130.9990234375,
+ "y": 635.1109018325806,
+ "z": "b55eea1d.a59fe8",
"wires": [
[]
]
},
{
- "id": "a095d160.04b79",
+ "id": "84be517a.aeb94",
"type": "set",
"name": "set A1Mediator payload manually",
"xml": "<set>\n<parameter name=\"tmp.a1-mediator-restapi.payload\" value='{\"blocking_rate\": 20,\"enforce\": true,\"trigger_threshold\": 10,\"window_length\": 10}'/>",
"comments": "",
- "x": 221.0029296875,
- "y": 586.1148071289062,
- "z": "4e8e4e8b.e7eb7",
+ "x": 177.9990234375,
+ "y": 578.1109018325806,
+ "z": "b55eea1d.a59fe8",
"wires": []
},
{
- "id": "ca2401e.27b07",
+ "id": "de061428.e131a8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for A1 Adapter Get Policy Type.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.policy-type-id`\"/>",
"comments": "",
"outputs": 1,
- "x": 1463.0038719177246,
- "y": 210.00391292572021,
- "z": "4e8e4e8b.e7eb7",
+ "x": 1419.9999656677246,
+ "y": 202.00000762939453,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "347044de.5be97c",
+ "type": "execute",
+ "name": "Object to string - ctxSetAttribute",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxSetAttribute'>\n\t<parameter name='object' value=\t\"`$a1MediatorRsp.httpResponse`\" />\n\t<parameter name='key' value='a1MediatorRsp.unescaped.httpResponse' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2524,
+ "y": 235,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ae1fa477.a961e8",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/A1-Adapter-getPolicytype-specific-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1962,
+ "y": 522,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dc58bba7.2a8c48",
+ "type": "execute",
+ "name": "Unescape http response",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='unescapeJsonString'>\n\t<parameter name='source' value=\t\"`$a1MediatorRsp.httpResponse`\" />\n\t<parameter name='target' value='a1MediatorRsp.unescaped.httpResponse' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2541,
+ "y": 297,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "178332cc.70a4dd",
+ "type": "execute",
+ "name": "execute TemplateNode",
+ "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.template.TemplateNode\" method=\"evaluateTemplate\" >\n <parameter name='templatePath' value='a1Mediator-get-policy.vtl' />\n <parameter name='output' value='policy' />\n <parameter name='prefix' value='a1-mediator' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2061,
+ "y": 341,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ [
+ "71224d76.822194"
+ ]
+ ]
+ },
+ {
+ "id": "71224d76.822194",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2283,
+ "y": 348,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ [
+ "651f0c08.1762d4"
+ ]
+ ]
+ },
+ {
+ "id": "651f0c08.1762d4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2442,
+ "y": 384,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ [
+ "410a16ab.2db198"
+ ]
+ ]
+ },
+ {
+ "id": "410a16ab.2db198",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"A1 Policy Info: a1-mediator.policy\"/>\n<parameter name='field3' value='`$a1-mediator.policy`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2629,
+ "y": 400,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "568eaf0f.6c1b8",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='a1MediatorRsp.httpResponse' />\n\t<parameter name='outputPath' value='a1MediatorgetPolicyType' />\n\t<parameter name='isEscaped' value='false' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2039,
+ "y": 199,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4e22b738.909c78",
+ "type": "execute",
+ "name": "remove new lines",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >\n <parameter name=\"source\" value=\"`$a1MediatorRsp.httpResponse`\"/>\n <parameter name=\"outputPath\" value=\"tmp.a1-mediator-restapi.payload\"/>\n <parameter name=\"target\" value=\"\\n\"/>\n <parameter name=\"replacement\" value=\"\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2055,
+ "y": 398,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ [
+ "858d973a.bd78e8",
+ "2a34ede9.f48572"
+ ]
+ ]
+ },
+ {
+ "id": "858d973a.bd78e8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2550.5001068115234,
+ "y": 477.0000033378601,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ [
+ "416d5516.42b47c"
+ ]
+ ]
+ },
+ {
+ "id": "416d5516.42b47c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2685.500259399414,
+ "y": 547.0000357627869,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ [
+ "9fd68ab6.cc7f68"
+ ]
+ ]
+ },
+ {
+ "id": "9fd68ab6.cc7f68",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Redndred template with lines removed \\r\"/>\n<parameter name='field3' value='`$tmp.a1-mediator-restapi.payload`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2757.500198364258,
+ "y": 465.9999976158142,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2a34ede9.f48572",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2560.5000762939453,
+ "y": 637.0000382959843,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ [
+ "c19e3ee9.36685"
+ ]
+ ]
+ },
+ {
+ "id": "c19e3ee9.36685",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2713.4999237060547,
+ "y": 613.0000309944153,
+ "z": "b55eea1d.a59fe8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d3650671.cbdc18",
+ "type": "execute",
+ "name": "remove tabs",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >\n <parameter name=\"source\" value=\"`$tmp.a1-mediator-restapi.payload`\"/>\n <parameter name=\"outputPath\" value=\"tmp.a1-mediator-restapi.payload\"/>\n <parameter name=\"target\" value=\"\\t\"/>\n <parameter name=\"replacement\" value=\"\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2033,
+ "y": 470,
+ "z": "b55eea1d.a59fe8",
"wires": [
[]
]