a.sreekumar | f715119 | 2021-10-20 17:28:04 +0100 | [diff] [blame] | 1 | { |
| 2 | "tosca_definitions_version": "tosca_simple_yaml_1_1_0", |
| 3 | "topology_template": { |
| 4 | "policies": [ |
| 5 | { |
| 6 | "onap.policies.apex.vnf.Test": { |
| 7 | "type": "onap.policies.native.Apex", |
| 8 | "type_version": "1.0.0", |
| 9 | "name": "onap.policies.apex.vnf.Test", |
| 10 | "version": "1.0.0", |
| 11 | "properties": { |
| 12 | "engineServiceParameters": { |
| 13 | "name": "NSOApexEngine", |
| 14 | "version": "0.0.1", |
| 15 | "id": 45, |
| 16 | "instanceCount": 5, |
| 17 | "deploymentPort": 12561, |
| 18 | "engineParameters": { |
| 19 | "executorParameters": { |
| 20 | "JAVASCRIPT": { |
| 21 | "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" |
| 22 | } |
| 23 | }, |
| 24 | "contextParameters": { |
| 25 | "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters", |
| 26 | "schemaParameters": { |
| 27 | "Avro": { |
| 28 | "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters" |
| 29 | } |
| 30 | } |
| 31 | }, |
| 32 | "taskParameters": [ |
| 33 | { |
| 34 | "key": "logUrl", |
| 35 | "value": "https://message-router:3905/events/APEX-CL-MGT" |
| 36 | } |
| 37 | ] |
| 38 | }, |
| 39 | "policy_type_impl": { |
| 40 | "apexPolicyModel": { |
| 41 | "key": { |
| 42 | "name": "onap.policies.apex.Example", |
| 43 | "version": "0.0.1" |
| 44 | }, |
| 45 | "keyInformation": { |
| 46 | "key": { |
| 47 | "name": "onap.policies.apex.Example_KeyInfo", |
| 48 | "version": "0.0.1" |
| 49 | }, |
| 50 | "keyInfoMap": { |
| 51 | "entry": [ |
| 52 | { |
| 53 | "key": { |
| 54 | "name": "ApexExample_AAIFailureResponseEvent", |
| 55 | "version": "0.0.1" |
| 56 | }, |
| 57 | "value": { |
| 58 | "key": { |
| 59 | "name": "ApexExample_AAIFailureResponseEvent", |
| 60 | "version": "0.0.1" |
| 61 | }, |
| 62 | "UUID": "fc0c1892-a2ae-3678-818f-b9b23939b241", |
| 63 | "description": "Generated description for concept referred to by key \"ApexExample_AAIFailureResponseEvent:0.0.1\"" |
| 64 | } |
| 65 | }, |
| 66 | { |
| 67 | "key": { |
| 68 | "name": "ApexExample_AAIFailureResponseHandlerPolicy", |
| 69 | "version": "0.0.1" |
| 70 | }, |
| 71 | "value": { |
| 72 | "key": { |
| 73 | "name": "ApexExample_AAIFailureResponseHandlerPolicy", |
| 74 | "version": "0.0.1" |
| 75 | }, |
| 76 | "UUID": "ba931e7e-aee9-3af8-98d8-16b92a909e8a", |
| 77 | "description": "Generated description for concept referred to by key \"ApexExample_AAIFailureResponseHandlerPolicy:0.0.1\"" |
| 78 | } |
| 79 | }, |
| 80 | { |
| 81 | "key": { |
| 82 | "name": "ApexExample_AAIRequestErrorType", |
| 83 | "version": "0.0.1" |
| 84 | }, |
| 85 | "value": { |
| 86 | "key": { |
| 87 | "name": "ApexExample_AAIRequestErrorType", |
| 88 | "version": "0.0.1" |
| 89 | }, |
| 90 | "UUID": "b4dd59c5-0169-3810-800c-1396c2206de4", |
| 91 | "description": "Generated description for concept referred to by key \"ApexExample_AAIRequestErrorType:0.0.1\"" |
| 92 | } |
| 93 | }, |
| 94 | { |
| 95 | "key": { |
| 96 | "name": "ApexExample_AAIRequestEvent", |
| 97 | "version": "0.0.1" |
| 98 | }, |
| 99 | "value": { |
| 100 | "key": { |
| 101 | "name": "ApexExample_AAIRequestEvent", |
| 102 | "version": "0.0.1" |
| 103 | }, |
| 104 | "UUID": "599c297e-96c8-3b21-ad1c-e643bddeacbf", |
| 105 | "description": "Generated description for concept referred to by key \"ApexExample_AAIRequestEvent:0.0.1\"" |
| 106 | } |
| 107 | }, |
| 108 | { |
| 109 | "key": { |
| 110 | "name": "ApexExample_AAISuccessResponseEvent", |
| 111 | "version": "0.0.1" |
| 112 | }, |
| 113 | "value": { |
| 114 | "key": { |
| 115 | "name": "ApexExample_AAISuccessResponseEvent", |
| 116 | "version": "0.0.1" |
| 117 | }, |
| 118 | "UUID": "b5e3f122-2dcd-3cdf-a0ec-8210b3f80478", |
| 119 | "description": "Generated description for concept referred to by key \"ApexExample_AAISuccessResponseEvent:0.0.1\"" |
| 120 | } |
| 121 | }, |
| 122 | { |
| 123 | "key": { |
| 124 | "name": "ApexExample_AAISuccessResponseHandlerPolicy", |
| 125 | "version": "0.0.1" |
| 126 | }, |
| 127 | "value": { |
| 128 | "key": { |
| 129 | "name": "ApexExample_AAISuccessResponseHandlerPolicy", |
| 130 | "version": "0.0.1" |
| 131 | }, |
| 132 | "UUID": "15504e23-78c5-305e-9fce-cf1f50e75013", |
| 133 | "description": "Generated description for concept referred to by key \"ApexExample_AAISuccessResponseHandlerPolicy:0.0.1\"" |
| 134 | } |
| 135 | }, |
| 136 | { |
| 137 | "key": { |
| 138 | "name": "ApexExample_CDSActionIdentifiersType", |
| 139 | "version": "0.0.1" |
| 140 | }, |
| 141 | "value": { |
| 142 | "key": { |
| 143 | "name": "ApexExample_CDSActionIdentifiersType", |
| 144 | "version": "0.0.1" |
| 145 | }, |
| 146 | "UUID": "e2715e7d-835e-32c7-b433-a2e92bcad6ee", |
| 147 | "description": "Generated description for concept referred to by key \"ApexExample_CDSActionIdentifiersType:0.0.1\"" |
| 148 | } |
| 149 | }, |
| 150 | { |
| 151 | "key": { |
| 152 | "name": "ApexExample_CDSConfigModifyFailureResponseEvent", |
| 153 | "version": "0.0.1" |
| 154 | }, |
| 155 | "value": { |
| 156 | "key": { |
| 157 | "name": "ApexExample_CDSConfigModifyFailureResponseEvent", |
| 158 | "version": "0.0.1" |
| 159 | }, |
| 160 | "UUID": "b492e841-2c03-36a9-9ec2-dda5852152c3", |
| 161 | "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseEvent:0.0.1\"" |
| 162 | } |
| 163 | }, |
| 164 | { |
| 165 | "key": { |
| 166 | "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy", |
| 167 | "version": "0.0.1" |
| 168 | }, |
| 169 | "value": { |
| 170 | "key": { |
| 171 | "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy", |
| 172 | "version": "0.0.1" |
| 173 | }, |
| 174 | "UUID": "ef4e45f4-1181-3121-a3b6-507126df25e7", |
| 175 | "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\"" |
| 176 | } |
| 177 | }, |
| 178 | { |
| 179 | "key": { |
| 180 | "name": "ApexExample_CDSConfigModifyFailureResponseTask", |
| 181 | "version": "0.0.1" |
| 182 | }, |
| 183 | "value": { |
| 184 | "key": { |
| 185 | "name": "ApexExample_CDSConfigModifyFailureResponseTask", |
| 186 | "version": "0.0.1" |
| 187 | }, |
| 188 | "UUID": "91cb711a-0c73-3f51-83e6-fca9c547c71d", |
| 189 | "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseTask:0.0.1\"" |
| 190 | } |
| 191 | }, |
| 192 | { |
| 193 | "key": { |
| 194 | "name": "ApexExample_CDSConfigModifyRequestEvent", |
| 195 | "version": "0.0.1" |
| 196 | }, |
| 197 | "value": { |
| 198 | "key": { |
| 199 | "name": "ApexExample_CDSConfigModifyRequestEvent", |
| 200 | "version": "0.0.1" |
| 201 | }, |
| 202 | "UUID": "dda3c648-dc8b-38e0-855d-9cb72397f957", |
| 203 | "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyRequestEvent:0.0.1\"" |
| 204 | } |
| 205 | }, |
| 206 | { |
| 207 | "key": { |
| 208 | "name": "ApexExample_CDSConfigModifyResponsePayloadType", |
| 209 | "version": "0.0.1" |
| 210 | }, |
| 211 | "value": { |
| 212 | "key": { |
| 213 | "name": "ApexExample_CDSConfigModifyResponsePayloadType", |
| 214 | "version": "0.0.1" |
| 215 | }, |
| 216 | "UUID": "96b306bd-6dee-3d47-981c-eaac316d5ae1", |
| 217 | "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyResponsePayloadType:0.0.1\"" |
| 218 | } |
| 219 | }, |
| 220 | { |
| 221 | "key": { |
| 222 | "name": "ApexExample_CDSConfigModifySuccessResponseEvent", |
| 223 | "version": "0.0.1" |
| 224 | }, |
| 225 | "value": { |
| 226 | "key": { |
| 227 | "name": "ApexExample_CDSConfigModifySuccessResponseEvent", |
| 228 | "version": "0.0.1" |
| 229 | }, |
| 230 | "UUID": "1b65abfb-ce35-3765-9b9c-d2ee02bef28b", |
| 231 | "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseEvent:0.0.1\"" |
| 232 | } |
| 233 | }, |
| 234 | { |
| 235 | "key": { |
| 236 | "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy", |
| 237 | "version": "0.0.1" |
| 238 | }, |
| 239 | "value": { |
| 240 | "key": { |
| 241 | "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy", |
| 242 | "version": "0.0.1" |
| 243 | }, |
| 244 | "UUID": "4dac3de7-3817-396f-91d6-ce701d162877", |
| 245 | "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\"" |
| 246 | } |
| 247 | }, |
| 248 | { |
| 249 | "key": { |
| 250 | "name": "ApexExample_CDSConfigModifySuccessResponseTask", |
| 251 | "version": "0.0.1" |
| 252 | }, |
| 253 | "value": { |
| 254 | "key": { |
| 255 | "name": "ApexExample_CDSConfigModifySuccessResponseTask", |
| 256 | "version": "0.0.1" |
| 257 | }, |
| 258 | "UUID": "92dc9e6b-2082-3d90-ba5e-f2dba18b72b6", |
| 259 | "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseTask:0.0.1\"" |
| 260 | } |
| 261 | }, |
| 262 | { |
| 263 | "key": { |
| 264 | "name": "ApexExample_CDSFailureResponseCommonHeaderType", |
| 265 | "version": "0.0.1" |
| 266 | }, |
| 267 | "value": { |
| 268 | "key": { |
| 269 | "name": "ApexExample_CDSFailureResponseCommonHeaderType", |
| 270 | "version": "0.0.1" |
| 271 | }, |
| 272 | "UUID": "a6801c93-f15b-3158-ba33-7760197d3609", |
| 273 | "description": "Generated description for concept referred to by key \"ApexExample_CDSFailureResponseCommonHeaderType:0.0.1\"" |
| 274 | } |
| 275 | }, |
| 276 | { |
| 277 | "key": { |
| 278 | "name": "ApexExample_CDSFailureResponseStatusType", |
| 279 | "version": "0.0.1" |
| 280 | }, |
| 281 | "value": { |
| 282 | "key": { |
| 283 | "name": "ApexExample_CDSFailureResponseStatusType", |
| 284 | "version": "0.0.1" |
| 285 | }, |
| 286 | "UUID": "e2da0a15-c542-3e77-874d-4512e9b4162e", |
| 287 | "description": "Generated description for concept referred to by key \"ApexExample_CDSFailureResponseStatusType:0.0.1\"" |
| 288 | } |
| 289 | }, |
| 290 | { |
| 291 | "key": { |
| 292 | "name": "ApexExample_CDSRequestCommonHeaderType", |
| 293 | "version": "0.0.1" |
| 294 | }, |
| 295 | "value": { |
| 296 | "key": { |
| 297 | "name": "ApexExample_CDSRequestCommonHeaderType", |
| 298 | "version": "0.0.1" |
| 299 | }, |
| 300 | "UUID": "f54edff0-532f-3142-8e65-a5c9d67888ef", |
| 301 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRequestCommonHeaderType:0.0.1\"" |
| 302 | } |
| 303 | }, |
| 304 | { |
| 305 | "key": { |
| 306 | "name": "ApexExample_CDSRequestPayloadType", |
| 307 | "version": "0.0.1" |
| 308 | }, |
| 309 | "value": { |
| 310 | "key": { |
| 311 | "name": "ApexExample_CDSRequestPayloadType", |
| 312 | "version": "0.0.1" |
| 313 | }, |
| 314 | "UUID": "b967dc44-a156-32d3-a796-f03dbf74316c", |
| 315 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRequestPayloadType:0.0.1\"" |
| 316 | } |
| 317 | }, |
| 318 | { |
| 319 | "key": { |
| 320 | "name": "ApexExample_CDSRestartFailureResponseEvent", |
| 321 | "version": "0.0.1" |
| 322 | }, |
| 323 | "value": { |
| 324 | "key": { |
| 325 | "name": "ApexExample_CDSRestartFailureResponseEvent", |
| 326 | "version": "0.0.1" |
| 327 | }, |
| 328 | "UUID": "f2aa4552-069d-3db8-8638-2d1f59124e7a", |
| 329 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseEvent:0.0.1\"" |
| 330 | } |
| 331 | }, |
| 332 | { |
| 333 | "key": { |
| 334 | "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy", |
| 335 | "version": "0.0.1" |
| 336 | }, |
| 337 | "value": { |
| 338 | "key": { |
| 339 | "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy", |
| 340 | "version": "0.0.1" |
| 341 | }, |
| 342 | "UUID": "c2e3b07f-2c09-3195-9527-6b3ab0666d61", |
| 343 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseHandlerPolicy:0.0.1\"" |
| 344 | } |
| 345 | }, |
| 346 | { |
| 347 | "key": { |
| 348 | "name": "ApexExample_CDSRestartFailureResponseTask", |
| 349 | "version": "0.0.1" |
| 350 | }, |
| 351 | "value": { |
| 352 | "key": { |
| 353 | "name": "ApexExample_CDSRestartFailureResponseTask", |
| 354 | "version": "0.0.1" |
| 355 | }, |
| 356 | "UUID": "a7c28cc1-9fe5-30b7-9dd8-5a4f7f7d811e", |
| 357 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseTask:0.0.1\"" |
| 358 | } |
| 359 | }, |
| 360 | { |
| 361 | "key": { |
| 362 | "name": "ApexExample_CDSRestartRequestEvent", |
| 363 | "version": "0.0.1" |
| 364 | }, |
| 365 | "value": { |
| 366 | "key": { |
| 367 | "name": "ApexExample_CDSRestartRequestEvent", |
| 368 | "version": "0.0.1" |
| 369 | }, |
| 370 | "UUID": "d01d1022-48ac-391d-904d-282ccb063f8a", |
| 371 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartRequestEvent:0.0.1\"" |
| 372 | } |
| 373 | }, |
| 374 | { |
| 375 | "key": { |
| 376 | "name": "ApexExample_CDSRestartResponsePayloadType", |
| 377 | "version": "0.0.1" |
| 378 | }, |
| 379 | "value": { |
| 380 | "key": { |
| 381 | "name": "ApexExample_CDSRestartResponsePayloadType", |
| 382 | "version": "0.0.1" |
| 383 | }, |
| 384 | "UUID": "ad8cbd94-6eb5-3743-8a7d-42cbe49a5320", |
| 385 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartResponsePayloadType:0.0.1\"" |
| 386 | } |
| 387 | }, |
| 388 | { |
| 389 | "key": { |
| 390 | "name": "ApexExample_CDSRestartSuccessResponseEvent", |
| 391 | "version": "0.0.1" |
| 392 | }, |
| 393 | "value": { |
| 394 | "key": { |
| 395 | "name": "ApexExample_CDSRestartSuccessResponseEvent", |
| 396 | "version": "0.0.1" |
| 397 | }, |
| 398 | "UUID": "bbb06330-9161-392e-a0ca-a6bb5e3376af", |
| 399 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseEvent:0.0.1\"" |
| 400 | } |
| 401 | }, |
| 402 | { |
| 403 | "key": { |
| 404 | "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy", |
| 405 | "version": "0.0.1" |
| 406 | }, |
| 407 | "value": { |
| 408 | "key": { |
| 409 | "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy", |
| 410 | "version": "0.0.1" |
| 411 | }, |
| 412 | "UUID": "70c6c6e5-00da-30cb-8ec0-14437d657f39", |
| 413 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseHandlerPolicy:0.0.1\"" |
| 414 | } |
| 415 | }, |
| 416 | { |
| 417 | "key": { |
| 418 | "name": "ApexExample_CDSRestartSuccessResponseTask", |
| 419 | "version": "0.0.1" |
| 420 | }, |
| 421 | "value": { |
| 422 | "key": { |
| 423 | "name": "ApexExample_CDSRestartSuccessResponseTask", |
| 424 | "version": "0.0.1" |
| 425 | }, |
| 426 | "UUID": "77f16151-80b5-304c-a448-19d8528feed1", |
| 427 | "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseTask:0.0.1\"" |
| 428 | } |
| 429 | }, |
| 430 | { |
| 431 | "key": { |
| 432 | "name": "ApexExample_CDSSuccessResponseCommonHeaderType", |
| 433 | "version": "0.0.1" |
| 434 | }, |
| 435 | "value": { |
| 436 | "key": { |
| 437 | "name": "ApexExample_CDSSuccessResponseCommonHeaderType", |
| 438 | "version": "0.0.1" |
| 439 | }, |
| 440 | "UUID": "2f17aee2-fbdf-3c41-a779-f9c17b5bda5b", |
| 441 | "description": "Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseCommonHeaderType:0.0.1\"" |
| 442 | } |
| 443 | }, |
| 444 | { |
| 445 | "key": { |
| 446 | "name": "ApexExample_CDSSuccessResponseStatusType", |
| 447 | "version": "0.0.1" |
| 448 | }, |
| 449 | "value": { |
| 450 | "key": { |
| 451 | "name": "ApexExample_CDSSuccessResponseStatusType", |
| 452 | "version": "0.0.1" |
| 453 | }, |
| 454 | "UUID": "8c554852-3ed6-3027-a0d3-fccd2db19875", |
| 455 | "description": "Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseStatusType:0.0.1\"" |
| 456 | } |
| 457 | }, |
| 458 | { |
| 459 | "key": { |
| 460 | "name": "ApexExample_EventDetailsAlbum", |
| 461 | "version": "0.0.1" |
| 462 | }, |
| 463 | "value": { |
| 464 | "key": { |
| 465 | "name": "ApexExample_EventDetailsAlbum", |
| 466 | "version": "0.0.1" |
| 467 | }, |
| 468 | "UUID": "b402baca-915b-3952-97fc-d9899f9ca81c", |
| 469 | "description": "Generated description for concept referred to by key \"ApexExample_EventDetailsAlbum:0.0.1\"" |
| 470 | } |
| 471 | }, |
| 472 | { |
| 473 | "key": { |
| 474 | "name": "ApexExample_EventDetailsAlbumType", |
| 475 | "version": "0.0.1" |
| 476 | }, |
| 477 | "value": { |
| 478 | "key": { |
| 479 | "name": "ApexExample_EventDetailsAlbumType", |
| 480 | "version": "0.0.1" |
| 481 | }, |
| 482 | "UUID": "3626f32a-eee6-3254-b3d4-e4829518c381", |
| 483 | "description": "Generated description for concept referred to by key \"ApexExample_EventDetailsAlbumType:0.0.1\"" |
| 484 | } |
| 485 | }, |
| 486 | { |
| 487 | "key": { |
| 488 | "name": "ApexExample_HandleAAIFailureResponseTask", |
| 489 | "version": "0.0.1" |
| 490 | }, |
| 491 | "value": { |
| 492 | "key": { |
| 493 | "name": "ApexExample_HandleAAIFailureResponseTask", |
| 494 | "version": "0.0.1" |
| 495 | }, |
| 496 | "UUID": "87abb453-a919-3131-8ffb-3e5c910c6049", |
| 497 | "description": "Generated description for concept referred to by key \"ApexExample_HandleAAIFailureResponseTask:0.0.1\"" |
| 498 | } |
| 499 | }, |
| 500 | { |
| 501 | "key": { |
| 502 | "name": "ApexExample_HandleAAISuccessResponseTask", |
| 503 | "version": "0.0.1" |
| 504 | }, |
| 505 | "value": { |
| 506 | "key": { |
| 507 | "name": "ApexExample_HandleAAISuccessResponseTask", |
| 508 | "version": "0.0.1" |
| 509 | }, |
| 510 | "UUID": "8881e644-3cca-3aec-8201-312ca6f719e0", |
| 511 | "description": "Generated description for concept referred to by key \"ApexExample_HandleAAISuccessResponseTask:0.0.1\"" |
| 512 | } |
| 513 | }, |
| 514 | { |
| 515 | "key": { |
| 516 | "name": "ApexExample_HandleVesEventTask", |
| 517 | "version": "0.0.1" |
| 518 | }, |
| 519 | "value": { |
| 520 | "key": { |
| 521 | "name": "ApexExample_HandleVesEventTask", |
| 522 | "version": "0.0.1" |
| 523 | }, |
| 524 | "UUID": "057f6ddd-d6aa-3ce2-a060-d344de16d7f3", |
| 525 | "description": "Generated description for concept referred to by key \"ApexExample_HandleVesEventTask:0.0.1\"" |
| 526 | } |
| 527 | }, |
| 528 | { |
| 529 | "key": { |
| 530 | "name": "ApexExample_LogStatusEvent", |
| 531 | "version": "0.0.1" |
| 532 | }, |
| 533 | "value": { |
| 534 | "key": { |
| 535 | "name": "ApexExample_LogStatusEvent", |
| 536 | "version": "0.0.1" |
| 537 | }, |
| 538 | "UUID": "4867b1e7-a819-3b9f-be2b-a97fe6019827", |
| 539 | "description": "Generated description for concept referred to by key \"ApexExample_LogStatusEvent:0.0.1\"" |
| 540 | } |
| 541 | }, |
| 542 | { |
| 543 | "key": { |
| 544 | "name": "ApexExample_VesEvent", |
| 545 | "version": "0.0.1" |
| 546 | }, |
| 547 | "value": { |
| 548 | "key": { |
| 549 | "name": "ApexExample_VesEvent", |
| 550 | "version": "0.0.1" |
| 551 | }, |
| 552 | "UUID": "975b3071-b775-3617-a888-f831fe5a31db", |
| 553 | "description": "Generated description for concept referred to by key \"ApexExample_VesEvent:0.0.1\"" |
| 554 | } |
| 555 | }, |
| 556 | { |
| 557 | "key": { |
| 558 | "name": "ApexExample_VesEventHandlerPolicy", |
| 559 | "version": "0.0.1" |
| 560 | }, |
| 561 | "value": { |
| 562 | "key": { |
| 563 | "name": "ApexExample_VesEventHandlerPolicy", |
| 564 | "version": "0.0.1" |
| 565 | }, |
| 566 | "UUID": "ad9efe17-a03e-3b64-8e8a-51e144f57d2c", |
| 567 | "description": "Generated description for concept referred to by key \"ApexExample_VesEventHandlerPolicy:0.0.1\"" |
| 568 | } |
| 569 | }, |
| 570 | { |
| 571 | "key": { |
| 572 | "name": "ApexExample_VesEventType", |
| 573 | "version": "0.0.1" |
| 574 | }, |
| 575 | "value": { |
| 576 | "key": { |
| 577 | "name": "ApexExample_VesEventType", |
| 578 | "version": "0.0.1" |
| 579 | }, |
| 580 | "UUID": "0054393c-10df-3214-af86-cb04a23325bf", |
| 581 | "description": "Generated description for concept referred to by key \"ApexExample_VesEventType:0.0.1\"" |
| 582 | } |
| 583 | }, |
| 584 | { |
| 585 | "key": { |
| 586 | "name": "ApexExample_VnfRelationShipListType", |
| 587 | "version": "0.0.1" |
| 588 | }, |
| 589 | "value": { |
| 590 | "key": { |
| 591 | "name": "ApexExample_VnfRelationShipListType", |
| 592 | "version": "0.0.1" |
| 593 | }, |
| 594 | "UUID": "865a5903-201b-34ff-918b-2bfdde743576", |
| 595 | "description": "Generated description for concept referred to by key \"ApexExample_VnfRelationShipListType:0.0.1\"" |
| 596 | } |
| 597 | }, |
| 598 | { |
| 599 | "key": { |
| 600 | "name": "SimpleBooleanType", |
| 601 | "version": "0.0.1" |
| 602 | }, |
| 603 | "value": { |
| 604 | "key": { |
| 605 | "name": "SimpleBooleanType", |
| 606 | "version": "0.0.1" |
| 607 | }, |
| 608 | "UUID": "7218fb2f-59e3-321d-9ae1-bc97b19eb4ae", |
| 609 | "description": "Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\"" |
| 610 | } |
| 611 | }, |
| 612 | { |
| 613 | "key": { |
| 614 | "name": "SimpleLongType", |
| 615 | "version": "0.0.1" |
| 616 | }, |
| 617 | "value": { |
| 618 | "key": { |
| 619 | "name": "SimpleLongType", |
| 620 | "version": "0.0.1" |
| 621 | }, |
| 622 | "UUID": "2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574", |
| 623 | "description": "Generated description for concept referred to by key \"SimpleLongType:0.0.1\"" |
| 624 | } |
| 625 | }, |
| 626 | { |
| 627 | "key": { |
| 628 | "name": "SimpleStringType", |
| 629 | "version": "0.0.1" |
| 630 | }, |
| 631 | "value": { |
| 632 | "key": { |
| 633 | "name": "SimpleStringType", |
| 634 | "version": "0.0.1" |
| 635 | }, |
| 636 | "UUID": "8a4957cf-9493-3a76-8c22-a208e23259af", |
| 637 | "description": "Generated description for concept referred to by key \"SimpleStringType:0.0.1\"" |
| 638 | } |
| 639 | }, |
| 640 | { |
| 641 | "key": { |
| 642 | "name": "onap.policies.apex.Example", |
| 643 | "version": "0.0.1" |
| 644 | }, |
| 645 | "value": { |
| 646 | "key": { |
| 647 | "name": "onap.policies.apex.Example", |
| 648 | "version": "0.0.1" |
| 649 | }, |
| 650 | "UUID": "b2501730-8870-3475-b22a-4a4d22792ebb", |
| 651 | "description": "Generated description for concept referred to by key \"onap.policies.apex.Example:0.0.1\"" |
| 652 | } |
| 653 | }, |
| 654 | { |
| 655 | "key": { |
| 656 | "name": "onap.policies.apex.Example_Albums", |
| 657 | "version": "0.0.1" |
| 658 | }, |
| 659 | "value": { |
| 660 | "key": { |
| 661 | "name": "onap.policies.apex.Example_Albums", |
| 662 | "version": "0.0.1" |
| 663 | }, |
| 664 | "UUID": "7dc5f49d-c291-38de-bcae-1db30d00581f", |
| 665 | "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Albums:0.0.1\"" |
| 666 | } |
| 667 | }, |
| 668 | { |
| 669 | "key": { |
| 670 | "name": "onap.policies.apex.Example_Events", |
| 671 | "version": "0.0.1" |
| 672 | }, |
| 673 | "value": { |
| 674 | "key": { |
| 675 | "name": "onap.policies.apex.Example_Events", |
| 676 | "version": "0.0.1" |
| 677 | }, |
| 678 | "UUID": "06b3112b-ae8b-3f37-8aa6-f539c0250550", |
| 679 | "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Events:0.0.1\"" |
| 680 | } |
| 681 | }, |
| 682 | { |
| 683 | "key": { |
| 684 | "name": "onap.policies.apex.Example_KeyInfo", |
| 685 | "version": "0.0.1" |
| 686 | }, |
| 687 | "value": { |
| 688 | "key": { |
| 689 | "name": "onap.policies.apex.Example_KeyInfo", |
| 690 | "version": "0.0.1" |
| 691 | }, |
| 692 | "UUID": "454848e1-43ac-3ce4-bfdc-b9b6271dc563", |
| 693 | "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_KeyInfo:0.0.1\"" |
| 694 | } |
| 695 | }, |
| 696 | { |
| 697 | "key": { |
| 698 | "name": "onap.policies.apex.Example_Policies", |
| 699 | "version": "0.0.1" |
| 700 | }, |
| 701 | "value": { |
| 702 | "key": { |
| 703 | "name": "onap.policies.apex.Example_Policies", |
| 704 | "version": "0.0.1" |
| 705 | }, |
| 706 | "UUID": "24c3fca5-b0dd-398c-83ee-66a187296b32", |
| 707 | "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Policies:0.0.1\"" |
| 708 | } |
| 709 | }, |
| 710 | { |
| 711 | "key": { |
| 712 | "name": "onap.policies.apex.Example_Schemas", |
| 713 | "version": "0.0.1" |
| 714 | }, |
| 715 | "value": { |
| 716 | "key": { |
| 717 | "name": "onap.policies.apex.Example_Schemas", |
| 718 | "version": "0.0.1" |
| 719 | }, |
| 720 | "UUID": "c6aff774-f50a-329d-a731-9c23a6e7e02e", |
| 721 | "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Schemas:0.0.1\"" |
| 722 | } |
| 723 | }, |
| 724 | { |
| 725 | "key": { |
| 726 | "name": "onap.policies.apex.Example_Tasks", |
| 727 | "version": "0.0.1" |
| 728 | }, |
| 729 | "value": { |
| 730 | "key": { |
| 731 | "name": "onap.policies.apex.Example_Tasks", |
| 732 | "version": "0.0.1" |
| 733 | }, |
| 734 | "UUID": "f856a6df-6237-3acc-aa68-f55e64cc0ec9", |
| 735 | "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Tasks:0.0.1\"" |
| 736 | } |
| 737 | } |
| 738 | ] |
| 739 | } |
| 740 | }, |
| 741 | "policies": { |
| 742 | "key": { |
| 743 | "name": "onap.policies.apex.Example_Policies", |
| 744 | "version": "0.0.1" |
| 745 | }, |
| 746 | "policyMap": { |
| 747 | "entry": [ |
| 748 | { |
| 749 | "key": { |
| 750 | "name": "ApexExample_AAIFailureResponseHandlerPolicy", |
| 751 | "version": "0.0.1" |
| 752 | }, |
| 753 | "value": { |
| 754 | "policyKey": { |
| 755 | "name": "ApexExample_AAIFailureResponseHandlerPolicy", |
| 756 | "version": "0.0.1" |
| 757 | }, |
| 758 | "template": "Freestyle", |
| 759 | "state": { |
| 760 | "entry": [ |
| 761 | { |
| 762 | "key": "ApexExample_ReceiveAAIFailureResponseState", |
| 763 | "value": { |
| 764 | "stateKey": { |
| 765 | "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy", |
| 766 | "parentKeyVersion": "0.0.1", |
| 767 | "parentLocalName": "NULL", |
| 768 | "localName": "ApexExample_ReceiveAAIFailureResponseState" |
| 769 | }, |
| 770 | "trigger": { |
| 771 | "name": "ApexExample_AAIFailureResponseEvent", |
| 772 | "version": "0.0.1" |
| 773 | }, |
| 774 | "stateOutputs": { |
| 775 | "entry": [ |
| 776 | { |
| 777 | "key": "ApexExample_AAIFailureStateOutput", |
| 778 | "value": { |
| 779 | "key": { |
| 780 | "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy", |
| 781 | "parentKeyVersion": "0.0.1", |
| 782 | "parentLocalName": "ApexExample_ReceiveAAIFailureResponseState", |
| 783 | "localName": "ApexExample_AAIFailureStateOutput" |
| 784 | }, |
| 785 | "outgoingEvent": { |
| 786 | "name": "ApexExample_LogStatusEvent", |
| 787 | "version": "0.0.1" |
| 788 | }, |
| 789 | "nextState": { |
| 790 | "parentKeyName": "NULL", |
| 791 | "parentKeyVersion": "0.0.0", |
| 792 | "parentLocalName": "NULL", |
| 793 | "localName": "NULL" |
| 794 | } |
| 795 | } |
| 796 | } |
| 797 | ] |
| 798 | }, |
| 799 | "contextAlbumReference": [], |
| 800 | "taskSelectionLogic": { |
| 801 | "key": "NULL", |
| 802 | "logicFlavour": "UNDEFINED", |
| 803 | "logic": "" |
| 804 | }, |
| 805 | "stateFinalizerLogicMap": { |
| 806 | "entry": [] |
| 807 | }, |
| 808 | "defaultTask": { |
| 809 | "name": "ApexExample_HandleAAIFailureResponseTask", |
| 810 | "version": "0.0.1" |
| 811 | }, |
| 812 | "taskReferences": { |
| 813 | "entry": [ |
| 814 | { |
| 815 | "key": { |
| 816 | "name": "ApexExample_HandleAAIFailureResponseTask", |
| 817 | "version": "0.0.1" |
| 818 | }, |
| 819 | "value": { |
| 820 | "key": { |
| 821 | "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy", |
| 822 | "parentKeyVersion": "0.0.1", |
| 823 | "parentLocalName": "ApexExample_ReceiveAAIFailureResponseState", |
| 824 | "localName": "ApexExample_AAIFailureResponseHandlerPolicy" |
| 825 | }, |
| 826 | "outputType": "DIRECT", |
| 827 | "output": { |
| 828 | "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy", |
| 829 | "parentKeyVersion": "0.0.1", |
| 830 | "parentLocalName": "ApexExample_ReceiveAAIFailureResponseState", |
| 831 | "localName": "ApexExample_AAIFailureStateOutput" |
| 832 | } |
| 833 | } |
| 834 | } |
| 835 | ] |
| 836 | } |
| 837 | } |
| 838 | } |
| 839 | ] |
| 840 | }, |
| 841 | "firstState": "ApexExample_ReceiveAAIFailureResponseState" |
| 842 | } |
| 843 | }, |
| 844 | { |
| 845 | "key": { |
| 846 | "name": "ApexExample_AAISuccessResponseHandlerPolicy", |
| 847 | "version": "0.0.1" |
| 848 | }, |
| 849 | "value": { |
| 850 | "policyKey": { |
| 851 | "name": "ApexExample_AAISuccessResponseHandlerPolicy", |
| 852 | "version": "0.0.1" |
| 853 | }, |
| 854 | "template": "Freestyle", |
| 855 | "state": { |
| 856 | "entry": [ |
| 857 | { |
| 858 | "key": "ApexExample_ReceiveAAISuccessResponseState", |
| 859 | "value": { |
| 860 | "stateKey": { |
| 861 | "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy", |
| 862 | "parentKeyVersion": "0.0.1", |
| 863 | "parentLocalName": "NULL", |
| 864 | "localName": "ApexExample_ReceiveAAISuccessResponseState" |
| 865 | }, |
| 866 | "trigger": { |
| 867 | "name": "ApexExample_AAISuccessResponseEvent", |
| 868 | "version": "0.0.1" |
| 869 | }, |
| 870 | "stateOutputs": { |
| 871 | "entry": [ |
| 872 | { |
| 873 | "key": "ApexExample_AAISuccessStateOutput", |
| 874 | "value": { |
| 875 | "key": { |
| 876 | "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy", |
| 877 | "parentKeyVersion": "0.0.1", |
| 878 | "parentLocalName": "ApexExample_ReceiveAAISuccessResponseState", |
| 879 | "localName": "ApexExample_AAISuccessStateOutput" |
| 880 | }, |
| 881 | "outgoingEvent": { |
| 882 | "name": "ApexExample_CDSConfigModifyRequestEvent", |
| 883 | "version": "0.0.1" |
| 884 | }, |
| 885 | "nextState": { |
| 886 | "parentKeyName": "NULL", |
| 887 | "parentKeyVersion": "0.0.0", |
| 888 | "parentLocalName": "NULL", |
| 889 | "localName": "NULL" |
| 890 | } |
| 891 | } |
| 892 | } |
| 893 | ] |
| 894 | }, |
| 895 | "contextAlbumReference": [], |
| 896 | "taskSelectionLogic": { |
| 897 | "key": "NULL", |
| 898 | "logicFlavour": "UNDEFINED", |
| 899 | "logic": "" |
| 900 | }, |
| 901 | "stateFinalizerLogicMap": { |
| 902 | "entry": [] |
| 903 | }, |
| 904 | "defaultTask": { |
| 905 | "name": "ApexExample_HandleAAISuccessResponseTask", |
| 906 | "version": "0.0.1" |
| 907 | }, |
| 908 | "taskReferences": { |
| 909 | "entry": [ |
| 910 | { |
| 911 | "key": { |
| 912 | "name": "ApexExample_HandleAAISuccessResponseTask", |
| 913 | "version": "0.0.1" |
| 914 | }, |
| 915 | "value": { |
| 916 | "key": { |
| 917 | "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy", |
| 918 | "parentKeyVersion": "0.0.1", |
| 919 | "parentLocalName": "ApexExample_ReceiveAAISuccessResponseState", |
| 920 | "localName": "ApexExample_AAISuccessResponseHandlerPolicy" |
| 921 | }, |
| 922 | "outputType": "DIRECT", |
| 923 | "output": { |
| 924 | "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy", |
| 925 | "parentKeyVersion": "0.0.1", |
| 926 | "parentLocalName": "ApexExample_ReceiveAAISuccessResponseState", |
| 927 | "localName": "ApexExample_AAISuccessStateOutput" |
| 928 | } |
| 929 | } |
| 930 | } |
| 931 | ] |
| 932 | } |
| 933 | } |
| 934 | } |
| 935 | ] |
| 936 | }, |
| 937 | "firstState": "ApexExample_ReceiveAAISuccessResponseState" |
| 938 | } |
| 939 | }, |
| 940 | { |
| 941 | "key": { |
| 942 | "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy", |
| 943 | "version": "0.0.1" |
| 944 | }, |
| 945 | "value": { |
| 946 | "policyKey": { |
| 947 | "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy", |
| 948 | "version": "0.0.1" |
| 949 | }, |
| 950 | "template": "Freestyle", |
| 951 | "state": { |
| 952 | "entry": [ |
| 953 | { |
| 954 | "key": "ApexExample_CDSConfigModifyFailureResponseState", |
| 955 | "value": { |
| 956 | "stateKey": { |
| 957 | "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy", |
| 958 | "parentKeyVersion": "0.0.1", |
| 959 | "parentLocalName": "NULL", |
| 960 | "localName": "ApexExample_CDSConfigModifyFailureResponseState" |
| 961 | }, |
| 962 | "trigger": { |
| 963 | "name": "ApexExample_CDSConfigModifyFailureResponseEvent", |
| 964 | "version": "0.0.1" |
| 965 | }, |
| 966 | "stateOutputs": { |
| 967 | "entry": [ |
| 968 | { |
| 969 | "key": "ApexExample_ConfigModifyFailureResponseOutput", |
| 970 | "value": { |
| 971 | "key": { |
| 972 | "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy", |
| 973 | "parentKeyVersion": "0.0.1", |
| 974 | "parentLocalName": "ApexExample_CDSConfigModifyFailureResponseState", |
| 975 | "localName": "ApexExample_ConfigModifyFailureResponseOutput" |
| 976 | }, |
| 977 | "outgoingEvent": { |
| 978 | "name": "ApexExample_LogStatusEvent", |
| 979 | "version": "0.0.1" |
| 980 | }, |
| 981 | "nextState": { |
| 982 | "parentKeyName": "NULL", |
| 983 | "parentKeyVersion": "0.0.0", |
| 984 | "parentLocalName": "NULL", |
| 985 | "localName": "NULL" |
| 986 | } |
| 987 | } |
| 988 | } |
| 989 | ] |
| 990 | }, |
| 991 | "contextAlbumReference": [], |
| 992 | "taskSelectionLogic": { |
| 993 | "key": "NULL", |
| 994 | "logicFlavour": "UNDEFINED", |
| 995 | "logic": "" |
| 996 | }, |
| 997 | "stateFinalizerLogicMap": { |
| 998 | "entry": [] |
| 999 | }, |
| 1000 | "defaultTask": { |
| 1001 | "name": "ApexExample_CDSConfigModifyFailureResponseTask", |
| 1002 | "version": "0.0.1" |
| 1003 | }, |
| 1004 | "taskReferences": { |
| 1005 | "entry": [ |
| 1006 | { |
| 1007 | "key": { |
| 1008 | "name": "ApexExample_CDSConfigModifyFailureResponseTask", |
| 1009 | "version": "0.0.1" |
| 1010 | }, |
| 1011 | "value": { |
| 1012 | "key": { |
| 1013 | "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy", |
| 1014 | "parentKeyVersion": "0.0.1", |
| 1015 | "parentLocalName": "ApexExample_CDSConfigModifyFailureResponseState", |
| 1016 | "localName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy" |
| 1017 | }, |
| 1018 | "outputType": "DIRECT", |
| 1019 | "output": { |
| 1020 | "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy", |
| 1021 | "parentKeyVersion": "0.0.1", |
| 1022 | "parentLocalName": "ApexExample_CDSConfigModifyFailureResponseState", |
| 1023 | "localName": "ApexExample_ConfigModifyFailureResponseOutput" |
| 1024 | } |
| 1025 | } |
| 1026 | } |
| 1027 | ] |
| 1028 | } |
| 1029 | } |
| 1030 | } |
| 1031 | ] |
| 1032 | }, |
| 1033 | "firstState": "ApexExample_CDSConfigModifyFailureResponseState" |
| 1034 | } |
| 1035 | }, |
| 1036 | { |
| 1037 | "key": { |
| 1038 | "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy", |
| 1039 | "version": "0.0.1" |
| 1040 | }, |
| 1041 | "value": { |
| 1042 | "policyKey": { |
| 1043 | "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy", |
| 1044 | "version": "0.0.1" |
| 1045 | }, |
| 1046 | "template": "Freestyle", |
| 1047 | "state": { |
| 1048 | "entry": [ |
| 1049 | { |
| 1050 | "key": "ApexExample_CDSConfigModifySuccessResponseState", |
| 1051 | "value": { |
| 1052 | "stateKey": { |
| 1053 | "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy", |
| 1054 | "parentKeyVersion": "0.0.1", |
| 1055 | "parentLocalName": "NULL", |
| 1056 | "localName": "ApexExample_CDSConfigModifySuccessResponseState" |
| 1057 | }, |
| 1058 | "trigger": { |
| 1059 | "name": "ApexExample_CDSConfigModifySuccessResponseEvent", |
| 1060 | "version": "0.0.1" |
| 1061 | }, |
| 1062 | "stateOutputs": { |
| 1063 | "entry": [ |
| 1064 | { |
| 1065 | "key": "ApexExample_ConfigModifySuccessResponseOutput", |
| 1066 | "value": { |
| 1067 | "key": { |
| 1068 | "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy", |
| 1069 | "parentKeyVersion": "0.0.1", |
| 1070 | "parentLocalName": "ApexExample_CDSConfigModifySuccessResponseState", |
| 1071 | "localName": "ApexExample_ConfigModifySuccessResponseOutput" |
| 1072 | }, |
| 1073 | "outgoingEvent": { |
| 1074 | "name": "ApexExample_CDSRestartRequestEvent", |
| 1075 | "version": "0.0.1" |
| 1076 | }, |
| 1077 | "nextState": { |
| 1078 | "parentKeyName": "NULL", |
| 1079 | "parentKeyVersion": "0.0.0", |
| 1080 | "parentLocalName": "NULL", |
| 1081 | "localName": "NULL" |
| 1082 | } |
| 1083 | } |
| 1084 | } |
| 1085 | ] |
| 1086 | }, |
| 1087 | "contextAlbumReference": [], |
| 1088 | "taskSelectionLogic": { |
| 1089 | "key": "NULL", |
| 1090 | "logicFlavour": "UNDEFINED", |
| 1091 | "logic": "" |
| 1092 | }, |
| 1093 | "stateFinalizerLogicMap": { |
| 1094 | "entry": [] |
| 1095 | }, |
| 1096 | "defaultTask": { |
| 1097 | "name": "ApexExample_CDSConfigModifySuccessResponseTask", |
| 1098 | "version": "0.0.1" |
| 1099 | }, |
| 1100 | "taskReferences": { |
| 1101 | "entry": [ |
| 1102 | { |
| 1103 | "key": { |
| 1104 | "name": "ApexExample_CDSConfigModifySuccessResponseTask", |
| 1105 | "version": "0.0.1" |
| 1106 | }, |
| 1107 | "value": { |
| 1108 | "key": { |
| 1109 | "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy", |
| 1110 | "parentKeyVersion": "0.0.1", |
| 1111 | "parentLocalName": "ApexExample_CDSConfigModifySuccessResponseState", |
| 1112 | "localName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy" |
| 1113 | }, |
| 1114 | "outputType": "DIRECT", |
| 1115 | "output": { |
| 1116 | "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy", |
| 1117 | "parentKeyVersion": "0.0.1", |
| 1118 | "parentLocalName": "ApexExample_CDSConfigModifySuccessResponseState", |
| 1119 | "localName": "ApexExample_ConfigModifySuccessResponseOutput" |
| 1120 | } |
| 1121 | } |
| 1122 | } |
| 1123 | ] |
| 1124 | } |
| 1125 | } |
| 1126 | } |
| 1127 | ] |
| 1128 | }, |
| 1129 | "firstState": "ApexExample_CDSConfigModifySuccessResponseState" |
| 1130 | } |
| 1131 | }, |
| 1132 | { |
| 1133 | "key": { |
| 1134 | "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy", |
| 1135 | "version": "0.0.1" |
| 1136 | }, |
| 1137 | "value": { |
| 1138 | "policyKey": { |
| 1139 | "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy", |
| 1140 | "version": "0.0.1" |
| 1141 | }, |
| 1142 | "template": "Freestyle", |
| 1143 | "state": { |
| 1144 | "entry": [ |
| 1145 | { |
| 1146 | "key": "ApexExample_CDSRestartFailureResponseState", |
| 1147 | "value": { |
| 1148 | "stateKey": { |
| 1149 | "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy", |
| 1150 | "parentKeyVersion": "0.0.1", |
| 1151 | "parentLocalName": "NULL", |
| 1152 | "localName": "ApexExample_CDSRestartFailureResponseState" |
| 1153 | }, |
| 1154 | "trigger": { |
| 1155 | "name": "ApexExample_CDSRestartFailureResponseEvent", |
| 1156 | "version": "0.0.1" |
| 1157 | }, |
| 1158 | "stateOutputs": { |
| 1159 | "entry": [ |
| 1160 | { |
| 1161 | "key": "ApexExample_RestartFailureResponseOutput", |
| 1162 | "value": { |
| 1163 | "key": { |
| 1164 | "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy", |
| 1165 | "parentKeyVersion": "0.0.1", |
| 1166 | "parentLocalName": "ApexExample_CDSRestartFailureResponseState", |
| 1167 | "localName": "ApexExample_RestartFailureResponseOutput" |
| 1168 | }, |
| 1169 | "outgoingEvent": { |
| 1170 | "name": "ApexExample_LogStatusEvent", |
| 1171 | "version": "0.0.1" |
| 1172 | }, |
| 1173 | "nextState": { |
| 1174 | "parentKeyName": "NULL", |
| 1175 | "parentKeyVersion": "0.0.0", |
| 1176 | "parentLocalName": "NULL", |
| 1177 | "localName": "NULL" |
| 1178 | } |
| 1179 | } |
| 1180 | } |
| 1181 | ] |
| 1182 | }, |
| 1183 | "contextAlbumReference": [], |
| 1184 | "taskSelectionLogic": { |
| 1185 | "key": "NULL", |
| 1186 | "logicFlavour": "UNDEFINED", |
| 1187 | "logic": "" |
| 1188 | }, |
| 1189 | "stateFinalizerLogicMap": { |
| 1190 | "entry": [] |
| 1191 | }, |
| 1192 | "defaultTask": { |
| 1193 | "name": "ApexExample_CDSRestartFailureResponseTask", |
| 1194 | "version": "0.0.1" |
| 1195 | }, |
| 1196 | "taskReferences": { |
| 1197 | "entry": [ |
| 1198 | { |
| 1199 | "key": { |
| 1200 | "name": "ApexExample_CDSRestartFailureResponseTask", |
| 1201 | "version": "0.0.1" |
| 1202 | }, |
| 1203 | "value": { |
| 1204 | "key": { |
| 1205 | "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy", |
| 1206 | "parentKeyVersion": "0.0.1", |
| 1207 | "parentLocalName": "ApexExample_CDSRestartFailureResponseState", |
| 1208 | "localName": "ApexExample_CDSRestartFailureResponseHandlerPolicy" |
| 1209 | }, |
| 1210 | "outputType": "DIRECT", |
| 1211 | "output": { |
| 1212 | "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy", |
| 1213 | "parentKeyVersion": "0.0.1", |
| 1214 | "parentLocalName": "ApexExample_CDSRestartFailureResponseState", |
| 1215 | "localName": "ApexExample_RestartFailureResponseOutput" |
| 1216 | } |
| 1217 | } |
| 1218 | } |
| 1219 | ] |
| 1220 | } |
| 1221 | } |
| 1222 | } |
| 1223 | ] |
| 1224 | }, |
| 1225 | "firstState": "ApexExample_CDSRestartFailureResponseState" |
| 1226 | } |
| 1227 | }, |
| 1228 | { |
| 1229 | "key": { |
| 1230 | "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy", |
| 1231 | "version": "0.0.1" |
| 1232 | }, |
| 1233 | "value": { |
| 1234 | "policyKey": { |
| 1235 | "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy", |
| 1236 | "version": "0.0.1" |
| 1237 | }, |
| 1238 | "template": "Freestyle", |
| 1239 | "state": { |
| 1240 | "entry": [ |
| 1241 | { |
| 1242 | "key": "ApexExample_CDSRestartSuccessResponseState", |
| 1243 | "value": { |
| 1244 | "stateKey": { |
| 1245 | "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy", |
| 1246 | "parentKeyVersion": "0.0.1", |
| 1247 | "parentLocalName": "NULL", |
| 1248 | "localName": "ApexExample_CDSRestartSuccessResponseState" |
| 1249 | }, |
| 1250 | "trigger": { |
| 1251 | "name": "ApexExample_CDSRestartSuccessResponseEvent", |
| 1252 | "version": "0.0.1" |
| 1253 | }, |
| 1254 | "stateOutputs": { |
| 1255 | "entry": [ |
| 1256 | { |
| 1257 | "key": "ApexExample_RestartSuccessResponseOutput", |
| 1258 | "value": { |
| 1259 | "key": { |
| 1260 | "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy", |
| 1261 | "parentKeyVersion": "0.0.1", |
| 1262 | "parentLocalName": "ApexExample_CDSRestartSuccessResponseState", |
| 1263 | "localName": "ApexExample_RestartSuccessResponseOutput" |
| 1264 | }, |
| 1265 | "outgoingEvent": { |
| 1266 | "name": "ApexExample_LogStatusEvent", |
| 1267 | "version": "0.0.1" |
| 1268 | }, |
| 1269 | "nextState": { |
| 1270 | "parentKeyName": "NULL", |
| 1271 | "parentKeyVersion": "0.0.0", |
| 1272 | "parentLocalName": "NULL", |
| 1273 | "localName": "NULL" |
| 1274 | } |
| 1275 | } |
| 1276 | } |
| 1277 | ] |
| 1278 | }, |
| 1279 | "contextAlbumReference": [], |
| 1280 | "taskSelectionLogic": { |
| 1281 | "key": "NULL", |
| 1282 | "logicFlavour": "UNDEFINED", |
| 1283 | "logic": "" |
| 1284 | }, |
| 1285 | "stateFinalizerLogicMap": { |
| 1286 | "entry": [] |
| 1287 | }, |
| 1288 | "defaultTask": { |
| 1289 | "name": "ApexExample_CDSRestartSuccessResponseTask", |
| 1290 | "version": "0.0.1" |
| 1291 | }, |
| 1292 | "taskReferences": { |
| 1293 | "entry": [ |
| 1294 | { |
| 1295 | "key": { |
| 1296 | "name": "ApexExample_CDSRestartSuccessResponseTask", |
| 1297 | "version": "0.0.1" |
| 1298 | }, |
| 1299 | "value": { |
| 1300 | "key": { |
| 1301 | "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy", |
| 1302 | "parentKeyVersion": "0.0.1", |
| 1303 | "parentLocalName": "ApexExample_CDSRestartSuccessResponseState", |
| 1304 | "localName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy" |
| 1305 | }, |
| 1306 | "outputType": "DIRECT", |
| 1307 | "output": { |
| 1308 | "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy", |
| 1309 | "parentKeyVersion": "0.0.1", |
| 1310 | "parentLocalName": "ApexExample_CDSRestartSuccessResponseState", |
| 1311 | "localName": "ApexExample_RestartSuccessResponseOutput" |
| 1312 | } |
| 1313 | } |
| 1314 | } |
| 1315 | ] |
| 1316 | } |
| 1317 | } |
| 1318 | } |
| 1319 | ] |
| 1320 | }, |
| 1321 | "firstState": "ApexExample_CDSRestartSuccessResponseState" |
| 1322 | } |
| 1323 | }, |
| 1324 | { |
| 1325 | "key": { |
| 1326 | "name": "ApexExample_VesEventHandlerPolicy", |
| 1327 | "version": "0.0.1" |
| 1328 | }, |
| 1329 | "value": { |
| 1330 | "policyKey": { |
| 1331 | "name": "ApexExample_VesEventHandlerPolicy", |
| 1332 | "version": "0.0.1" |
| 1333 | }, |
| 1334 | "template": "Freestyle", |
| 1335 | "state": { |
| 1336 | "entry": [ |
| 1337 | { |
| 1338 | "key": "ApexExample_ReceiveVesState", |
| 1339 | "value": { |
| 1340 | "stateKey": { |
| 1341 | "parentKeyName": "ApexExample_VesEventHandlerPolicy", |
| 1342 | "parentKeyVersion": "0.0.1", |
| 1343 | "parentLocalName": "NULL", |
| 1344 | "localName": "ApexExample_ReceiveVesState" |
| 1345 | }, |
| 1346 | "trigger": { |
| 1347 | "name": "ApexExample_VesEvent", |
| 1348 | "version": "0.0.1" |
| 1349 | }, |
| 1350 | "stateOutputs": { |
| 1351 | "entry": [ |
| 1352 | { |
| 1353 | "key": "ApexExample_VesOutput", |
| 1354 | "value": { |
| 1355 | "key": { |
| 1356 | "parentKeyName": "ApexExample_VesEventHandlerPolicy", |
| 1357 | "parentKeyVersion": "0.0.1", |
| 1358 | "parentLocalName": "ApexExample_ReceiveVesState", |
| 1359 | "localName": "ApexExample_VesOutput" |
| 1360 | }, |
| 1361 | "outgoingEvent": { |
| 1362 | "name": "ApexExample_AAIRequestEvent", |
| 1363 | "version": "0.0.1" |
| 1364 | }, |
| 1365 | "nextState": { |
| 1366 | "parentKeyName": "NULL", |
| 1367 | "parentKeyVersion": "0.0.0", |
| 1368 | "parentLocalName": "NULL", |
| 1369 | "localName": "NULL" |
| 1370 | } |
| 1371 | } |
| 1372 | } |
| 1373 | ] |
| 1374 | }, |
| 1375 | "contextAlbumReference": [], |
| 1376 | "taskSelectionLogic": { |
| 1377 | "key": "NULL", |
| 1378 | "logicFlavour": "UNDEFINED", |
| 1379 | "logic": "" |
| 1380 | }, |
| 1381 | "stateFinalizerLogicMap": { |
| 1382 | "entry": [] |
| 1383 | }, |
| 1384 | "defaultTask": { |
| 1385 | "name": "ApexExample_HandleVesEventTask", |
| 1386 | "version": "0.0.1" |
| 1387 | }, |
| 1388 | "taskReferences": { |
| 1389 | "entry": [ |
| 1390 | { |
| 1391 | "key": { |
| 1392 | "name": "ApexExample_HandleVesEventTask", |
| 1393 | "version": "0.0.1" |
| 1394 | }, |
| 1395 | "value": { |
| 1396 | "key": { |
| 1397 | "parentKeyName": "ApexExample_VesEventHandlerPolicy", |
| 1398 | "parentKeyVersion": "0.0.1", |
| 1399 | "parentLocalName": "ApexExample_ReceiveVesState", |
| 1400 | "localName": "ApexExample_VesEventHandlerPolicy" |
| 1401 | }, |
| 1402 | "outputType": "DIRECT", |
| 1403 | "output": { |
| 1404 | "parentKeyName": "ApexExample_VesEventHandlerPolicy", |
| 1405 | "parentKeyVersion": "0.0.1", |
| 1406 | "parentLocalName": "ApexExample_ReceiveVesState", |
| 1407 | "localName": "ApexExample_VesOutput" |
| 1408 | } |
| 1409 | } |
| 1410 | } |
| 1411 | ] |
| 1412 | } |
| 1413 | } |
| 1414 | } |
| 1415 | ] |
| 1416 | }, |
| 1417 | "firstState": "ApexExample_ReceiveVesState" |
| 1418 | } |
| 1419 | } |
| 1420 | ] |
| 1421 | } |
| 1422 | }, |
| 1423 | "tasks": { |
| 1424 | "key": { |
| 1425 | "name": "onap.policies.apex.Example_Tasks", |
| 1426 | "version": "0.0.1" |
| 1427 | }, |
| 1428 | "taskMap": { |
| 1429 | "entry": [ |
| 1430 | { |
| 1431 | "key": { |
| 1432 | "name": "ApexExample_CDSConfigModifyFailureResponseTask", |
| 1433 | "version": "0.0.1" |
| 1434 | }, |
| 1435 | "value": { |
| 1436 | "key": { |
| 1437 | "name": "ApexExample_CDSConfigModifyFailureResponseTask", |
| 1438 | "version": "0.0.1" |
| 1439 | }, |
| 1440 | "inputFields": { |
| 1441 | "entry": [ |
| 1442 | { |
| 1443 | "key": "actionIdentifiers", |
| 1444 | "value": { |
| 1445 | "key": "actionIdentifiers", |
| 1446 | "fieldSchemaKey": { |
| 1447 | "name": "ApexExample_CDSActionIdentifiersType", |
| 1448 | "version": "0.0.1" |
| 1449 | }, |
| 1450 | "optional": false |
| 1451 | } |
| 1452 | }, |
| 1453 | { |
| 1454 | "key": "commonHeader", |
| 1455 | "value": { |
| 1456 | "key": "commonHeader", |
| 1457 | "fieldSchemaKey": { |
| 1458 | "name": "ApexExample_CDSFailureResponseCommonHeaderType", |
| 1459 | "version": "0.0.1" |
| 1460 | }, |
| 1461 | "optional": false |
| 1462 | } |
| 1463 | }, |
| 1464 | { |
| 1465 | "key": "payload", |
| 1466 | "value": { |
| 1467 | "key": "payload", |
| 1468 | "fieldSchemaKey": { |
| 1469 | "name": "ApexExample_CDSConfigModifyResponsePayloadType", |
| 1470 | "version": "0.0.1" |
| 1471 | }, |
| 1472 | "optional": false |
| 1473 | } |
| 1474 | }, |
| 1475 | { |
| 1476 | "key": "status", |
| 1477 | "value": { |
| 1478 | "key": "status", |
| 1479 | "fieldSchemaKey": { |
| 1480 | "name": "ApexExample_CDSFailureResponseStatusType", |
| 1481 | "version": "0.0.1" |
| 1482 | }, |
| 1483 | "optional": false |
| 1484 | } |
| 1485 | } |
| 1486 | ] |
| 1487 | }, |
| 1488 | "outputFields": { |
| 1489 | "entry": [ |
| 1490 | { |
| 1491 | "key": "message", |
| 1492 | "value": { |
| 1493 | "key": "message", |
| 1494 | "fieldSchemaKey": { |
| 1495 | "name": "SimpleStringType", |
| 1496 | "version": "0.0.1" |
| 1497 | }, |
| 1498 | "optional": false |
| 1499 | } |
| 1500 | } |
| 1501 | ] |
| 1502 | }, |
| 1503 | "taskParameters": { |
| 1504 | "entry": [] |
| 1505 | }, |
| 1506 | "contextAlbumReference": [ |
| 1507 | { |
| 1508 | "name": "ApexExample_EventDetailsAlbum", |
| 1509 | "version": "0.0.1" |
| 1510 | } |
| 1511 | ], |
| 1512 | "taskLogic": { |
| 1513 | "key": "TaskLogic", |
| 1514 | "logicFlavour": "JAVASCRIPT", |
| 1515 | "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nerrorMessage = errorMessage.replace(/\"/g, '\\\\\\\"')\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}" |
| 1516 | } |
| 1517 | } |
| 1518 | }, |
| 1519 | { |
| 1520 | "key": { |
| 1521 | "name": "ApexExample_CDSConfigModifySuccessResponseTask", |
| 1522 | "version": "0.0.1" |
| 1523 | }, |
| 1524 | "value": { |
| 1525 | "key": { |
| 1526 | "name": "ApexExample_CDSConfigModifySuccessResponseTask", |
| 1527 | "version": "0.0.1" |
| 1528 | }, |
| 1529 | "inputFields": { |
| 1530 | "entry": [ |
| 1531 | { |
| 1532 | "key": "actionIdentifiers", |
| 1533 | "value": { |
| 1534 | "key": "actionIdentifiers", |
| 1535 | "fieldSchemaKey": { |
| 1536 | "name": "ApexExample_CDSActionIdentifiersType", |
| 1537 | "version": "0.0.1" |
| 1538 | }, |
| 1539 | "optional": false |
| 1540 | } |
| 1541 | }, |
| 1542 | { |
| 1543 | "key": "commonHeader", |
| 1544 | "value": { |
| 1545 | "key": "commonHeader", |
| 1546 | "fieldSchemaKey": { |
| 1547 | "name": "ApexExample_CDSSuccessResponseCommonHeaderType", |
| 1548 | "version": "0.0.1" |
| 1549 | }, |
| 1550 | "optional": false |
| 1551 | } |
| 1552 | }, |
| 1553 | { |
| 1554 | "key": "payload", |
| 1555 | "value": { |
| 1556 | "key": "payload", |
| 1557 | "fieldSchemaKey": { |
| 1558 | "name": "ApexExample_CDSConfigModifyResponsePayloadType", |
| 1559 | "version": "0.0.1" |
| 1560 | }, |
| 1561 | "optional": false |
| 1562 | } |
| 1563 | }, |
| 1564 | { |
| 1565 | "key": "status", |
| 1566 | "value": { |
| 1567 | "key": "status", |
| 1568 | "fieldSchemaKey": { |
| 1569 | "name": "ApexExample_CDSSuccessResponseStatusType", |
| 1570 | "version": "0.0.1" |
| 1571 | }, |
| 1572 | "optional": false |
| 1573 | } |
| 1574 | } |
| 1575 | ] |
| 1576 | }, |
| 1577 | "outputFields": { |
| 1578 | "entry": [ |
| 1579 | { |
| 1580 | "key": "actionIdentifiers", |
| 1581 | "value": { |
| 1582 | "key": "actionIdentifiers", |
| 1583 | "fieldSchemaKey": { |
| 1584 | "name": "ApexExample_CDSActionIdentifiersType", |
| 1585 | "version": "0.0.1" |
| 1586 | }, |
| 1587 | "optional": false |
| 1588 | } |
| 1589 | }, |
| 1590 | { |
| 1591 | "key": "commonHeader", |
| 1592 | "value": { |
| 1593 | "key": "commonHeader", |
| 1594 | "fieldSchemaKey": { |
| 1595 | "name": "ApexExample_CDSRequestCommonHeaderType", |
| 1596 | "version": "0.0.1" |
| 1597 | }, |
| 1598 | "optional": false |
| 1599 | } |
| 1600 | }, |
| 1601 | { |
| 1602 | "key": "payload", |
| 1603 | "value": { |
| 1604 | "key": "payload", |
| 1605 | "fieldSchemaKey": { |
| 1606 | "name": "ApexExample_CDSRequestPayloadType", |
| 1607 | "version": "0.0.1" |
| 1608 | }, |
| 1609 | "optional": false |
| 1610 | } |
| 1611 | } |
| 1612 | ] |
| 1613 | }, |
| 1614 | "taskParameters": { |
| 1615 | "entry": [] |
| 1616 | }, |
| 1617 | "contextAlbumReference": [ |
| 1618 | { |
| 1619 | "name": "ApexExample_EventDetailsAlbum", |
| 1620 | "version": "0.0.1" |
| 1621 | } |
| 1622 | ], |
| 1623 | "taskLogic": { |
| 1624 | "key": "TaskLogic", |
| 1625 | "logicFlavour": "JAVASCRIPT", |
| 1626 | "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime());\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\nvar vnfDetails = eventDetailsAlbum.get(\"vnfDetails\");\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"restart\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-name\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"restart_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(+executor.outFields);\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"ConfigModify request is successful. Sending restart request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}" |
| 1627 | } |
| 1628 | } |
| 1629 | }, |
| 1630 | { |
| 1631 | "key": { |
| 1632 | "name": "ApexExample_CDSRestartFailureResponseTask", |
| 1633 | "version": "0.0.1" |
| 1634 | }, |
| 1635 | "value": { |
| 1636 | "key": { |
| 1637 | "name": "ApexExample_CDSRestartFailureResponseTask", |
| 1638 | "version": "0.0.1" |
| 1639 | }, |
| 1640 | "inputFields": { |
| 1641 | "entry": [ |
| 1642 | { |
| 1643 | "key": "actionIdentifiers", |
| 1644 | "value": { |
| 1645 | "key": "actionIdentifiers", |
| 1646 | "fieldSchemaKey": { |
| 1647 | "name": "ApexExample_CDSActionIdentifiersType", |
| 1648 | "version": "0.0.1" |
| 1649 | }, |
| 1650 | "optional": false |
| 1651 | } |
| 1652 | }, |
| 1653 | { |
| 1654 | "key": "commonHeader", |
| 1655 | "value": { |
| 1656 | "key": "commonHeader", |
| 1657 | "fieldSchemaKey": { |
| 1658 | "name": "ApexExample_CDSFailureResponseCommonHeaderType", |
| 1659 | "version": "0.0.1" |
| 1660 | }, |
| 1661 | "optional": false |
| 1662 | } |
| 1663 | }, |
| 1664 | { |
| 1665 | "key": "payload", |
| 1666 | "value": { |
| 1667 | "key": "payload", |
| 1668 | "fieldSchemaKey": { |
| 1669 | "name": "ApexExample_CDSRestartResponsePayloadType", |
| 1670 | "version": "0.0.1" |
| 1671 | }, |
| 1672 | "optional": false |
| 1673 | } |
| 1674 | }, |
| 1675 | { |
| 1676 | "key": "status", |
| 1677 | "value": { |
| 1678 | "key": "status", |
| 1679 | "fieldSchemaKey": { |
| 1680 | "name": "ApexExample_CDSFailureResponseStatusType", |
| 1681 | "version": "0.0.1" |
| 1682 | }, |
| 1683 | "optional": false |
| 1684 | } |
| 1685 | } |
| 1686 | ] |
| 1687 | }, |
| 1688 | "outputFields": { |
| 1689 | "entry": [ |
| 1690 | { |
| 1691 | "key": "message", |
| 1692 | "value": { |
| 1693 | "key": "message", |
| 1694 | "fieldSchemaKey": { |
| 1695 | "name": "SimpleStringType", |
| 1696 | "version": "0.0.1" |
| 1697 | }, |
| 1698 | "optional": false |
| 1699 | } |
| 1700 | } |
| 1701 | ] |
| 1702 | }, |
| 1703 | "taskParameters": { |
| 1704 | "entry": [] |
| 1705 | }, |
| 1706 | "contextAlbumReference": [ |
| 1707 | { |
| 1708 | "name": "ApexExample_EventDetailsAlbum", |
| 1709 | "version": "0.0.1" |
| 1710 | } |
| 1711 | ], |
| 1712 | "taskLogic": { |
| 1713 | "key": "TaskLogic", |
| 1714 | "logicFlavour": "JAVASCRIPT", |
| 1715 | "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}" |
| 1716 | } |
| 1717 | } |
| 1718 | }, |
| 1719 | { |
| 1720 | "key": { |
| 1721 | "name": "ApexExample_CDSRestartSuccessResponseTask", |
| 1722 | "version": "0.0.1" |
| 1723 | }, |
| 1724 | "value": { |
| 1725 | "key": { |
| 1726 | "name": "ApexExample_CDSRestartSuccessResponseTask", |
| 1727 | "version": "0.0.1" |
| 1728 | }, |
| 1729 | "inputFields": { |
| 1730 | "entry": [ |
| 1731 | { |
| 1732 | "key": "actionIdentifiers", |
| 1733 | "value": { |
| 1734 | "key": "actionIdentifiers", |
| 1735 | "fieldSchemaKey": { |
| 1736 | "name": "ApexExample_CDSActionIdentifiersType", |
| 1737 | "version": "0.0.1" |
| 1738 | }, |
| 1739 | "optional": false |
| 1740 | } |
| 1741 | }, |
| 1742 | { |
| 1743 | "key": "commonHeader", |
| 1744 | "value": { |
| 1745 | "key": "commonHeader", |
| 1746 | "fieldSchemaKey": { |
| 1747 | "name": "ApexExample_CDSSuccessResponseCommonHeaderType", |
| 1748 | "version": "0.0.1" |
| 1749 | }, |
| 1750 | "optional": false |
| 1751 | } |
| 1752 | }, |
| 1753 | { |
| 1754 | "key": "payload", |
| 1755 | "value": { |
| 1756 | "key": "payload", |
| 1757 | "fieldSchemaKey": { |
| 1758 | "name": "ApexExample_CDSRestartResponsePayloadType", |
| 1759 | "version": "0.0.1" |
| 1760 | }, |
| 1761 | "optional": false |
| 1762 | } |
| 1763 | }, |
| 1764 | { |
| 1765 | "key": "status", |
| 1766 | "value": { |
| 1767 | "key": "status", |
| 1768 | "fieldSchemaKey": { |
| 1769 | "name": "ApexExample_CDSSuccessResponseStatusType", |
| 1770 | "version": "0.0.1" |
| 1771 | }, |
| 1772 | "optional": false |
| 1773 | } |
| 1774 | } |
| 1775 | ] |
| 1776 | }, |
| 1777 | "outputFields": { |
| 1778 | "entry": [ |
| 1779 | { |
| 1780 | "key": "message", |
| 1781 | "value": { |
| 1782 | "key": "message", |
| 1783 | "fieldSchemaKey": { |
| 1784 | "name": "SimpleStringType", |
| 1785 | "version": "0.0.1" |
| 1786 | }, |
| 1787 | "optional": false |
| 1788 | } |
| 1789 | } |
| 1790 | ] |
| 1791 | }, |
| 1792 | "taskParameters": { |
| 1793 | "entry": [] |
| 1794 | }, |
| 1795 | "contextAlbumReference": [ |
| 1796 | { |
| 1797 | "name": "ApexExample_EventDetailsAlbum", |
| 1798 | "version": "0.0.1" |
| 1799 | } |
| 1800 | ], |
| 1801 | "taskLogic": { |
| 1802 | "key": "TaskLogic", |
| 1803 | "logicFlavour": "JAVASCRIPT", |
| 1804 | "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar timestamp = longType(new Date().getTime());\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_SUCCESS\", \"Successfully processed the VES Event. Restart is complete.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}" |
| 1805 | } |
| 1806 | } |
| 1807 | }, |
| 1808 | { |
| 1809 | "key": { |
| 1810 | "name": "ApexExample_HandleAAIFailureResponseTask", |
| 1811 | "version": "0.0.1" |
| 1812 | }, |
| 1813 | "value": { |
| 1814 | "key": { |
| 1815 | "name": "ApexExample_HandleAAIFailureResponseTask", |
| 1816 | "version": "0.0.1" |
| 1817 | }, |
| 1818 | "inputFields": { |
| 1819 | "entry": [ |
| 1820 | { |
| 1821 | "key": "requestError", |
| 1822 | "value": { |
| 1823 | "key": "requestError", |
| 1824 | "fieldSchemaKey": { |
| 1825 | "name": "ApexExample_AAIRequestErrorType", |
| 1826 | "version": "0.0.1" |
| 1827 | }, |
| 1828 | "optional": false |
| 1829 | } |
| 1830 | } |
| 1831 | ] |
| 1832 | }, |
| 1833 | "outputFields": { |
| 1834 | "entry": [ |
| 1835 | { |
| 1836 | "key": "message", |
| 1837 | "value": { |
| 1838 | "key": "message", |
| 1839 | "fieldSchemaKey": { |
| 1840 | "name": "SimpleStringType", |
| 1841 | "version": "0.0.1" |
| 1842 | }, |
| 1843 | "optional": false |
| 1844 | } |
| 1845 | } |
| 1846 | ] |
| 1847 | }, |
| 1848 | "taskParameters": { |
| 1849 | "entry": [] |
| 1850 | }, |
| 1851 | "contextAlbumReference": [ |
| 1852 | { |
| 1853 | "name": "ApexExample_EventDetailsAlbum", |
| 1854 | "version": "0.0.1" |
| 1855 | } |
| 1856 | ], |
| 1857 | "taskLogic": { |
| 1858 | "key": "TaskLogic", |
| 1859 | "logicFlavour": "JAVASCRIPT", |
| 1860 | "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\nvar timestamp = longType(new Date().getTime());\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}" |
| 1861 | } |
| 1862 | } |
| 1863 | }, |
| 1864 | { |
| 1865 | "key": { |
| 1866 | "name": "ApexExample_HandleAAISuccessResponseTask", |
| 1867 | "version": "0.0.1" |
| 1868 | }, |
| 1869 | "value": { |
| 1870 | "key": { |
| 1871 | "name": "ApexExample_HandleAAISuccessResponseTask", |
| 1872 | "version": "0.0.1" |
| 1873 | }, |
| 1874 | "inputFields": { |
| 1875 | "entry": [ |
| 1876 | { |
| 1877 | "key": "in-maint", |
| 1878 | "value": { |
| 1879 | "key": "in-maint", |
| 1880 | "fieldSchemaKey": { |
| 1881 | "name": "SimpleBooleanType", |
| 1882 | "version": "0.0.1" |
| 1883 | }, |
| 1884 | "optional": false |
| 1885 | } |
| 1886 | }, |
| 1887 | { |
| 1888 | "key": "is-closed-loop-disabled", |
| 1889 | "value": { |
| 1890 | "key": "is-closed-loop-disabled", |
| 1891 | "fieldSchemaKey": { |
| 1892 | "name": "SimpleBooleanType", |
| 1893 | "version": "0.0.1" |
| 1894 | }, |
| 1895 | "optional": false |
| 1896 | } |
| 1897 | }, |
| 1898 | { |
| 1899 | "key": "model-customization-id", |
| 1900 | "value": { |
| 1901 | "key": "model-customization-id", |
| 1902 | "fieldSchemaKey": { |
| 1903 | "name": "SimpleStringType", |
| 1904 | "version": "0.0.1" |
| 1905 | }, |
| 1906 | "optional": false |
| 1907 | } |
| 1908 | }, |
| 1909 | { |
| 1910 | "key": "model-invariant-id", |
| 1911 | "value": { |
| 1912 | "key": "model-invariant-id", |
| 1913 | "fieldSchemaKey": { |
| 1914 | "name": "SimpleStringType", |
| 1915 | "version": "0.0.1" |
| 1916 | }, |
| 1917 | "optional": false |
| 1918 | } |
| 1919 | }, |
| 1920 | { |
| 1921 | "key": "model-version-id", |
| 1922 | "value": { |
| 1923 | "key": "model-version-id", |
| 1924 | "fieldSchemaKey": { |
| 1925 | "name": "SimpleStringType", |
| 1926 | "version": "0.0.1" |
| 1927 | }, |
| 1928 | "optional": false |
| 1929 | } |
| 1930 | }, |
| 1931 | { |
| 1932 | "key": "orchestration-status", |
| 1933 | "value": { |
| 1934 | "key": "orchestration-status", |
| 1935 | "fieldSchemaKey": { |
| 1936 | "name": "SimpleStringType", |
| 1937 | "version": "0.0.1" |
| 1938 | }, |
| 1939 | "optional": false |
| 1940 | } |
| 1941 | }, |
| 1942 | { |
| 1943 | "key": "prov-status", |
| 1944 | "value": { |
| 1945 | "key": "prov-status", |
| 1946 | "fieldSchemaKey": { |
| 1947 | "name": "SimpleStringType", |
| 1948 | "version": "0.0.1" |
| 1949 | }, |
| 1950 | "optional": false |
| 1951 | } |
| 1952 | }, |
| 1953 | { |
| 1954 | "key": "relationship-list", |
| 1955 | "value": { |
| 1956 | "key": "relationship-list", |
| 1957 | "fieldSchemaKey": { |
| 1958 | "name": "ApexExample_VnfRelationShipListType", |
| 1959 | "version": "0.0.1" |
| 1960 | }, |
| 1961 | "optional": false |
| 1962 | } |
| 1963 | }, |
| 1964 | { |
| 1965 | "key": "resource-version", |
| 1966 | "value": { |
| 1967 | "key": "resource-version", |
| 1968 | "fieldSchemaKey": { |
| 1969 | "name": "SimpleStringType", |
| 1970 | "version": "0.0.1" |
| 1971 | }, |
| 1972 | "optional": false |
| 1973 | } |
| 1974 | }, |
| 1975 | { |
| 1976 | "key": "service-id", |
| 1977 | "value": { |
| 1978 | "key": "service-id", |
| 1979 | "fieldSchemaKey": { |
| 1980 | "name": "SimpleStringType", |
| 1981 | "version": "0.0.1" |
| 1982 | }, |
| 1983 | "optional": false |
| 1984 | } |
| 1985 | }, |
| 1986 | { |
| 1987 | "key": "vnf-id", |
| 1988 | "value": { |
| 1989 | "key": "vnf-id", |
| 1990 | "fieldSchemaKey": { |
| 1991 | "name": "SimpleStringType", |
| 1992 | "version": "0.0.1" |
| 1993 | }, |
| 1994 | "optional": false |
| 1995 | } |
| 1996 | }, |
| 1997 | { |
| 1998 | "key": "vnf-name", |
| 1999 | "value": { |
| 2000 | "key": "vnf-name", |
| 2001 | "fieldSchemaKey": { |
| 2002 | "name": "SimpleStringType", |
| 2003 | "version": "0.0.1" |
| 2004 | }, |
| 2005 | "optional": false |
| 2006 | } |
| 2007 | }, |
| 2008 | { |
| 2009 | "key": "vnf-type", |
| 2010 | "value": { |
| 2011 | "key": "vnf-type", |
| 2012 | "fieldSchemaKey": { |
| 2013 | "name": "SimpleStringType", |
| 2014 | "version": "0.0.1" |
| 2015 | }, |
| 2016 | "optional": false |
| 2017 | } |
| 2018 | } |
| 2019 | ] |
| 2020 | }, |
| 2021 | "outputFields": { |
| 2022 | "entry": [ |
| 2023 | { |
| 2024 | "key": "actionIdentifiers", |
| 2025 | "value": { |
| 2026 | "key": "actionIdentifiers", |
| 2027 | "fieldSchemaKey": { |
| 2028 | "name": "ApexExample_CDSActionIdentifiersType", |
| 2029 | "version": "0.0.1" |
| 2030 | }, |
| 2031 | "optional": false |
| 2032 | } |
| 2033 | }, |
| 2034 | { |
| 2035 | "key": "commonHeader", |
| 2036 | "value": { |
| 2037 | "key": "commonHeader", |
| 2038 | "fieldSchemaKey": { |
| 2039 | "name": "ApexExample_CDSRequestCommonHeaderType", |
| 2040 | "version": "0.0.1" |
| 2041 | }, |
| 2042 | "optional": false |
| 2043 | } |
| 2044 | }, |
| 2045 | { |
| 2046 | "key": "payload", |
| 2047 | "value": { |
| 2048 | "key": "payload", |
| 2049 | "fieldSchemaKey": { |
| 2050 | "name": "ApexExample_CDSRequestPayloadType", |
| 2051 | "version": "0.0.1" |
| 2052 | }, |
| 2053 | "optional": false |
| 2054 | } |
| 2055 | } |
| 2056 | ] |
| 2057 | }, |
| 2058 | "taskParameters": { |
| 2059 | "entry": [] |
| 2060 | }, |
| 2061 | "contextAlbumReference": [ |
| 2062 | { |
| 2063 | "name": "ApexExample_EventDetailsAlbum", |
| 2064 | "version": "0.0.1" |
| 2065 | } |
| 2066 | ], |
| 2067 | "taskLogic": { |
| 2068 | "key": "TaskLogic", |
| 2069 | "logicFlavour": "JAVASCRIPT", |
| 2070 | "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\n\nvar vnfDetails = executor.inFields;\nexecutor.logger.info(\"ApexExample_HandleAAISuccessResponseTask processing event - \" + vnfDetails);\neventDetailsAlbum.put(\"vnfDetails\", vnfDetails);\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"modify-config\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-id\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\nvar payloadSchemaHelper = executor.subject.getOutFieldSchemaHelper(\"payload\");\npayload.put(\"modify_DasH_config_DasH_request\", payloadEntry);\n\n//always use the executor.stringify2json method instead of JSON.strngify\nexecutor.logger.info(\"CDS modify config request payload - \" + executor.stringify2Json(payload, payloadSchemaHelper));\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\nvar timestamp = longType(new Date().getTime());\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"VNF details are received from AAI successfully. Sending ConfigModify request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}" |
| 2071 | } |
| 2072 | } |
| 2073 | }, |
| 2074 | { |
| 2075 | "key": { |
| 2076 | "name": "ApexExample_HandleVesEventTask", |
| 2077 | "version": "0.0.1" |
| 2078 | }, |
| 2079 | "value": { |
| 2080 | "key": { |
| 2081 | "name": "ApexExample_HandleVesEventTask", |
| 2082 | "version": "0.0.1" |
| 2083 | }, |
| 2084 | "inputFields": { |
| 2085 | "entry": [ |
| 2086 | { |
| 2087 | "key": "event", |
| 2088 | "value": { |
| 2089 | "key": "event", |
| 2090 | "fieldSchemaKey": { |
| 2091 | "name": "ApexExample_VesEventType", |
| 2092 | "version": "0.0.1" |
| 2093 | }, |
| 2094 | "optional": false |
| 2095 | } |
| 2096 | } |
| 2097 | ] |
| 2098 | }, |
| 2099 | "outputFields": { |
| 2100 | "entry": [ |
| 2101 | { |
| 2102 | "key": "aaifield", |
| 2103 | "value": { |
| 2104 | "key": "aaifield", |
| 2105 | "fieldSchemaKey": { |
| 2106 | "name": "SimpleStringType", |
| 2107 | "version": "0.0.1" |
| 2108 | }, |
| 2109 | "optional": false |
| 2110 | } |
| 2111 | } |
| 2112 | ] |
| 2113 | }, |
| 2114 | "taskParameters": { |
| 2115 | "entry": [] |
| 2116 | }, |
| 2117 | "contextAlbumReference": [ |
| 2118 | { |
| 2119 | "name": "ApexExample_EventDetailsAlbum", |
| 2120 | "version": "0.0.1" |
| 2121 | } |
| 2122 | ], |
| 2123 | "taskLogic": { |
| 2124 | "key": "TaskLogic", |
| 2125 | "logicFlavour": "JAVASCRIPT", |
| 2126 | "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"ApexExample_HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar faultFields = event.get(\"faultFields\");\n\n//albumID will be used to fetch info from our album later\nvar albumID = commonEventHeader.get(\"sourceId\");\n\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming fault event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader)\neventDetailsAlbum.put(\"faultFields\", faultFields)\nexecutor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"vnf-name\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceName\"));\n\nvar timestamp = longType(new Date().getTime());\nsend(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), \"VNF\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceId\"), timestamp, \"ACTIVE\", \"VES event has been received. Going to fetch VNF details from AAI.\")\n\nexecutor.logger.info(executor.outFields);\nreturnValue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}" |
| 2127 | } |
| 2128 | } |
| 2129 | } |
| 2130 | ] |
| 2131 | } |
| 2132 | }, |
| 2133 | "events": { |
| 2134 | "key": { |
| 2135 | "name": "onap.policies.apex.Example_Events", |
| 2136 | "version": "0.0.1" |
| 2137 | }, |
| 2138 | "eventMap": { |
| 2139 | "entry": [ |
| 2140 | { |
| 2141 | "key": { |
| 2142 | "name": "ApexExample_AAIFailureResponseEvent", |
| 2143 | "version": "0.0.1" |
| 2144 | }, |
| 2145 | "value": { |
| 2146 | "key": { |
| 2147 | "name": "ApexExample_AAIFailureResponseEvent", |
| 2148 | "version": "0.0.1" |
| 2149 | }, |
| 2150 | "nameSpace": "org.onap.policy.apex.example", |
| 2151 | "source": "AAI", |
| 2152 | "target": "APEX", |
| 2153 | "parameter": { |
| 2154 | "entry": [ |
| 2155 | { |
| 2156 | "key": "requestError", |
| 2157 | "value": { |
| 2158 | "key": "requestError", |
| 2159 | "fieldSchemaKey": { |
| 2160 | "name": "ApexExample_AAIRequestErrorType", |
| 2161 | "version": "0.0.1" |
| 2162 | }, |
| 2163 | "optional": false |
| 2164 | } |
| 2165 | } |
| 2166 | ] |
| 2167 | } |
| 2168 | } |
| 2169 | }, |
| 2170 | { |
| 2171 | "key": { |
| 2172 | "name": "ApexExample_AAIRequestEvent", |
| 2173 | "version": "0.0.1" |
| 2174 | }, |
| 2175 | "value": { |
| 2176 | "key": { |
| 2177 | "name": "ApexExample_AAIRequestEvent", |
| 2178 | "version": "0.0.1" |
| 2179 | }, |
| 2180 | "nameSpace": "org.onap.policy.apex.example", |
| 2181 | "source": "APEX", |
| 2182 | "target": "AAI", |
| 2183 | "parameter": { |
| 2184 | "entry": [ |
| 2185 | { |
| 2186 | "key": "aaifield", |
| 2187 | "value": { |
| 2188 | "key": "aaifield", |
| 2189 | "fieldSchemaKey": { |
| 2190 | "name": "SimpleStringType", |
| 2191 | "version": "0.0.1" |
| 2192 | }, |
| 2193 | "optional": false |
| 2194 | } |
| 2195 | } |
| 2196 | ] |
| 2197 | } |
| 2198 | } |
| 2199 | }, |
| 2200 | { |
| 2201 | "key": { |
| 2202 | "name": "ApexExample_AAISuccessResponseEvent", |
| 2203 | "version": "0.0.1" |
| 2204 | }, |
| 2205 | "value": { |
| 2206 | "key": { |
| 2207 | "name": "ApexExample_AAISuccessResponseEvent", |
| 2208 | "version": "0.0.1" |
| 2209 | }, |
| 2210 | "nameSpace": "org.onap.policy.apex.example", |
| 2211 | "source": "AAI", |
| 2212 | "target": "APEX", |
| 2213 | "parameter": { |
| 2214 | "entry": [ |
| 2215 | { |
| 2216 | "key": "in-maint", |
| 2217 | "value": { |
| 2218 | "key": "in-maint", |
| 2219 | "fieldSchemaKey": { |
| 2220 | "name": "SimpleBooleanType", |
| 2221 | "version": "0.0.1" |
| 2222 | }, |
| 2223 | "optional": false |
| 2224 | } |
| 2225 | }, |
| 2226 | { |
| 2227 | "key": "is-closed-loop-disabled", |
| 2228 | "value": { |
| 2229 | "key": "is-closed-loop-disabled", |
| 2230 | "fieldSchemaKey": { |
| 2231 | "name": "SimpleBooleanType", |
| 2232 | "version": "0.0.1" |
| 2233 | }, |
| 2234 | "optional": false |
| 2235 | } |
| 2236 | }, |
| 2237 | { |
| 2238 | "key": "model-customization-id", |
| 2239 | "value": { |
| 2240 | "key": "model-customization-id", |
| 2241 | "fieldSchemaKey": { |
| 2242 | "name": "SimpleStringType", |
| 2243 | "version": "0.0.1" |
| 2244 | }, |
| 2245 | "optional": false |
| 2246 | } |
| 2247 | }, |
| 2248 | { |
| 2249 | "key": "model-invariant-id", |
| 2250 | "value": { |
| 2251 | "key": "model-invariant-id", |
| 2252 | "fieldSchemaKey": { |
| 2253 | "name": "SimpleStringType", |
| 2254 | "version": "0.0.1" |
| 2255 | }, |
| 2256 | "optional": false |
| 2257 | } |
| 2258 | }, |
| 2259 | { |
| 2260 | "key": "model-version-id", |
| 2261 | "value": { |
| 2262 | "key": "model-version-id", |
| 2263 | "fieldSchemaKey": { |
| 2264 | "name": "SimpleStringType", |
| 2265 | "version": "0.0.1" |
| 2266 | }, |
| 2267 | "optional": false |
| 2268 | } |
| 2269 | }, |
| 2270 | { |
| 2271 | "key": "orchestration-status", |
| 2272 | "value": { |
| 2273 | "key": "orchestration-status", |
| 2274 | "fieldSchemaKey": { |
| 2275 | "name": "SimpleStringType", |
| 2276 | "version": "0.0.1" |
| 2277 | }, |
| 2278 | "optional": false |
| 2279 | } |
| 2280 | }, |
| 2281 | { |
| 2282 | "key": "prov-status", |
| 2283 | "value": { |
| 2284 | "key": "prov-status", |
| 2285 | "fieldSchemaKey": { |
| 2286 | "name": "SimpleStringType", |
| 2287 | "version": "0.0.1" |
| 2288 | }, |
| 2289 | "optional": false |
| 2290 | } |
| 2291 | }, |
| 2292 | { |
| 2293 | "key": "relationship-list", |
| 2294 | "value": { |
| 2295 | "key": "relationship-list", |
| 2296 | "fieldSchemaKey": { |
| 2297 | "name": "ApexExample_VnfRelationShipListType", |
| 2298 | "version": "0.0.1" |
| 2299 | }, |
| 2300 | "optional": false |
| 2301 | } |
| 2302 | }, |
| 2303 | { |
| 2304 | "key": "resource-version", |
| 2305 | "value": { |
| 2306 | "key": "resource-version", |
| 2307 | "fieldSchemaKey": { |
| 2308 | "name": "SimpleStringType", |
| 2309 | "version": "0.0.1" |
| 2310 | }, |
| 2311 | "optional": false |
| 2312 | } |
| 2313 | }, |
| 2314 | { |
| 2315 | "key": "service-id", |
| 2316 | "value": { |
| 2317 | "key": "service-id", |
| 2318 | "fieldSchemaKey": { |
| 2319 | "name": "SimpleStringType", |
| 2320 | "version": "0.0.1" |
| 2321 | }, |
| 2322 | "optional": false |
| 2323 | } |
| 2324 | }, |
| 2325 | { |
| 2326 | "key": "vnf-id", |
| 2327 | "value": { |
| 2328 | "key": "vnf-id", |
| 2329 | "fieldSchemaKey": { |
| 2330 | "name": "SimpleStringType", |
| 2331 | "version": "0.0.1" |
| 2332 | }, |
| 2333 | "optional": false |
| 2334 | } |
| 2335 | }, |
| 2336 | { |
| 2337 | "key": "vnf-name", |
| 2338 | "value": { |
| 2339 | "key": "vnf-name", |
| 2340 | "fieldSchemaKey": { |
| 2341 | "name": "SimpleStringType", |
| 2342 | "version": "0.0.1" |
| 2343 | }, |
| 2344 | "optional": false |
| 2345 | } |
| 2346 | }, |
| 2347 | { |
| 2348 | "key": "vnf-type", |
| 2349 | "value": { |
| 2350 | "key": "vnf-type", |
| 2351 | "fieldSchemaKey": { |
| 2352 | "name": "SimpleStringType", |
| 2353 | "version": "0.0.1" |
| 2354 | }, |
| 2355 | "optional": false |
| 2356 | } |
| 2357 | } |
| 2358 | ] |
| 2359 | } |
| 2360 | } |
| 2361 | }, |
| 2362 | { |
| 2363 | "key": { |
| 2364 | "name": "ApexExample_CDSConfigModifyFailureResponseEvent", |
| 2365 | "version": "0.0.1" |
| 2366 | }, |
| 2367 | "value": { |
| 2368 | "key": { |
| 2369 | "name": "ApexExample_CDSConfigModifyFailureResponseEvent", |
| 2370 | "version": "0.0.1" |
| 2371 | }, |
| 2372 | "nameSpace": "org.onap.policy.apex.example", |
| 2373 | "source": "CDS", |
| 2374 | "target": "APEX", |
| 2375 | "parameter": { |
| 2376 | "entry": [ |
| 2377 | { |
| 2378 | "key": "actionIdentifiers", |
| 2379 | "value": { |
| 2380 | "key": "actionIdentifiers", |
| 2381 | "fieldSchemaKey": { |
| 2382 | "name": "ApexExample_CDSActionIdentifiersType", |
| 2383 | "version": "0.0.1" |
| 2384 | }, |
| 2385 | "optional": false |
| 2386 | } |
| 2387 | }, |
| 2388 | { |
| 2389 | "key": "commonHeader", |
| 2390 | "value": { |
| 2391 | "key": "commonHeader", |
| 2392 | "fieldSchemaKey": { |
| 2393 | "name": "ApexExample_CDSFailureResponseCommonHeaderType", |
| 2394 | "version": "0.0.1" |
| 2395 | }, |
| 2396 | "optional": false |
| 2397 | } |
| 2398 | }, |
| 2399 | { |
| 2400 | "key": "payload", |
| 2401 | "value": { |
| 2402 | "key": "payload", |
| 2403 | "fieldSchemaKey": { |
| 2404 | "name": "ApexExample_CDSConfigModifyResponsePayloadType", |
| 2405 | "version": "0.0.1" |
| 2406 | }, |
| 2407 | "optional": false |
| 2408 | } |
| 2409 | }, |
| 2410 | { |
| 2411 | "key": "status", |
| 2412 | "value": { |
| 2413 | "key": "status", |
| 2414 | "fieldSchemaKey": { |
| 2415 | "name": "ApexExample_CDSFailureResponseStatusType", |
| 2416 | "version": "0.0.1" |
| 2417 | }, |
| 2418 | "optional": false |
| 2419 | } |
| 2420 | } |
| 2421 | ] |
| 2422 | } |
| 2423 | } |
| 2424 | }, |
| 2425 | { |
| 2426 | "key": { |
| 2427 | "name": "ApexExample_CDSConfigModifyRequestEvent", |
| 2428 | "version": "0.0.1" |
| 2429 | }, |
| 2430 | "value": { |
| 2431 | "key": { |
| 2432 | "name": "ApexExample_CDSConfigModifyRequestEvent", |
| 2433 | "version": "0.0.1" |
| 2434 | }, |
| 2435 | "nameSpace": "org.onap.policy.apex.example", |
| 2436 | "source": "APEX", |
| 2437 | "target": "APEX", |
| 2438 | "parameter": { |
| 2439 | "entry": [ |
| 2440 | { |
| 2441 | "key": "actionIdentifiers", |
| 2442 | "value": { |
| 2443 | "key": "actionIdentifiers", |
| 2444 | "fieldSchemaKey": { |
| 2445 | "name": "ApexExample_CDSActionIdentifiersType", |
| 2446 | "version": "0.0.1" |
| 2447 | }, |
| 2448 | "optional": false |
| 2449 | } |
| 2450 | }, |
| 2451 | { |
| 2452 | "key": "commonHeader", |
| 2453 | "value": { |
| 2454 | "key": "commonHeader", |
| 2455 | "fieldSchemaKey": { |
| 2456 | "name": "ApexExample_CDSRequestCommonHeaderType", |
| 2457 | "version": "0.0.1" |
| 2458 | }, |
| 2459 | "optional": false |
| 2460 | } |
| 2461 | }, |
| 2462 | { |
| 2463 | "key": "payload", |
| 2464 | "value": { |
| 2465 | "key": "payload", |
| 2466 | "fieldSchemaKey": { |
| 2467 | "name": "ApexExample_CDSRequestPayloadType", |
| 2468 | "version": "0.0.1" |
| 2469 | }, |
| 2470 | "optional": false |
| 2471 | } |
| 2472 | } |
| 2473 | ] |
| 2474 | } |
| 2475 | } |
| 2476 | }, |
| 2477 | { |
| 2478 | "key": { |
| 2479 | "name": "ApexExample_CDSConfigModifySuccessResponseEvent", |
| 2480 | "version": "0.0.1" |
| 2481 | }, |
| 2482 | "value": { |
| 2483 | "key": { |
| 2484 | "name": "ApexExample_CDSConfigModifySuccessResponseEvent", |
| 2485 | "version": "0.0.1" |
| 2486 | }, |
| 2487 | "nameSpace": "org.onap.policy.apex.example", |
| 2488 | "source": "CDS", |
| 2489 | "target": "APEX", |
| 2490 | "parameter": { |
| 2491 | "entry": [ |
| 2492 | { |
| 2493 | "key": "actionIdentifiers", |
| 2494 | "value": { |
| 2495 | "key": "actionIdentifiers", |
| 2496 | "fieldSchemaKey": { |
| 2497 | "name": "ApexExample_CDSActionIdentifiersType", |
| 2498 | "version": "0.0.1" |
| 2499 | }, |
| 2500 | "optional": false |
| 2501 | } |
| 2502 | }, |
| 2503 | { |
| 2504 | "key": "commonHeader", |
| 2505 | "value": { |
| 2506 | "key": "commonHeader", |
| 2507 | "fieldSchemaKey": { |
| 2508 | "name": "ApexExample_CDSSuccessResponseCommonHeaderType", |
| 2509 | "version": "0.0.1" |
| 2510 | }, |
| 2511 | "optional": false |
| 2512 | } |
| 2513 | }, |
| 2514 | { |
| 2515 | "key": "payload", |
| 2516 | "value": { |
| 2517 | "key": "payload", |
| 2518 | "fieldSchemaKey": { |
| 2519 | "name": "ApexExample_CDSConfigModifyResponsePayloadType", |
| 2520 | "version": "0.0.1" |
| 2521 | }, |
| 2522 | "optional": false |
| 2523 | } |
| 2524 | }, |
| 2525 | { |
| 2526 | "key": "status", |
| 2527 | "value": { |
| 2528 | "key": "status", |
| 2529 | "fieldSchemaKey": { |
| 2530 | "name": "ApexExample_CDSSuccessResponseStatusType", |
| 2531 | "version": "0.0.1" |
| 2532 | }, |
| 2533 | "optional": false |
| 2534 | } |
| 2535 | } |
| 2536 | ] |
| 2537 | } |
| 2538 | } |
| 2539 | }, |
| 2540 | { |
| 2541 | "key": { |
| 2542 | "name": "ApexExample_CDSRestartFailureResponseEvent", |
| 2543 | "version": "0.0.1" |
| 2544 | }, |
| 2545 | "value": { |
| 2546 | "key": { |
| 2547 | "name": "ApexExample_CDSRestartFailureResponseEvent", |
| 2548 | "version": "0.0.1" |
| 2549 | }, |
| 2550 | "nameSpace": "org.onap.policy.apex.example", |
| 2551 | "source": "CDS", |
| 2552 | "target": "APEX", |
| 2553 | "parameter": { |
| 2554 | "entry": [ |
| 2555 | { |
| 2556 | "key": "actionIdentifiers", |
| 2557 | "value": { |
| 2558 | "key": "actionIdentifiers", |
| 2559 | "fieldSchemaKey": { |
| 2560 | "name": "ApexExample_CDSActionIdentifiersType", |
| 2561 | "version": "0.0.1" |
| 2562 | }, |
| 2563 | "optional": false |
| 2564 | } |
| 2565 | }, |
| 2566 | { |
| 2567 | "key": "commonHeader", |
| 2568 | "value": { |
| 2569 | "key": "commonHeader", |
| 2570 | "fieldSchemaKey": { |
| 2571 | "name": "ApexExample_CDSFailureResponseCommonHeaderType", |
| 2572 | "version": "0.0.1" |
| 2573 | }, |
| 2574 | "optional": false |
| 2575 | } |
| 2576 | }, |
| 2577 | { |
| 2578 | "key": "payload", |
| 2579 | "value": { |
| 2580 | "key": "payload", |
| 2581 | "fieldSchemaKey": { |
| 2582 | "name": "ApexExample_CDSRestartResponsePayloadType", |
| 2583 | "version": "0.0.1" |
| 2584 | }, |
| 2585 | "optional": false |
| 2586 | } |
| 2587 | }, |
| 2588 | { |
| 2589 | "key": "status", |
| 2590 | "value": { |
| 2591 | "key": "status", |
| 2592 | "fieldSchemaKey": { |
| 2593 | "name": "ApexExample_CDSFailureResponseStatusType", |
| 2594 | "version": "0.0.1" |
| 2595 | }, |
| 2596 | "optional": false |
| 2597 | } |
| 2598 | } |
| 2599 | ] |
| 2600 | } |
| 2601 | } |
| 2602 | }, |
| 2603 | { |
| 2604 | "key": { |
| 2605 | "name": "ApexExample_CDSRestartRequestEvent", |
| 2606 | "version": "0.0.1" |
| 2607 | }, |
| 2608 | "value": { |
| 2609 | "key": { |
| 2610 | "name": "ApexExample_CDSRestartRequestEvent", |
| 2611 | "version": "0.0.1" |
| 2612 | }, |
| 2613 | "nameSpace": "org.onap.policy.apex.example", |
| 2614 | "source": "APEX", |
| 2615 | "target": "APEX", |
| 2616 | "parameter": { |
| 2617 | "entry": [ |
| 2618 | { |
| 2619 | "key": "actionIdentifiers", |
| 2620 | "value": { |
| 2621 | "key": "actionIdentifiers", |
| 2622 | "fieldSchemaKey": { |
| 2623 | "name": "ApexExample_CDSActionIdentifiersType", |
| 2624 | "version": "0.0.1" |
| 2625 | }, |
| 2626 | "optional": false |
| 2627 | } |
| 2628 | }, |
| 2629 | { |
| 2630 | "key": "commonHeader", |
| 2631 | "value": { |
| 2632 | "key": "commonHeader", |
| 2633 | "fieldSchemaKey": { |
| 2634 | "name": "ApexExample_CDSRequestCommonHeaderType", |
| 2635 | "version": "0.0.1" |
| 2636 | }, |
| 2637 | "optional": false |
| 2638 | } |
| 2639 | }, |
| 2640 | { |
| 2641 | "key": "payload", |
| 2642 | "value": { |
| 2643 | "key": "payload", |
| 2644 | "fieldSchemaKey": { |
| 2645 | "name": "ApexExample_CDSRequestPayloadType", |
| 2646 | "version": "0.0.1" |
| 2647 | }, |
| 2648 | "optional": false |
| 2649 | } |
| 2650 | } |
| 2651 | ] |
| 2652 | } |
| 2653 | } |
| 2654 | }, |
| 2655 | { |
| 2656 | "key": { |
| 2657 | "name": "ApexExample_CDSRestartSuccessResponseEvent", |
| 2658 | "version": "0.0.1" |
| 2659 | }, |
| 2660 | "value": { |
| 2661 | "key": { |
| 2662 | "name": "ApexExample_CDSRestartSuccessResponseEvent", |
| 2663 | "version": "0.0.1" |
| 2664 | }, |
| 2665 | "nameSpace": "org.onap.policy.apex.example", |
| 2666 | "source": "CDS", |
| 2667 | "target": "APEX", |
| 2668 | "parameter": { |
| 2669 | "entry": [ |
| 2670 | { |
| 2671 | "key": "actionIdentifiers", |
| 2672 | "value": { |
| 2673 | "key": "actionIdentifiers", |
| 2674 | "fieldSchemaKey": { |
| 2675 | "name": "ApexExample_CDSActionIdentifiersType", |
| 2676 | "version": "0.0.1" |
| 2677 | }, |
| 2678 | "optional": false |
| 2679 | } |
| 2680 | }, |
| 2681 | { |
| 2682 | "key": "commonHeader", |
| 2683 | "value": { |
| 2684 | "key": "commonHeader", |
| 2685 | "fieldSchemaKey": { |
| 2686 | "name": "ApexExample_CDSSuccessResponseCommonHeaderType", |
| 2687 | "version": "0.0.1" |
| 2688 | }, |
| 2689 | "optional": false |
| 2690 | } |
| 2691 | }, |
| 2692 | { |
| 2693 | "key": "payload", |
| 2694 | "value": { |
| 2695 | "key": "payload", |
| 2696 | "fieldSchemaKey": { |
| 2697 | "name": "ApexExample_CDSRestartResponsePayloadType", |
| 2698 | "version": "0.0.1" |
| 2699 | }, |
| 2700 | "optional": false |
| 2701 | } |
| 2702 | }, |
| 2703 | { |
| 2704 | "key": "status", |
| 2705 | "value": { |
| 2706 | "key": "status", |
| 2707 | "fieldSchemaKey": { |
| 2708 | "name": "ApexExample_CDSSuccessResponseStatusType", |
| 2709 | "version": "0.0.1" |
| 2710 | }, |
| 2711 | "optional": false |
| 2712 | } |
| 2713 | } |
| 2714 | ] |
| 2715 | } |
| 2716 | } |
| 2717 | }, |
| 2718 | { |
| 2719 | "key": { |
| 2720 | "name": "ApexExample_LogStatusEvent", |
| 2721 | "version": "0.0.1" |
| 2722 | }, |
| 2723 | "value": { |
| 2724 | "key": { |
| 2725 | "name": "ApexExample_LogStatusEvent", |
| 2726 | "version": "0.0.1" |
| 2727 | }, |
| 2728 | "nameSpace": "org.onap.policy.apex.example", |
| 2729 | "source": "APEX", |
| 2730 | "target": "DCAE", |
| 2731 | "parameter": { |
| 2732 | "entry": [ |
| 2733 | { |
| 2734 | "key": "message", |
| 2735 | "value": { |
| 2736 | "key": "message", |
| 2737 | "fieldSchemaKey": { |
| 2738 | "name": "SimpleStringType", |
| 2739 | "version": "0.0.1" |
| 2740 | }, |
| 2741 | "optional": false |
| 2742 | } |
| 2743 | } |
| 2744 | ] |
| 2745 | } |
| 2746 | } |
| 2747 | }, |
| 2748 | { |
| 2749 | "key": { |
| 2750 | "name": "ApexExample_VesEvent", |
| 2751 | "version": "0.0.1" |
| 2752 | }, |
| 2753 | "value": { |
| 2754 | "key": { |
| 2755 | "name": "ApexExample_VesEvent", |
| 2756 | "version": "0.0.1" |
| 2757 | }, |
| 2758 | "nameSpace": "org.onap.policy.apex.example", |
| 2759 | "source": "DCAE", |
| 2760 | "target": "APEX", |
| 2761 | "parameter": { |
| 2762 | "entry": [ |
| 2763 | { |
| 2764 | "key": "event", |
| 2765 | "value": { |
| 2766 | "key": "event", |
| 2767 | "fieldSchemaKey": { |
| 2768 | "name": "ApexExample_VesEventType", |
| 2769 | "version": "0.0.1" |
| 2770 | }, |
| 2771 | "optional": false |
| 2772 | } |
| 2773 | } |
| 2774 | ] |
| 2775 | } |
| 2776 | } |
| 2777 | } |
| 2778 | ] |
| 2779 | } |
| 2780 | }, |
| 2781 | "albums": { |
| 2782 | "key": { |
| 2783 | "name": "onap.policies.apex.Example_Albums", |
| 2784 | "version": "0.0.1" |
| 2785 | }, |
| 2786 | "albums": { |
| 2787 | "entry": [ |
| 2788 | { |
| 2789 | "key": { |
| 2790 | "name": "ApexExample_EventDetailsAlbum", |
| 2791 | "version": "0.0.1" |
| 2792 | }, |
| 2793 | "value": { |
| 2794 | "key": { |
| 2795 | "name": "ApexExample_EventDetailsAlbum", |
| 2796 | "version": "0.0.1" |
| 2797 | }, |
| 2798 | "scope": "policy", |
| 2799 | "isWritable": true, |
| 2800 | "itemSchema": { |
| 2801 | "name": "ApexExample_EventDetailsAlbumType", |
| 2802 | "version": "0.0.1" |
| 2803 | } |
| 2804 | } |
| 2805 | } |
| 2806 | ] |
| 2807 | } |
| 2808 | }, |
| 2809 | "schemas": { |
| 2810 | "key": { |
| 2811 | "name": "onap.policies.apex.Example_Schemas", |
| 2812 | "version": "0.0.1" |
| 2813 | }, |
| 2814 | "schemas": { |
| 2815 | "entry": [ |
| 2816 | { |
| 2817 | "key": { |
| 2818 | "name": "ApexExample_AAIRequestErrorType", |
| 2819 | "version": "0.0.1" |
| 2820 | }, |
| 2821 | "value": { |
| 2822 | "key": { |
| 2823 | "name": "ApexExample_AAIRequestErrorType", |
| 2824 | "version": "0.0.1" |
| 2825 | }, |
| 2826 | "schemaFlavour": "Avro", |
| 2827 | "schemaDefinition": "{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}" |
| 2828 | } |
| 2829 | }, |
| 2830 | { |
| 2831 | "key": { |
| 2832 | "name": "ApexExample_CDSActionIdentifiersType", |
| 2833 | "version": "0.0.1" |
| 2834 | }, |
| 2835 | "value": { |
| 2836 | "key": { |
| 2837 | "name": "ApexExample_CDSActionIdentifiersType", |
| 2838 | "version": "0.0.1" |
| 2839 | }, |
| 2840 | "schemaFlavour": "Avro", |
| 2841 | "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}" |
| 2842 | } |
| 2843 | }, |
| 2844 | { |
| 2845 | "key": { |
| 2846 | "name": "ApexExample_CDSConfigModifyResponsePayloadType", |
| 2847 | "version": "0.0.1" |
| 2848 | }, |
| 2849 | "value": { |
| 2850 | "key": { |
| 2851 | "name": "ApexExample_CDSConfigModifyResponsePayloadType", |
| 2852 | "version": "0.0.1" |
| 2853 | }, |
| 2854 | "schemaFlavour": "Avro", |
| 2855 | "schemaDefinition": "{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}" |
| 2856 | } |
| 2857 | }, |
| 2858 | { |
| 2859 | "key": { |
| 2860 | "name": "ApexExample_CDSFailureResponseCommonHeaderType", |
| 2861 | "version": "0.0.1" |
| 2862 | }, |
| 2863 | "value": { |
| 2864 | "key": { |
| 2865 | "name": "ApexExample_CDSFailureResponseCommonHeaderType", |
| 2866 | "version": "0.0.1" |
| 2867 | }, |
| 2868 | "schemaFlavour": "Avro", |
| 2869 | "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}" |
| 2870 | } |
| 2871 | }, |
| 2872 | { |
| 2873 | "key": { |
| 2874 | "name": "ApexExample_CDSFailureResponseStatusType", |
| 2875 | "version": "0.0.1" |
| 2876 | }, |
| 2877 | "value": { |
| 2878 | "key": { |
| 2879 | "name": "ApexExample_CDSFailureResponseStatusType", |
| 2880 | "version": "0.0.1" |
| 2881 | }, |
| 2882 | "schemaFlavour": "Avro", |
| 2883 | "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}" |
| 2884 | } |
| 2885 | }, |
| 2886 | { |
| 2887 | "key": { |
| 2888 | "name": "ApexExample_CDSRequestCommonHeaderType", |
| 2889 | "version": "0.0.1" |
| 2890 | }, |
| 2891 | "value": { |
| 2892 | "key": { |
| 2893 | "name": "ApexExample_CDSRequestCommonHeaderType", |
| 2894 | "version": "0.0.1" |
| 2895 | }, |
| 2896 | "schemaFlavour": "Avro", |
| 2897 | "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}" |
| 2898 | } |
| 2899 | }, |
| 2900 | { |
| 2901 | "key": { |
| 2902 | "name": "ApexExample_CDSRequestPayloadType", |
| 2903 | "version": "0.0.1" |
| 2904 | }, |
| 2905 | "value": { |
| 2906 | "key": { |
| 2907 | "name": "ApexExample_CDSRequestPayloadType", |
| 2908 | "version": "0.0.1" |
| 2909 | }, |
| 2910 | "schemaFlavour": "Avro", |
| 2911 | "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n },\n {\n \"name\": \"update_DasH_properties\",\n \"type\": {\n \"name\": \"update_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"service_DasH_instance_DoT_service_DasH_instance_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"generic_DasH_vnf_DoT_vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"data\",\n \"type\": {\n \"name\": \"update_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"active_DasH_streams\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n }\n}" |
| 2912 | } |
| 2913 | }, |
| 2914 | { |
| 2915 | "key": { |
| 2916 | "name": "ApexExample_CDSRestartResponsePayloadType", |
| 2917 | "version": "0.0.1" |
| 2918 | }, |
| 2919 | "value": { |
| 2920 | "key": { |
| 2921 | "name": "ApexExample_CDSRestartResponsePayloadType", |
| 2922 | "version": "0.0.1" |
| 2923 | }, |
| 2924 | "schemaFlavour": "Avro", |
| 2925 | "schemaDefinition": "{\n \"name\": \"CDSRestartResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"restart_DasH_response\",\n \"type\": {\n \"name\": \"restart_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}" |
| 2926 | } |
| 2927 | }, |
| 2928 | { |
| 2929 | "key": { |
| 2930 | "name": "ApexExample_CDSSuccessResponseCommonHeaderType", |
| 2931 | "version": "0.0.1" |
| 2932 | }, |
| 2933 | "value": { |
| 2934 | "key": { |
| 2935 | "name": "ApexExample_CDSSuccessResponseCommonHeaderType", |
| 2936 | "version": "0.0.1" |
| 2937 | }, |
| 2938 | "schemaFlavour": "Avro", |
| 2939 | "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}" |
| 2940 | } |
| 2941 | }, |
| 2942 | { |
| 2943 | "key": { |
| 2944 | "name": "ApexExample_CDSSuccessResponseStatusType", |
| 2945 | "version": "0.0.1" |
| 2946 | }, |
| 2947 | "value": { |
| 2948 | "key": { |
| 2949 | "name": "ApexExample_CDSSuccessResponseStatusType", |
| 2950 | "version": "0.0.1" |
| 2951 | }, |
| 2952 | "schemaFlavour": "Avro", |
| 2953 | "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}" |
| 2954 | } |
| 2955 | }, |
| 2956 | { |
| 2957 | "key": { |
| 2958 | "name": "ApexExample_EventDetailsAlbumType", |
| 2959 | "version": "0.0.1" |
| 2960 | }, |
| 2961 | "value": { |
| 2962 | "key": { |
| 2963 | "name": "ApexExample_EventDetailsAlbumType", |
| 2964 | "version": "0.0.1" |
| 2965 | }, |
| 2966 | "schemaFlavour": "Avro", |
| 2967 | "schemaDefinition": "{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"vnfDetails\",\n \"type\": {\n \"name\": \"vnfDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_type\",\n \"type\": \"string\"\n },\n {\n \"name\": \"service_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"prov_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"orchestration_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"in_DasH_maint\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"is_DasH_closed_DasH_loop_DasH_disabled\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"resource_DasH_version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_invariant_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_version_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_customization_DasH_id\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}" |
| 2968 | } |
| 2969 | }, |
| 2970 | { |
| 2971 | "key": { |
| 2972 | "name": "ApexExample_VesEventType", |
| 2973 | "version": "0.0.1" |
| 2974 | }, |
| 2975 | "value": { |
| 2976 | "key": { |
| 2977 | "name": "ApexExample_VesEventType", |
| 2978 | "version": "0.0.1" |
| 2979 | }, |
| 2980 | "schemaFlavour": "Avro", |
| 2981 | "schemaDefinition": "{\n \"name\": \"event\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n}" |
| 2982 | } |
| 2983 | }, |
| 2984 | { |
| 2985 | "key": { |
| 2986 | "name": "ApexExample_VnfRelationShipListType", |
| 2987 | "version": "0.0.1" |
| 2988 | }, |
| 2989 | "value": { |
| 2990 | "key": { |
| 2991 | "name": "ApexExample_VnfRelationShipListType", |
| 2992 | "version": "0.0.1" |
| 2993 | }, |
| 2994 | "schemaFlavour": "Avro", |
| 2995 | "schemaDefinition": "{\n \"name\": \"VnfRelationShipListType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"related_DasH_to\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_label\",\n \"type\": \"string\"\n },\n {\n \"name\": \"related_DasH_link\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_data\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"related_DasH_to_DasH_property\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"related_DasH_to_DasH_property_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"property_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"property_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n }\n ]\n}" |
| 2996 | } |
| 2997 | }, |
| 2998 | { |
| 2999 | "key": { |
| 3000 | "name": "SimpleBooleanType", |
| 3001 | "version": "0.0.1" |
| 3002 | }, |
| 3003 | "value": { |
| 3004 | "key": { |
| 3005 | "name": "SimpleBooleanType", |
| 3006 | "version": "0.0.1" |
| 3007 | }, |
| 3008 | "schemaFlavour": "Java", |
| 3009 | "schemaDefinition": "java.lang.Boolean" |
| 3010 | } |
| 3011 | }, |
| 3012 | { |
| 3013 | "key": { |
| 3014 | "name": "SimpleLongType", |
| 3015 | "version": "0.0.1" |
| 3016 | }, |
| 3017 | "value": { |
| 3018 | "key": { |
| 3019 | "name": "SimpleLongType", |
| 3020 | "version": "0.0.1" |
| 3021 | }, |
| 3022 | "schemaFlavour": "Java", |
| 3023 | "schemaDefinition": "java.lang.Long" |
| 3024 | } |
| 3025 | }, |
| 3026 | { |
| 3027 | "key": { |
| 3028 | "name": "SimpleStringType", |
| 3029 | "version": "0.0.1" |
| 3030 | }, |
| 3031 | "value": { |
| 3032 | "key": { |
| 3033 | "name": "SimpleStringType", |
| 3034 | "version": "0.0.1" |
| 3035 | }, |
| 3036 | "schemaFlavour": "Java", |
| 3037 | "schemaDefinition": "java.lang.String" |
| 3038 | } |
| 3039 | } |
| 3040 | ] |
| 3041 | } |
| 3042 | } |
| 3043 | } |
| 3044 | } |
| 3045 | }, |
| 3046 | "eventInputParameters": { |
| 3047 | "ApexExample_DCAEConsumer": { |
| 3048 | "carrierTechnologyParameters": { |
| 3049 | "carrierTechnology": "RESTCLIENT", |
| 3050 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", |
| 3051 | "parameters": { |
| 3052 | "url": "https://message-router:3905/events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000" |
| 3053 | } |
| 3054 | }, |
| 3055 | "eventProtocolParameters": { |
| 3056 | "eventProtocol": "JSON" |
| 3057 | }, |
| 3058 | "eventName": "ApexExample_VesEvent" |
| 3059 | }, |
| 3060 | "ApexExample_AAIResponseConsumer": { |
| 3061 | "carrierTechnologyParameters": { |
| 3062 | "carrierTechnology": "RESTREQUESTOR", |
| 3063 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", |
| 3064 | "parameters": { |
| 3065 | "url": "https://aai-sim:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}", |
| 3066 | "httpMethod": "GET", |
| 3067 | "httpCodeFilter": "[245][0-9][0-9]", |
| 3068 | "httpHeaders": [ |
| 3069 | [ |
| 3070 | "Accept", |
| 3071 | "application/json" |
| 3072 | ], |
| 3073 | [ |
| 3074 | "Content-Type", |
| 3075 | "application/json" |
| 3076 | ], |
| 3077 | [ |
| 3078 | "X-FromAppId", |
| 3079 | "dcae-curl" |
| 3080 | ], |
| 3081 | [ |
| 3082 | "x-transactionId", |
| 3083 | "9998" |
| 3084 | ], |
| 3085 | [ |
| 3086 | "Authorization", |
| 3087 | "Basic QUFJOkFBSQ==" |
| 3088 | ] |
| 3089 | ] |
| 3090 | } |
| 3091 | }, |
| 3092 | "eventProtocolParameters": { |
| 3093 | "eventProtocol": "JSON" |
| 3094 | }, |
| 3095 | "eventName": "ApexExample_AAISuccessResponseEvent|ApexExample_AAIFailureResponseEvent", |
| 3096 | "requestorMode": true, |
| 3097 | "requestorPeer": "ApexExample_AAIProducer", |
| 3098 | "requestorTimeout": 2000 |
| 3099 | }, |
| 3100 | "ApexExample_CDSConfigModifyResponseConsumer": { |
| 3101 | "carrierTechnologyParameters": { |
| 3102 | "carrierTechnology": "GRPC", |
| 3103 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters" |
| 3104 | }, |
| 3105 | "eventProtocolParameters": { |
| 3106 | "eventProtocol": "JSON" |
| 3107 | }, |
| 3108 | "eventName": "ApexExample_CDSConfigModifySuccessResponseEvent|ApexExample_CDSConfigModifyFailureResponseEvent", |
| 3109 | "requestorMode": true, |
| 3110 | "requestorPeer": "ApexExample_CDSConfigModifyRequestProducer", |
| 3111 | "requestorTimeout": 500 |
| 3112 | }, |
| 3113 | "ApexExample_CDSRestartResponseConsumer": { |
| 3114 | "carrierTechnologyParameters": { |
| 3115 | "carrierTechnology": "GRPC", |
| 3116 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters" |
| 3117 | }, |
| 3118 | "eventProtocolParameters": { |
| 3119 | "eventProtocol": "JSON" |
| 3120 | }, |
| 3121 | "eventName": "ApexExample_CDSRestartSuccessResponseEvent|ApexExample_CDSRestartFailureResponseEvent", |
| 3122 | "requestorMode": true, |
| 3123 | "requestorPeer": "ApexExample_CDSRestartRequestProducer", |
| 3124 | "requestorTimeout": 500 |
| 3125 | } |
| 3126 | }, |
| 3127 | "eventOutputParameters": { |
| 3128 | "ApexExample_AAIProducer": { |
| 3129 | "carrierTechnologyParameters": { |
| 3130 | "carrierTechnology": "RESTREQUESTOR", |
| 3131 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" |
| 3132 | }, |
| 3133 | "eventProtocolParameters": { |
| 3134 | "eventProtocol": "JSON" |
| 3135 | }, |
| 3136 | "eventNameFilter": "ApexExample_AAIRequestEvent", |
| 3137 | "requestorMode": true, |
| 3138 | "requestorPeer": "ApexExample_AAIResponseConsumer", |
| 3139 | "requestorTimeout": 2000 |
| 3140 | }, |
| 3141 | "ApexExample_CDSConfigModifyRequestProducer": { |
| 3142 | "carrierTechnologyParameters": { |
| 3143 | "carrierTechnology": "GRPC", |
| 3144 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters", |
| 3145 | "parameters": { |
| 3146 | "host": "grpc-sim", |
| 3147 | "port": 6680, |
| 3148 | "username": "ccsdkapps", |
| 3149 | "password": "ccsdkapps", |
| 3150 | "timeout": 10 |
| 3151 | } |
| 3152 | }, |
| 3153 | "eventProtocolParameters": { |
| 3154 | "eventProtocol": "JSON" |
| 3155 | }, |
| 3156 | "eventNameFilter": "ApexExample_CDSConfigModifyRequestEvent", |
| 3157 | "requestorMode": true, |
| 3158 | "requestorPeer": "ApexExample_CDSConfigModifyResponseConsumer", |
| 3159 | "requestorTimeout": 500 |
| 3160 | }, |
| 3161 | "ApexExample_CDSRestartRequestProducer": { |
| 3162 | "carrierTechnologyParameters": { |
| 3163 | "carrierTechnology": "GRPC", |
| 3164 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters", |
| 3165 | "parameters": { |
| 3166 | "host": "grpc-sim", |
| 3167 | "port": 6680, |
| 3168 | "username": "ccsdkapps", |
| 3169 | "password": "ccsdkapps", |
| 3170 | "timeout": 10 |
| 3171 | } |
| 3172 | }, |
| 3173 | "eventProtocolParameters": { |
| 3174 | "eventProtocol": "JSON" |
| 3175 | }, |
| 3176 | "eventNameFilter": "ApexExample_CDSRestartRequestEvent", |
| 3177 | "requestorMode": true, |
| 3178 | "requestorPeer": "ApexExample_CDSRestartResponseConsumer", |
| 3179 | "requestorTimeout": 500 |
| 3180 | } |
| 3181 | } |
| 3182 | } |
| 3183 | } |
| 3184 | } |
| 3185 | ] |
| 3186 | } |
| 3187 | } |