+ },
+ {
+ "id": "6be4f0df.7a03f",
+ "type": "switchNode",
+ "name": "check nearrtric",
+ "xml": "<switch test='`$tmp.nearRTRICId == 11 `'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1184.4000663757324,
+ "y": 230.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "54128a9a.4f7584",
+ "f4d2afe1.68c06"
+ ]
+ ]
+ },
+ {
+ "id": "54128a9a.4f7584",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1366.6002655029297,
+ "y": 70.00000762939453,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "aa8b60a2.54a63"
+ ]
+ ]
+ },
+ {
+ "id": "f4d2afe1.68c06",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1388.400047302246,
+ "y": 153.00000190734863,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "df472963.fe6828"
+ ]
+ ]
+ },
+ {
+ "id": "23e2530f.989e4c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1449.400047302246,
+ "y": 276.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "98bcc202.ade0d"
+ ]
+ ]
+ },
+ {
+ "id": "98bcc202.ade0d",
+ "type": "execute",
+ "name": "check policytype",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.policytype.url`\"/>\n<parameter name='format' value='json' />\n<parameter name='httpMethod' value='GET' />\n<parameter name='contentType' value='application/json' />\n<parameter name='responsePrefix' value='get-policytypes-responsse' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1735.0000534057617,
+ "y": 255.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "5deb8749.c984b8",
+ "678983bb.5d748c"
+ ]
+ ]
+ },
+ {
+ "id": "5deb8749.c984b8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1950.0002708435059,
+ "y": 126.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "cfcb9c15.69ac2"
+ ]
+ ]
+ },
+ {
+ "id": "cfcb9c15.69ac2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2167.000274658203,
+ "y": 123.56728744506836,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "75203dce.8bbf24",
+ "cbd82b5f.87c958",
+ "bd81af88.a24eb",
+ "5ee6252e.c7b4bc"
+ ]
+ ]
+ },
+ {
+ "id": "75203dce.8bbf24",
+ "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/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"policy types length \"/>\n<parameter name=\"field2\" value=\"`$tmp.policytypelength`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2466.0002784729004,
+ "y": 107.56728744506836,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "678983bb.5d748c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1931.0000038146973,
+ "y": 259.56736183166504,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "d6079989.8655c8"
+ ]
+ ]
+ },
+ {
+ "id": "d6079989.8655c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2077.999931335449,
+ "y": 257.56736183166504,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "b2765008.3daf3"
+ ]
+ ]
+ },
+ {
+ "id": "b2765008.3daf3",
+ "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/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"req error \"/>\n<parameter name=\"field2\" value=\"Failure\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2242.9999351501465,
+ "y": 256.56736183166504,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cbd82b5f.87c958",
+ "type": "execute",
+ "name": "getpolicylength",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.policytypelength' />\n\t<parameter name='source' value=\"`'get-policytypes-responsse._length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2456.6897354125977,
+ "y": 51.00000286102295,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd81af88.a24eb",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.policytypelength > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2473.0002822875977,
+ "y": 177.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "8aa087fa.67cfc8",
+ "d6c803c3.fb98"
+ ]
+ ]
+ },
+ {
+ "id": "8aa087fa.67cfc8",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2717.6001358032227,
+ "y": 140.00000286102295,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "13d06ca0.5dbcd3"
+ ]
+ ]
+ },
+ {
+ "id": "d6c803c3.fb98",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2761.60013961792,
+ "y": 205.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "3e9843f7.c203fc"
+ ]
+ ]
+ },
+ {
+ "id": "13d06ca0.5dbcd3",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2892.600143432617,
+ "y": 144.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "c95249c8.6b8dc8"
+ ]
+ ]
+ },
+ {
+ "id": "3e9843f7.c203fc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2944.6005325317383,
+ "y": 219.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "80313cf0.7668c",
+ "165a66bf.5c13a9"
+ ]
+ ]
+ },
+ {
+ "id": "c95249c8.6b8dc8",
+ "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/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"policy type already exists \"/>\n<parameter name=\"field2\" value=\"SUCCESSFULL\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3049.600143432617,
+ "y": 141.00000286102295,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80313cf0.7668c",
+ "type": "execute",
+ "name": "create policytype",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/A1policytype.json'`\" />\n<parameter name=\"restapiUrl\" value=\"https://10.31.4.11:30226/events/A1-P\"/>\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": 3174.6005325317383,
+ "y": 254.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "79c7ffdf.e0157"
+ ]
+ ]
+ },
+ {
+ "id": "165a66bf.5c13a9",
+ "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/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"creating new policy \"/>\n<parameter name=\"field2\" value=\"SUCCESSFULL\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3157.400535583496,
+ "y": 195.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "79c7ffdf.e0157",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3372.411087036133,
+ "y": 250.200101852417,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "81ba09b0.b2c248"
+ ]
+ ]
+ },
+ {
+ "id": "2067e4a0.d42c6c",
+ "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/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Create policytype \"/>\n<parameter name=\"field2\" value=\"Succesfull\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3731.0001525878906,
+ "y": 256.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "81ba09b0.b2c248",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3548.0001525878906,
+ "y": 254.00000381469727,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "2067e4a0.d42c6c"
+ ]
+ ]
+ },
+ {
+ "id": "5ee6252e.c7b4bc",
+ "type": "execute",
+ "name": "create policyinstance ",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/A1policyinstance.json'`\" />\n<parameter name=\"restapiUrl\" value=\"https://10.31.4.11:30226/events/A1-P\"/>\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-res' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2518.2000427246094,
+ "y": 271.0000057220459,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "eaf200d7.f7196"
+ ]
+ ]
+ },
+ {
+ "id": "9185c060.6e10b",
+ "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/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Create policyinstance \"/>\n<parameter name=\"field2\" value=\"Succesfull\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3172.5998497009277,
+ "y": 308.0000057220459,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "108685c0.b9882a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2966.599655151367,
+ "y": 291.0000057220459,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "9185c060.6e10b"
+ ]
+ ]
+ },
+ {
+ "id": "eaf200d7.f7196",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2791.5994567871094,
+ "y": 283.1999568939209,
+ "z": "5f252e33.a33cf",
+ "wires": [
+ [
+ "108685c0.b9882a"
+ ]
+ ]
+ },
+ {
+ "id": "aa8b60a2.54a63",
+ "type": "set",
+ "name": "set Temp Variables",
+ "xml": "<set>\n<parameter name='tmp.policytype.url' value='`$prop.a1.policytype.url.nearrtric11`'/>\n<parameter name=\"tmp.policyinstance.url\" value=\"`$prop.a1.policyinstance.url.nearrtric11`\"/>\n",
+ "comments": "",
+ "x": 1549.800048828125,
+ "y": 63,
+ "z": "5f252e33.a33cf",
+ "wires": []
+ },
+ {
+ "id": "df472963.fe6828",
+ "type": "set",
+ "name": "set Temp Variables",
+ "xml": "<set>\n<parameter name='tmp.policytype.url' value='`$prop.a1.policytype.url.nearrtric22`'/>\n<parameter name=\"tmp.policyinstance.url\" value=\"`$prop.a1.policyinstance.url.nearrtric22`\"/>\n",
+ "comments": "",
+ "x": 1573.800048828125,
+ "y": 151.00000190734863,
+ "z": "5f252e33.a33cf",
+ "wires": []
+ },
+ {
+ "id": "51261cb1.441374",
+ "type": "comment",
+ "name": "A1-adaptor simulators",
+ "info": "Currently have configured to support 2 near-rt-ric simulators.\nNear-rt-ric simulators has to be run separately and corresponding ip can be configured in the properties file",
+ "comments": "",
+ "x": 798,
+ "y": 67,
+ "z": "5f252e33.a33cf",
+ "wires": []