Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_policy-manager-create-policy.json
1 [
2     {
3         "id": "5ea66244.2043ac",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 101.42857360839844,
8         "y": 82.85714721679688,
9         "z": "2f4e466a.a72c1a",
10         "wires": [
11             [
12                 "1488d42d.2b4bec"
13             ]
14         ]
15     },
16     {
17         "id": "1488d42d.2b4bec",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
23         "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='GENERIC-RESOURCE-API' version='${project.version}'>",
24         "outputs": 1,
25         "x": 215.04759979248047,
26         "y": 123.09526062011719,
27         "z": "2f4e466a.a72c1a",
28         "wires": [
29             [
30                 "accb6834.19e2e8"
31             ]
32         ]
33     },
34     {
35         "id": "accb6834.19e2e8",
36         "type": "method",
37         "name": "method policy-manager-create-policy",
38         "xml": "<method rpc='policy-manager-create-policy' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 186.8572006225586,
42         "y": 162.85714721679688,
43         "z": "2f4e466a.a72c1a",
44         "wires": [
45             [
46                 "4c2a088b.3e0ba8"
47             ]
48         ]
49     },
50     {
51         "id": "dfa928b6.5c06b8",
52         "type": "comment",
53         "name": "policy-manager-create-policy",
54         "info": "",
55         "comments": "",
56         "x": 495.77342987060547,
57         "y": 30.443490982055664,
58         "z": "2f4e466a.a72c1a",
59         "wires": []
60     },
61     {
62         "id": "4c2a088b.3e0ba8",
63         "type": "block",
64         "name": "block : atomic",
65         "xml": "<block atomic=\"true\">",
66         "atomic": "true",
67         "comments": "",
68         "outputs": 1,
69         "x": 217.1428680419922,
70         "y": 324.28570556640625,
71         "z": "2f4e466a.a72c1a",
72         "wires": [
73             [
74                 "189efe08.1f8952",
75                 "e0ad431.613cbc"
76             ]
77         ]
78     },
79     {
80         "id": "189efe08.1f8952",
81         "type": "execute",
82         "name": "RestapiCallnode createPolicy",
83         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.pm.createpolicy.templatefile`\" />\n    <parameter name='restapiUrl' value=\"`$prop.policy-manager.url + '/pdp/api/createPolicy'`\" />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name='convertResponse' value=\"false\" />\n    <parameter name='customHttpHeaders'\n      value=\"`'Authorization=Basic ' + $prop.policy-manager.authorization + ',ClientAuth=Basic ' + $prop.policy-manager.clientauth + ',Environment=' + $prop.policy-manager.environment `\" />\n",
84         "comments": "",
85         "outputs": 1,
86         "x": 472.8571548461914,
87         "y": 284.2857074737549,
88         "z": "2f4e466a.a72c1a",
89         "wires": [
90             [
91                 "1edc5a5e.259046",
92                 "ac8ecfcb.7d84c"
93             ]
94         ]
95     },
96     {
97         "id": "1edc5a5e.259046",
98         "type": "success",
99         "name": "success",
100         "xml": "<outcome value='success'>\n",
101         "comments": "",
102         "outputs": 1,
103         "x": 685.7142562866211,
104         "y": 258.5714349746704,
105         "z": "2f4e466a.a72c1a",
106         "wires": [
107             [
108                 "c0e63f5a.e0d5e"
109             ]
110         ]
111     },
112     {
113         "id": "c0e63f5a.e0d5e",
114         "type": "block",
115         "name": "block: atomic",
116         "xml": "<block atomic=\"true\">\n",
117         "atomic": "false",
118         "comments": "",
119         "outputs": 1,
120         "x": 849.428581237793,
121         "y": 258.4999108314514,
122         "z": "2f4e466a.a72c1a",
123         "wires": [
124             [
125                 "8a75b361.99d53"
126             ]
127         ]
128     },
129     {
130         "id": "ac8ecfcb.7d84c",
131         "type": "other",
132         "name": "other",
133         "xml": "<outcome value='Other'>\n",
134         "comments": "",
135         "outputs": 1,
136         "x": 681.8517951965332,
137         "y": 306.4946479797363,
138         "z": "2f4e466a.a72c1a",
139         "wires": [
140             [
141                 "3c3c68db.b16138"
142             ]
143         ]
144     },
145     {
146         "id": "8a75b361.99d53",
147         "type": "execute",
148         "name": "RestapiCallnode pushPolicy",
149         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.pm.pushpolicy.templatefile`\" />\n    <parameter name='restapiUrl' value=\"`$prop.policy-manager.url + '/pdp/api/pushPolicy'`\" />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name='convertResponse' value=\"false\" />\n    <parameter name='customHttpHeaders'\n      value=\"`'Authorization=Basic ' + $prop.policy-manager.authorization + ',ClientAuth=Basic ' + $prop.policy-manager.clientauth + ',Environment=' + $prop.policy-manager.environment `\" />\n",
150         "comments": "",
151         "outputs": 1,
152         "x": 1084.2857666015625,
153         "y": 222.85716438293457,
154         "z": "2f4e466a.a72c1a",
155         "wires": [
156             [
157                 "dd3bc8bc.e85af8",
158                 "5808b3a9.1ba37c"
159             ]
160         ]
161     },
162     {
163         "id": "dd3bc8bc.e85af8",
164         "type": "success",
165         "name": "success",
166         "xml": "<outcome value='success'>\n",
167         "comments": "",
168         "outputs": 1,
169         "x": 1290,
170         "y": 195.71431159973145,
171         "z": "2f4e466a.a72c1a",
172         "wires": [
173             [
174                 "fe10eb1e.6c23a8"
175             ]
176         ]
177     },
178     {
179         "id": "fe10eb1e.6c23a8",
180         "type": "block",
181         "name": "block: atomic",
182         "xml": "<block atomic=\"true\">\n",
183         "atomic": "false",
184         "comments": "",
185         "outputs": 1,
186         "x": 1453.7143249511719,
187         "y": 195.64278745651245,
188         "z": "2f4e466a.a72c1a",
189         "wires": [
190             []
191         ]
192     },
193     {
194         "id": "5808b3a9.1ba37c",
195         "type": "other",
196         "name": "other",
197         "xml": "<outcome value='Other'>\n",
198         "comments": "",
199         "outputs": 1,
200         "x": 1286.137538909912,
201         "y": 243.63752460479736,
202         "z": "2f4e466a.a72c1a",
203         "wires": [
204             [
205                 "731c4238.4b27ac"
206             ]
207         ]
208     },
209     {
210         "id": "3c3c68db.b16138",
211         "type": "returnFailure",
212         "name": "return failure",
213         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to create policy in Policy Manager' />\n",
214         "comments": "",
215         "x": 847.1428680419922,
216         "y": 306.5714521408081,
217         "z": "2f4e466a.a72c1a",
218         "wires": []
219     },
220     {
221         "id": "731c4238.4b27ac",
222         "type": "returnFailure",
223         "name": "return failure",
224         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to push policy in Policy Manager' />\n",
225         "comments": "",
226         "x": 1450.5714225769043,
227         "y": 243.28573417663574,
228         "z": "2f4e466a.a72c1a",
229         "wires": []
230     },
231     {
232         "id": "e0ad431.613cbc",
233         "type": "returnSuccess",
234         "name": "return success",
235         "xml": "<return status='success'>\n",
236         "comments": "",
237         "x": 425.71429443359375,
238         "y": 362.857138633728,
239         "z": "2f4e466a.a72c1a",
240         "wires": []
241     }
242 ]