Bring latest jakarta fixes
[it/dep.git] / smo-install / test / pythonsdk / src / oransdk / policy / templates / create_instance_apex.json.j2
1 {
2   "data_types": {
3     "onap.datatype.controlloop.Target": {
4       "key": {
5         "version": "0.0.0",
6         "name": "onap.datatype.controlloop.Target"
7       },
8       "derived_from": "tosca.datatypes.Root",
9       "properties": {
10         "targetType": {
11           "required": true,
12           "status": null,
13           "metadata": null,
14           "entry_schema": null,
15           "constraints": [
16             {
17               "valid_values": [
18                 "VNF","VM","VFMODULE","PNF"],
19               "greater_or_equal": null,
20               "equal": null,
21               "greater_than": null,
22               "range_values": null,
23               "less_than": null,
24               "less_or_equal": null
25             }],
26           "description": "Category for the target type",
27           "type_version": "0.0.0",
28           "key_schema": null,
29           "type": "string",
30           "name": "targetType",
31           "default_value": null
32         },
33         "entityIds": {
34           "required": false,
35           "status": null,
36           "metadata": {
37             "clamp_possible_values": "ClampExecution:CSAR_RESOURCES"
38           },
39           "entry_schema": {
40             "constraints": null,
41             "description": null,
42             "type_version": "0.0.0",
43             "type": "string",
44             "name": null
45           },
46           "constraints": null,
47           "description": "Map of values that identify the resource. If none are provided, it is assumed that the
48 entity that generated the ONSET event will be the target.
49 ",
50           "type_version": "0.0.0",
51           "key_schema": null,
52           "type": "map",
53           "name": "entityIds",
54           "default_value": null
55         }
56       },
57       "metadata": {},
58       "constraints": [],
59       "description": "Definition for a entity in A&AI to perform a control loop operation on",
60       "version": "0.0.0",
61       "type_version": null,
62       "defined_name": "onap.datatype.controlloop.Target",
63       "defined_version": null,
64       "type": null,
65       "name": "onap.datatype.controlloop.Target"
66     },
67     "onap.datatypes.ToscaConceptIdentifier": {
68       "key": {
69         "version": "0.0.0",
70         "name": "onap.datatypes.ToscaConceptIdentifier"
71       },
72       "derived_from": "tosca.datatypes.Root",
73       "properties": {
74         "version": {
75           "required": true,
76           "status": null,
77           "metadata": null,
78           "entry_schema": null,
79           "constraints": null,
80           "description": null,
81           "type_version": "0.0.0",
82           "key_schema": null,
83           "type": "string",
84           "name": "version",
85           "default_value": null
86         },
87         "name": {
88           "required": true,
89           "status": null,
90           "metadata": null,
91           "entry_schema": null,
92           "constraints": null,
93           "description": null,
94           "type_version": "0.0.0",
95           "key_schema": null,
96           "type": "string",
97           "name": "name",
98           "default_value": null
99         }
100       },
101       "metadata": {},
102       "constraints": [],
103       "description": null,
104       "version": "0.0.0",
105       "type_version": null,
106       "defined_name": "onap.datatypes.ToscaConceptIdentifier",
107       "defined_version": null,
108       "type": null,
109       "name": "onap.datatypes.ToscaConceptIdentifier"
110     },
111     "onap.datatype.controlloop.Operation": {
112       "key": {
113         "version": "0.0.0",
114         "name": "onap.datatype.controlloop.Operation"
115       },
116       "derived_from": "tosca.datatypes.Root",
117       "properties": {
118         "failure_guard": {
119           "required": false,
120           "status": null,
121           "metadata": null,
122           "entry_schema": null,
123           "constraints": null,
124           "description": "Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.",
125           "type_version": "0.0.0",
126           "key_schema": null,
127           "type": "string",
128           "name": "failure_guard",
129           "default_value": "final_failure_guard"
130         },
131         "retries": {
132           "required": true,
133           "status": null,
134           "metadata": null,
135           "entry_schema": null,
136           "constraints": null,
137           "description": "The number of retries the actor should attempt to perform the operation.",
138           "type_version": "0.0.0",
139           "key_schema": null,
140           "type": "integer",
141           "name": "retries",
142           "default_value": 0
143         },
144         "success": {
145           "required": false,
146           "status": null,
147           "metadata": null,
148           "entry_schema": null,
149           "constraints": null,
150           "description": "Points to the operation to invoke on success. A value of \"final_success\" indicates and end to the operation.",
151           "type_version": "0.0.0",
152           "key_schema": null,
153           "type": "string",
154           "name": "success",
155           "default_value": "final_success"
156         },
157         "description": {
158           "required": false,
159           "status": null,
160           "metadata": null,
161           "entry_schema": null,
162           "constraints": null,
163           "description": "A user-friendly description of the intent for the operation",
164           "type_version": "0.0.0",
165           "key_schema": null,
166           "type": "string",
167           "name": "description",
168           "default_value": null
169         },
170         "failure_retries": {
171           "required": false,
172           "status": null,
173           "metadata": null,
174           "entry_schema": null,
175           "constraints": null,
176           "description": "Points to the operation to invoke when the current operation has exceeded its max retries.",
177           "type_version": "0.0.0",
178           "key_schema": null,
179           "type": "string",
180           "name": "failure_retries",
181           "default_value": "final_failure_retries"
182         },
183         "timeout": {
184           "required": true,
185           "status": null,
186           "metadata": null,
187           "entry_schema": null,
188           "constraints": null,
189           "description": "The amount of time for the actor to perform the operation.",
190           "type_version": "0.0.0",
191           "key_schema": null,
192           "type": "integer",
193           "name": "timeout",
194           "default_value": null
195         },
196         "failure": {
197           "required": false,
198           "status": null,
199           "metadata": null,
200           "entry_schema": null,
201           "constraints": null,
202           "description": "Points to the operation to invoke on Actor operation failure.",
203           "type_version": "0.0.0",
204           "key_schema": null,
205           "type": "string",
206           "name": "failure",
207           "default_value": "final_failure"
208         },
209         "id": {
210           "required": true,
211           "status": null,
212           "metadata": null,
213           "entry_schema": null,
214           "constraints": null,
215           "description": "Unique identifier for the operation",
216           "type_version": "0.0.0",
217           "key_schema": null,
218           "type": "string",
219           "name": "id",
220           "default_value": null
221         },
222         "failure_timeout": {
223           "required": false,
224           "status": null,
225           "metadata": null,
226           "entry_schema": null,
227           "constraints": null,
228           "description": "Points to the operation to invoke when the time out for the operation occurs.",
229           "type_version": "0.0.0",
230           "key_schema": null,
231           "type": "string",
232           "name": "failure_timeout",
233           "default_value": "final_failure_timeout"
234         },
235         "failure_exception": {
236           "required": false,
237           "status": null,
238           "metadata": null,
239           "entry_schema": null,
240           "constraints": null,
241           "description": "Points to the operation to invoke when the current operation causes an exception.",
242           "type_version": "0.0.0",
243           "key_schema": null,
244           "type": "string",
245           "name": "failure_exception",
246           "default_value": "final_failure_exception"
247         },
248         "operation": {
249           "required": true,
250           "status": null,
251           "metadata": null,
252           "entry_schema": null,
253           "constraints": null,
254           "description": "The definition of the operation to be performed.",
255           "type_version": "0.0.0",
256           "key_schema": null,
257           "type": "onap.datatype.controlloop.Actor",
258           "name": "operation",
259           "default_value": null
260         }
261       },
262       "metadata": {},
263       "constraints": [],
264       "description": "An operation supported by an actor",
265       "version": "0.0.0",
266       "type_version": null,
267       "defined_name": "onap.datatype.controlloop.Operation",
268       "defined_version": null,
269       "type": null,
270       "name": "onap.datatype.controlloop.Operation"
271     },
272     "onap.datatype.controlloop.Actor": {
273       "key": {
274         "version": "0.0.0",
275         "name": "onap.datatype.controlloop.Actor"
276       },
277       "derived_from": "tosca.datatypes.Root",
278       "properties": {
279         "payload": {
280           "required": false,
281           "status": null,
282           "metadata": {
283             "clamp_possible_values": "ClampExecution:CDS/payload"
284           },
285           "entry_schema": {
286             "constraints": null,
287             "description": null,
288             "type_version": "0.0.0",
289             "type": "string",
290             "name": null
291           },
292           "constraints": null,
293           "description": "Name/value pairs of payload information passed by Policy to the actor",
294           "type_version": "0.0.0",
295           "key_schema": null,
296           "type": "map",
297           "name": "payload",
298           "default_value": null
299         },
300         "target": {
301           "required": true,
302           "status": null,
303           "metadata": null,
304           "entry_schema": null,
305           "constraints": null,
306           "description": "The resource the operation should be performed on.",
307           "type_version": "0.0.0",
308           "key_schema": null,
309           "type": "onap.datatype.controlloop.Target",
310           "name": "target",
311           "default_value": null
312         },
313         "operation": {
314           "required": true,
315           "status": null,
316           "metadata": {
317             "clamp_possible_values": "Dictionary:DefaultOperations,ClampExecution:CDS/operation"
318           },
319           "entry_schema": null,
320           "constraints": null,
321           "description": "The operation the actor is performing.",
322           "type_version": "0.0.0",
323           "key_schema": null,
324           "type": "string",
325           "name": "operation",
326           "default_value": null
327         },
328         "actor": {
329           "required": true,
330           "status": null,
331           "metadata": {
332             "clamp_possible_values": "Dictionary:DefaultActors,ClampExecution:CDS/actor"
333           },
334           "entry_schema": null,
335           "constraints": null,
336           "description": "The actor performing the operation.",
337           "type_version": "0.0.0",
338           "key_schema": null,
339           "type": "string",
340           "name": "actor",
341           "default_value": null
342         }
343       },
344       "metadata": {},
345       "constraints": [],
346       "description": "An actor/operation/target definition",
347       "version": "0.0.0",
348       "type_version": null,
349       "defined_name": "onap.datatype.controlloop.Actor",
350       "defined_version": null,
351       "type": null,
352       "name": "onap.datatype.controlloop.Actor"
353     }
354   },
355   "topology_template": {
356     "policies_as_map": {
357       "ToscaEntityKey(name=operational.apex.linkmonitor, version=1.0.0)": {
358         "type_identifier": {
359           "version": "1.0.0",
360           "name": "onap.policies.controlloop.operational.common.Apex"
361         },
362         "key": {
363           "version": "1.0.0",
364           "name": "operational.apex.linkmonitor"
365         },
366         "derived_from": null,
367         "identifier": {
368           "version": "1.0.0",
369           "name": "operational.apex.linkmonitor"
370         },
371         "properties": {
372           "eventInputParameters": {
373             "DMaaPConsumer": {
374               "carrierTechnologyParameters": {
375                 "parameters": {
376                   "url": "http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT/{{dmaapGroup}}/{{dmaapUser}}?timeout=15000&limit=100"
377                 },
378                 "carrierTechnology": "RESTCLIENT",
379                 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
380               },
381               "eventName": "LinkFailureInputEvent",
382               "eventProtocolParameters": {
383                 "parameters": {
384                   "versionAlias": "version",
385                   "pojoField": "LinkFailureInput"
386                 },
387                 "eventProtocol": "JSON"
388               }
389             }
390           },
391           "eventOutputParameters": {
392             "RestProducer": {
393               "eventNameFilter": "LinkFailureOutputEvent",
394               "carrierTechnologyParameters": {
395                 "parameters": {
396                   "url": "http://sdnc-oam:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node={OduId}/yang-ext:mount/o-ran-sc-du-hello-world:network-function/distributed-unit-functions={OduId}/radio-resource-management-policy-ratio=rrm-pol-2",
397                   "httpMethod": "PUT",
398                   "httpHeaders": [
399                     [
400                       "Authorization","Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="]]
401                 },
402                 "carrierTechnology": "RESTCLIENT",
403                 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
404               },
405               "eventProtocolParameters": {
406                 "parameters": {
407                   "pojoField": "LinkFailureOutput"
408                 },
409                 "eventProtocol": "JSON"
410               }
411             },
412             "StdOutProducer": {
413               "eventNameFilter": "ApexMessageOutputEvent",
414               "carrierTechnologyParameters": {
415                 "parameters": {
416                   "standardIo": true
417                 },
418                 "carrierTechnology": "FILE"
419               },
420               "eventProtocolParameters": {
421                 "parameters": {
422                   "pojoField": "message"
423                 },
424                 "eventProtocol": "JSON"
425               }
426             }
427           },
428           "engineServiceParameters": {
429             "policy_type_impl": {
430               "apexPolicyModel": {
431                 "key": {
432                   "version": "0.0.1",
433                   "name": "LinkMonitorModel"
434                 },
435                 "policies": {
436                   "key": {
437                     "version": "0.0.1",
438                     "name": "LinkMonitorModel_Policies"
439                   },
440                   "policyMap": {
441                     "entry": [
442                       {
443                         "key": {
444                           "version": "0.0.1",
445                           "name": "LinkMonitorPolicy"
446                         },
447                         "value": {
448                           "template": "Freestyle",
449                           "policyKey": {
450                             "version": "0.0.1",
451                             "name": "LinkMonitorPolicy"
452                           },
453                           "state": {
454                             "entry": [
455                               {
456                                 "key": "LinkClearedState",
457                                 "value": {
458                                   "defaultTask": {
459                                     "version": "0.0.1",
460                                     "name": "LinkClearedTask"
461                                   },
462                                   "stateOutputs": {
463                                     "entry": [
464                                       {
465                                         "key": "LinkClearedLogic_Output_Direct",
466                                         "value": {
467                                           "key": {
468                                             "parentKeyName": "LinkMonitorPolicy",
469                                             "parentKeyVersion": "0.0.1",
470                                             "parentLocalName": "LinkClearedState",
471                                             "localName": "LinkClearedLogic_Output_Direct"
472                                           },
473                                           "outgoingEvent": {
474                                             "version": "0.0.1",
475                                             "name": "ApexMessageOutputEvent"
476                                           },
477                                           "nextState": {
478                                             "parentKeyName": "NULL",
479                                             "parentKeyVersion": "0.0.0",
480                                             "parentLocalName": "NULL",
481                                             "localName": "NULL"
482                                           }
483                                         }
484                                       }]
485                                   },
486                                   "taskReferences": {
487                                     "entry": [
488                                       {
489                                         "key": {
490                                           "version": "0.0.1",
491                                           "name": "LinkClearedTask"
492                                         },
493                                         "value": {
494                                           "key": {
495                                             "parentKeyName": "LinkMonitorPolicy",
496                                             "parentKeyVersion": "0.0.1",
497                                             "parentLocalName": "LinkClearedState",
498                                             "localName": "LinkClearedTask"
499                                           },
500                                           "output": {
501                                             "parentKeyName": "LinkMonitorPolicy",
502                                             "parentKeyVersion": "0.0.1",
503                                             "parentLocalName": "LinkClearedState",
504                                             "localName": "LinkClearedLogic_Output_Direct"
505                                           },
506                                           "outputType": "DIRECT"
507                                         }
508                                       }]
509                                   },
510                                   "stateKey": {
511                                     "parentKeyName": "LinkMonitorPolicy",
512                                     "parentKeyVersion": "0.0.1",
513                                     "parentLocalName": "NULL",
514                                     "localName": "LinkClearedState"
515                                   },
516                                   "contextAlbumReference": [],
517                                   "stateFinalizerLogicMap": {
518                                     "entry": []
519                                   },
520                                   "taskSelectionLogic": {
521                                     "key": "NULL",
522                                     "logic": "",
523                                     "logicFlavour": "UNDEFINED"
524                                   },
525                                   "trigger": {
526                                     "version": "0.0.1",
527                                     "name": "CreateLinkClearedOutfieldsEvent"
528                                   }
529                                 }
530                               },{
531                                 "key": "LinkFailureOrClearedState",
532                                 "value": {
533                                   "defaultTask": {
534                                     "version": "0.0.1",
535                                     "name": "NoPolicyDefinedTask"
536                                   },
537                                   "stateOutputs": {
538                                     "entry": [
539                                       {
540                                         "key": "CreateLinkClearedOutfieldsLogic_Output_Direct",
541                                         "value": {
542                                           "key": {
543                                             "parentKeyName": "LinkMonitorPolicy",
544                                             "parentKeyVersion": "0.0.1",
545                                             "parentLocalName": "LinkFailureOrClearedState",
546                                             "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
547                                           },
548                                           "outgoingEvent": {
549                                             "version": "0.0.1",
550                                             "name": "CreateLinkClearedOutfieldsEvent"
551                                           },
552                                           "nextState": {
553                                             "parentKeyName": "LinkMonitorPolicy",
554                                             "parentKeyVersion": "0.0.1",
555                                             "parentLocalName": "NULL",
556                                             "localName": "LinkClearedState"
557                                           }
558                                         }
559                                       },{
560                                         "key": "CreateLinkFailureOutfieldsLogic_Output_Direct",
561                                         "value": {
562                                           "key": {
563                                             "parentKeyName": "LinkMonitorPolicy",
564                                             "parentKeyVersion": "0.0.1",
565                                             "parentLocalName": "LinkFailureOrClearedState",
566                                             "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
567                                           },
568                                           "outgoingEvent": {
569                                             "version": "0.0.1",
570                                             "name": "CreateLinkFailureOutfieldsEvent"
571                                           },
572                                           "nextState": {
573                                             "parentKeyName": "LinkMonitorPolicy",
574                                             "parentKeyVersion": "0.0.1",
575                                             "parentLocalName": "NULL",
576                                             "localName": "LinkFailureState"
577                                           }
578                                         }
579                                       },{
580                                         "key": "NoPolicyDefinedLogic_Output_Direct",
581                                         "value": {
582                                           "key": {
583                                             "parentKeyName": "LinkMonitorPolicy",
584                                             "parentKeyVersion": "0.0.1",
585                                             "parentLocalName": "LinkFailureOrClearedState",
586                                             "localName": "NoPolicyDefinedLogic_Output_Direct"
587                                           },
588                                           "outgoingEvent": {
589                                             "version": "0.0.1",
590                                             "name": "ApexMessageOutputEvent"
591                                           },
592                                           "nextState": {
593                                             "parentKeyName": "NULL",
594                                             "parentKeyVersion": "0.0.0",
595                                             "parentLocalName": "NULL",
596                                             "localName": "NULL"
597                                           }
598                                         }
599                                       }]
600                                   },
601                                   "taskReferences": {
602                                     "entry": [
603                                       {
604                                         "key": {
605                                           "version": "0.0.1",
606                                           "name": "CreateLinkClearedOutfieldsTask"
607                                         },
608                                         "value": {
609                                           "key": {
610                                             "parentKeyName": "LinkMonitorPolicy",
611                                             "parentKeyVersion": "0.0.1",
612                                             "parentLocalName": "LinkFailureOrClearedState",
613                                             "localName": "CreateLinkClearedOutfieldsTask"
614                                           },
615                                           "output": {
616                                             "parentKeyName": "LinkMonitorPolicy",
617                                             "parentKeyVersion": "0.0.1",
618                                             "parentLocalName": "LinkFailureOrClearedState",
619                                             "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
620                                           },
621                                           "outputType": "DIRECT"
622                                         }
623                                       },{
624                                         "key": {
625                                           "version": "0.0.1",
626                                           "name": "CreateLinkFailureOutfieldsTask"
627                                         },
628                                         "value": {
629                                           "key": {
630                                             "parentKeyName": "LinkMonitorPolicy",
631                                             "parentKeyVersion": "0.0.1",
632                                             "parentLocalName": "LinkFailureOrClearedState",
633                                             "localName": "CreateLinkFailureOutfieldsTask"
634                                           },
635                                           "output": {
636                                             "parentKeyName": "LinkMonitorPolicy",
637                                             "parentKeyVersion": "0.0.1",
638                                             "parentLocalName": "LinkFailureOrClearedState",
639                                             "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
640                                           },
641                                           "outputType": "DIRECT"
642                                         }
643                                       },{
644                                         "key": {
645                                           "version": "0.0.1",
646                                           "name": "NoPolicyDefinedTask"
647                                         },
648                                         "value": {
649                                           "key": {
650                                             "parentKeyName": "LinkMonitorPolicy",
651                                             "parentKeyVersion": "0.0.1",
652                                             "parentLocalName": "LinkFailureOrClearedState",
653                                             "localName": "NoPolicyDefinedTask"
654                                           },
655                                           "output": {
656                                             "parentKeyName": "LinkMonitorPolicy",
657                                             "parentKeyVersion": "0.0.1",
658                                             "parentLocalName": "LinkFailureOrClearedState",
659                                             "localName": "NoPolicyDefinedLogic_Output_Direct"
660                                           },
661                                           "outputType": "DIRECT"
662                                         }
663                                       }]
664                                   },
665                                   "stateKey": {
666                                     "parentKeyName": "LinkMonitorPolicy",
667                                     "parentKeyVersion": "0.0.1",
668                                     "parentLocalName": "NULL",
669                                     "localName": "LinkFailureOrClearedState"
670                                   },
671                                   "contextAlbumReference": [],
672                                   "stateFinalizerLogicMap": {
673                                     "entry": []
674                                   },
675                                   "taskSelectionLogic": {
676                                     "key": "TaskSelectionLogic",
677                                     "logic": "/*
678  * ============LICENSE_START=======================================================
679  * Copyright (C) 2021 Nordix Foundation.
680  * ================================================================================
681  * Licensed under the Apache License, Version 2.0 (the \"License\");
682  * you may not use this file except in compliance with the License.
683  * You may obtain a copy of the License at
684  *
685  *      http://www.apache.org/licenses/LICENSE-2.0
686  *
687  * Unless required by applicable law or agreed to in writing, software
688  * distributed under the License is distributed on an \"AS IS\" BASIS,
689  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
690  * See the License for the specific language governing permissions and
691  * limitations under the License.
692  *
693  * SPDX-License-Identifier: Apache-2.0
694  * ============LICENSE_END=========================================================
695  */
696
697 executor.logger.info(\"Task Selection Execution: '\"+executor.subject.id+
698     \"'. InputFields: '\"+executor.inFields+\"'\");
699
700 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
701 var commonEventHeader = linkFailureInput.get(\"event\").get(\"commonEventHeader\");
702 var domain = commonEventHeader.get(\"domain\");
703
704 taskFailure = executor.subject.getTaskKey(\"CreateLinkFailureOutfieldsTask\");
705 taskCleared = executor.subject.getTaskKey(\"CreateLinkClearedOutfieldsTask\");
706 taskDefault = executor.subject.getDefaultTaskKey();
707
708 if (domain == \"fault\") {
709     var faultFields = linkFailureInput.get(\"event\").get(\"faultFields\");
710     var alarmCondition = faultFields.get(\"alarmCondition\");
711     var eventSeverity = faultFields.get(\"eventSeverity\");
712     if (alarmCondition == \"28\" && eventSeverity != \"NORMAL\") {
713         taskFailure.copyTo(executor.selectedTask);
714     } else if (alarmCondition == \"28\" && eventSeverity == \"NORMAL\") {
715         taskCleared.copyTo(executor.selectedTask);
716     } else {
717         taskDefault.copyTo(executor.selectedTask);
718     }
719 } else {
720     taskDefault.copyTo(executor.selectedTask);
721 }
722
723 true;",
724                                     "logicFlavour": "JAVASCRIPT"
725                                   },
726                                   "trigger": {
727                                     "version": "0.0.1",
728                                     "name": "LinkFailureInputEvent"
729                                   }
730                                 }
731                               },{
732                                 "key": "LinkFailureState",
733                                 "value": {
734                                   "defaultTask": {
735                                     "version": "0.0.1",
736                                     "name": "LinkFailureTask"
737                                   },
738                                   "stateOutputs": {
739                                     "entry": [
740                                       {
741                                         "key": "LinkFailureLogic_Output_Direct",
742                                         "value": {
743                                           "key": {
744                                             "parentKeyName": "LinkMonitorPolicy",
745                                             "parentKeyVersion": "0.0.1",
746                                             "parentLocalName": "LinkFailureState",
747                                             "localName": "LinkFailureLogic_Output_Direct"
748                                           },
749                                           "outgoingEvent": {
750                                             "version": "0.0.1",
751                                             "name": "LinkFailureOutputEvent"
752                                           },
753                                           "nextState": {
754                                             "parentKeyName": "NULL",
755                                             "parentKeyVersion": "0.0.0",
756                                             "parentLocalName": "NULL",
757                                             "localName": "NULL"
758                                           }
759                                         }
760                                       }]
761                                   },
762                                   "taskReferences": {
763                                     "entry": [
764                                       {
765                                         "key": {
766                                           "version": "0.0.1",
767                                           "name": "LinkFailureTask"
768                                         },
769                                         "value": {
770                                           "key": {
771                                             "parentKeyName": "LinkMonitorPolicy",
772                                             "parentKeyVersion": "0.0.1",
773                                             "parentLocalName": "LinkFailureState",
774                                             "localName": "LinkFailureTask"
775                                           },
776                                           "output": {
777                                             "parentKeyName": "LinkMonitorPolicy",
778                                             "parentKeyVersion": "0.0.1",
779                                             "parentLocalName": "LinkFailureState",
780                                             "localName": "LinkFailureLogic_Output_Direct"
781                                           },
782                                           "outputType": "DIRECT"
783                                         }
784                                       }]
785                                   },
786                                   "stateKey": {
787                                     "parentKeyName": "LinkMonitorPolicy",
788                                     "parentKeyVersion": "0.0.1",
789                                     "parentLocalName": "NULL",
790                                     "localName": "LinkFailureState"
791                                   },
792                                   "contextAlbumReference": [],
793                                   "stateFinalizerLogicMap": {
794                                     "entry": []
795                                   },
796                                   "taskSelectionLogic": {
797                                     "key": "NULL",
798                                     "logic": "",
799                                     "logicFlavour": "UNDEFINED"
800                                   },
801                                   "trigger": {
802                                     "version": "0.0.1",
803                                     "name": "CreateLinkFailureOutfieldsEvent"
804                                   }
805                                 }
806                               }]
807                           },
808                           "firstState": "LinkFailureOrClearedState"
809                         }
810                       }]
811                   }
812                 },
813                 "events": {
814                   "key": {
815                     "version": "0.0.1",
816                     "name": "LinkMonitorModel_Events"
817                   },
818                   "eventMap": {
819                     "entry": [
820                       {
821                         "key": {
822                           "version": "0.0.1",
823                           "name": "ApexMessageOutputEvent"
824                         },
825                         "value": {
826                           "key": {
827                             "version": "0.0.1",
828                             "name": "ApexMessageOutputEvent"
829                           },
830                           "target": "APEX",
831                           "source": "APEX",
832                           "nameSpace": "org.onap.policy.apex.auth.clieditor",
833                           "parameter": {
834                             "entry": [
835                               {
836                                 "key": "message",
837                                 "value": {
838                                   "optional": false,
839                                   "key": "message",
840                                   "fieldSchemaKey": {
841                                     "version": "0.0.1",
842                                     "name": "MessageSchema"
843                                   }
844                                 }
845                               }]
846                           }
847                         }
848                       },{
849                         "key": {
850                           "version": "0.0.1",
851                           "name": "CreateLinkClearedOutfieldsEvent"
852                         },
853                         "value": {
854                           "key": {
855                             "version": "0.0.1",
856                             "name": "CreateLinkClearedOutfieldsEvent"
857                           },
858                           "target": "APEX",
859                           "source": "APEX",
860                           "nameSpace": "org.onap.policy.apex.auth.clieditor",
861                           "parameter": {
862                             "entry": [
863                               {
864                                 "key": "OruId",
865                                 "value": {
866                                   "optional": false,
867                                   "key": "OruId",
868                                   "fieldSchemaKey": {
869                                     "version": "0.0.1",
870                                     "name": "OruIdSchema"
871                                   }
872                                 }
873                               }]
874                           }
875                         }
876                       },{
877                         "key": {
878                           "version": "0.0.1",
879                           "name": "CreateLinkFailureOutfieldsEvent"
880                         },
881                         "value": {
882                           "key": {
883                             "version": "0.0.1",
884                             "name": "CreateLinkFailureOutfieldsEvent"
885                           },
886                           "target": "APEX",
887                           "source": "APEX",
888                           "nameSpace": "org.onap.policy.apex.auth.clieditor",
889                           "parameter": {
890                             "entry": [
891                               {
892                                 "key": "OduId",
893                                 "value": {
894                                   "optional": false,
895                                   "key": "OduId",
896                                   "fieldSchemaKey": {
897                                     "version": "0.0.1",
898                                     "name": "OduIdSchema"
899                                   }
900                                 }
901                               },{
902                                 "key": "OruId",
903                                 "value": {
904                                   "optional": false,
905                                   "key": "OruId",
906                                   "fieldSchemaKey": {
907                                     "version": "0.0.1",
908                                     "name": "OruIdSchema"
909                                   }
910                                 }
911                               }]
912                           }
913                         }
914                       },{
915                         "key": {
916                           "version": "0.0.1",
917                           "name": "LinkFailureInputEvent"
918                         },
919                         "value": {
920                           "key": {
921                             "version": "0.0.1",
922                             "name": "LinkFailureInputEvent"
923                           },
924                           "target": "APEX",
925                           "source": "DMAAP",
926                           "nameSpace": "org.onap.policy.apex.auth.clieditor",
927                           "parameter": {
928                             "entry": [
929                               {
930                                 "key": "LinkFailureInput",
931                                 "value": {
932                                   "optional": false,
933                                   "key": "LinkFailureInput",
934                                   "fieldSchemaKey": {
935                                     "version": "0.0.1",
936                                     "name": "LinkFailureInputSchema"
937                                   }
938                                 }
939                               }]
940                           }
941                         }
942                       },{
943                         "key": {
944                           "version": "0.0.1",
945                           "name": "LinkFailureOutputEvent"
946                         },
947                         "value": {
948                           "key": {
949                             "version": "0.0.1",
950                             "name": "LinkFailureOutputEvent"
951                           },
952                           "target": "OAM",
953                           "source": "APEX",
954                           "nameSpace": "org.onap.policy.apex.auth.clieditor",
955                           "parameter": {
956                             "entry": [
957                               {
958                                 "key": "LinkFailureOutput",
959                                 "value": {
960                                   "optional": false,
961                                   "key": "LinkFailureOutput",
962                                   "fieldSchemaKey": {
963                                     "version": "0.0.1",
964                                     "name": "LinkFailureOutputSchema"
965                                   }
966                                 }
967                               }]
968                           }
969                         }
970                       }]
971                   }
972                 },
973                 "keyInformation": {
974                   "key": {
975                     "version": "0.0.1",
976                     "name": "LinkMonitorModel_KeyInfo"
977                   },
978                   "keyInfoMap": {
979                     "entry": [
980                       {
981                         "key": {
982                           "version": "0.0.1",
983                           "name": "ApexMessageOutputEvent"
984                         },
985                         "value": {
986                           "key": {
987                             "version": "0.0.1",
988                             "name": "ApexMessageOutputEvent"
989                           },
990                           "description": "Generated description for concept referred to by key \"ApexMessageOutputEvent:0.0.1\"",
991                           "UUID": "cca47d74-7754-4a61-b163-ca31f66b157b"
992                         }
993                       },{
994                         "key": {
995                           "version": "0.0.1",
996                           "name": "CreateLinkClearedOutfieldsEvent"
997                         },
998                         "value": {
999                           "key": {
1000                             "version": "0.0.1",
1001                             "name": "CreateLinkClearedOutfieldsEvent"
1002                           },
1003                           "description": "Generated description for concept referred to by key \"CreateLinkClearedOutfieldsEvent:0.0.1\"",
1004                           "UUID": "a295d6a3-1b73-387e-abba-b41e9b608802"
1005                         }
1006                       },{
1007                         "key": {
1008                           "version": "0.0.1",
1009                           "name": "CreateLinkClearedOutfieldsTask"
1010                         },
1011                         "value": {
1012                           "key": {
1013                             "version": "0.0.1",
1014                             "name": "CreateLinkClearedOutfieldsTask"
1015                           },
1016                           "description": "This task creates the output fields when link failure is cleared.",
1017                           "UUID": "fd594e88-411d-4a94-b2be-697b3a0d7adf"
1018                         }
1019                       },{
1020                         "key": {
1021                           "version": "0.0.1",
1022                           "name": "CreateLinkFailureOutfieldsEvent"
1023                         },
1024                         "value": {
1025                           "key": {
1026                             "version": "0.0.1",
1027                             "name": "CreateLinkFailureOutfieldsEvent"
1028                           },
1029                           "description": "Generated description for concept referred to by key \"CreateLinkFailureOutfieldsEvent:0.0.1\"",
1030                           "UUID": "02be2b5d-45b7-3c54-ae54-97f2b5c30125"
1031                         }
1032                       },{
1033                         "key": {
1034                           "version": "0.0.1",
1035                           "name": "CreateLinkFailureOutfieldsTask"
1036                         },
1037                         "value": {
1038                           "key": {
1039                             "version": "0.0.1",
1040                             "name": "CreateLinkFailureOutfieldsTask"
1041                           },
1042                           "description": "This task the output fields when link failure is detected.",
1043                           "UUID": "ac3d9842-80af-4a98-951c-bd79a431c613"
1044                         }
1045                       },{
1046                         "key": {
1047                           "version": "0.0.1",
1048                           "name": "LinkClearedTask"
1049                         },
1050                         "value": {
1051                           "key": {
1052                             "version": "0.0.1",
1053                             "name": "LinkClearedTask"
1054                           },
1055                           "description": "This task sends a message to the output when link failure is cleared.",
1056                           "UUID": "eecfde90-896c-4343-8f9c-2603ced94e2d"
1057                         }
1058                       },{
1059                         "key": {
1060                           "version": "0.0.1",
1061                           "name": "LinkFailureInputEvent"
1062                         },
1063                         "value": {
1064                           "key": {
1065                             "version": "0.0.1",
1066                             "name": "LinkFailureInputEvent"
1067                           },
1068                           "description": "Generated description for concept referred to by key \"LinkFailureInputEvent:0.0.1\"",
1069                           "UUID": "c4500941-3f98-4080-a9cc-5b9753ed050b"
1070                         }
1071                       },{
1072                         "key": {
1073                           "version": "0.0.1",
1074                           "name": "LinkFailureInputSchema"
1075                         },
1076                         "value": {
1077                           "key": {
1078                             "version": "0.0.1",
1079                             "name": "LinkFailureInputSchema"
1080                           },
1081                           "description": "Generated description for concept referred to by key \"LinkFailureInputSchema:0.0.1\"",
1082                           "UUID": "3b3974fc-3012-3b02-9f33-c9d8eefe4dc1"
1083                         }
1084                       },{
1085                         "key": {
1086                           "version": "0.0.1",
1087                           "name": "LinkFailureOutputEvent"
1088                         },
1089                         "value": {
1090                           "key": {
1091                             "version": "0.0.1",
1092                             "name": "LinkFailureOutputEvent"
1093                           },
1094                           "description": "Generated description for concept referred to by key \"LinkFailureOutputEvent:0.0.1\"",
1095                           "UUID": "4f04aa98-e917-4f4a-882a-c75ba5a99374"
1096                         }
1097                       },{
1098                         "key": {
1099                           "version": "0.0.1",
1100                           "name": "LinkFailureOutputSchema"
1101                         },
1102                         "value": {
1103                           "key": {
1104                             "version": "0.0.1",
1105                             "name": "LinkFailureOutputSchema"
1106                           },
1107                           "description": "Generated description for concept referred to by key \"LinkFailureOutputSchema:0.0.1\"",
1108                           "UUID": "2d1a7f6e-eb9a-3984-be1f-283d98111b84"
1109                         }
1110                       },{
1111                         "key": {
1112                           "version": "0.0.1",
1113                           "name": "LinkFailureTask"
1114                         },
1115                         "value": {
1116                           "key": {
1117                             "version": "0.0.1",
1118                             "name": "LinkFailureTask"
1119                           },
1120                           "description": "This task updates the config for O-RU when link failure is detected.",
1121                           "UUID": "3351b0f4-cf06-4fa2-8823-edf67bd30223"
1122                         }
1123                       },{
1124                         "key": {
1125                           "version": "0.0.1",
1126                           "name": "LinkMonitorModel"
1127                         },
1128                         "value": {
1129                           "key": {
1130                             "version": "0.0.1",
1131                             "name": "LinkMonitorModel"
1132                           },
1133                           "description": "This is the Apex Policy Model for link monitoring.",
1134                           "UUID": "540226fb-55ee-4f0e-a444-983a0494818e"
1135                         }
1136                       },{
1137                         "key": {
1138                           "version": "0.0.1",
1139                           "name": "LinkMonitorModel_Events"
1140                         },
1141                         "value": {
1142                           "key": {
1143                             "version": "0.0.1",
1144                             "name": "LinkMonitorModel_Events"
1145                           },
1146                           "description": "Generated description for concept referred to by key \"LinkMonitorModel_Events:0.0.1\"",
1147                           "UUID": "27ad3e7e-fe3b-3bd6-9081-718705c2bcea"
1148                         }
1149                       },{
1150                         "key": {
1151                           "version": "0.0.1",
1152                           "name": "LinkMonitorModel_KeyInfo"
1153                         },
1154                         "value": {
1155                           "key": {
1156                             "version": "0.0.1",
1157                             "name": "LinkMonitorModel_KeyInfo"
1158                           },
1159                           "description": "Generated description for concept referred to by key \"LinkMonitorModel_KeyInfo:0.0.1\"",
1160                           "UUID": "ea0b5f58-eefd-358a-9660-840c640bf981"
1161                         }
1162                       },{
1163                         "key": {
1164                           "version": "0.0.1",
1165                           "name": "LinkMonitorModel_Policies"
1166                         },
1167                         "value": {
1168                           "key": {
1169                             "version": "0.0.1",
1170                             "name": "LinkMonitorModel_Policies"
1171                           },
1172                           "description": "Generated description for concept referred to by key \"LinkMonitorModel_Policies:0.0.1\"",
1173                           "UUID": "ee9e0b0f-2b7d-3ab7-9a98-c5ec05ed823d"
1174                         }
1175                       },{
1176                         "key": {
1177                           "version": "0.0.1",
1178                           "name": "LinkMonitorModel_Schemas"
1179                         },
1180                         "value": {
1181                           "key": {
1182                             "version": "0.0.1",
1183                             "name": "LinkMonitorModel_Schemas"
1184                           },
1185                           "description": "Generated description for concept referred to by key \"LinkMonitorModel_Schemas:0.0.1\"",
1186                           "UUID": "fa5f9b8f-796c-3c70-84e9-5140c958c4bb"
1187                         }
1188                       },{
1189                         "key": {
1190                           "version": "0.0.1",
1191                           "name": "LinkMonitorModel_Tasks"
1192                         },
1193                         "value": {
1194                           "key": {
1195                             "version": "0.0.1",
1196                             "name": "LinkMonitorModel_Tasks"
1197                           },
1198                           "description": "Generated description for concept referred to by key \"LinkMonitorModel_Tasks:0.0.1\"",
1199                           "UUID": "eec592f7-69d5-39a9-981a-e552f787ed01"
1200                         }
1201                       },{
1202                         "key": {
1203                           "version": "0.0.1",
1204                           "name": "LinkMonitorPolicy"
1205                         },
1206                         "value": {
1207                           "key": {
1208                             "version": "0.0.1",
1209                             "name": "LinkMonitorPolicy"
1210                           },
1211                           "description": "Generated description for concept referred to by key \"LinkMonitorPolicy:0.0.1\"",
1212                           "UUID": "6c5e410f-489a-46ff-964e-982ce6e8b6d0"
1213                         }
1214                       },{
1215                         "key": {
1216                           "version": "0.0.1",
1217                           "name": "MessageSchema"
1218                         },
1219                         "value": {
1220                           "key": {
1221                             "version": "0.0.1",
1222                             "name": "MessageSchema"
1223                           },
1224                           "description": "A schema for messages from apex",
1225                           "UUID": "ac4b34ac-39d6-3393-a267-8d5b84854018"
1226                         }
1227                       },{
1228                         "key": {
1229                           "version": "0.0.1",
1230                           "name": "NoPolicyDefinedTask"
1231                         },
1232                         "value": {
1233                           "key": {
1234                             "version": "0.0.1",
1235                             "name": "NoPolicyDefinedTask"
1236                           },
1237                           "description": "This task sends a message to the output when an event is received for which no policy has been defined.",
1238                           "UUID": "d48b619e-d00d-4008-b884-02d76ea4350b"
1239                         }
1240                       },{
1241                         "key": {
1242                           "version": "0.0.1",
1243                           "name": "OduIdSchema"
1244                         },
1245                         "value": {
1246                           "key": {
1247                             "version": "0.0.1",
1248                             "name": "OduIdSchema"
1249                           },
1250                           "description": "A schema for O-DU-ID",
1251                           "UUID": "50662174-a88b-3cbd-91bd-8e91b40b2660"
1252                         }
1253                       },{
1254                         "key": {
1255                           "version": "0.0.1",
1256                           "name": "OruIdSchema"
1257                         },
1258                         "value": {
1259                           "key": {
1260                             "version": "0.0.1",
1261                             "name": "OruIdSchema"
1262                           },
1263                           "description": "A schema for O-RU-ID",
1264                           "UUID": "54daf32b-015f-39cd-8530-a1175c5553e9"
1265                         }
1266                       }]
1267                   }
1268                 },
1269                 "schemas": {
1270                   "key": {
1271                     "version": "0.0.1",
1272                     "name": "LinkMonitorModel_Schemas"
1273                   },
1274                   "schemas": {
1275                     "entry": [
1276                       {
1277                         "key": {
1278                           "version": "0.0.1",
1279                           "name": "LinkFailureInputSchema"
1280                         },
1281                         "value": {
1282                           "schemaDefinition": "{
1283     \"type\": \"record\",
1284     \"name\": \"Link_Failure_Input\",
1285     \"fields\": [
1286         {
1287             \"name\": \"event\",
1288             \"type\": {
1289                 \"type\": \"record\",
1290                 \"name\": \"Event_Type\",
1291                 \"fields\": [
1292                     {
1293                         \"name\": \"commonEventHeader\",
1294                         \"type\": {
1295                             \"type\": \"record\",
1296                             \"name\": \"Common_Event_Header_Type\",
1297                             \"fields\": [
1298                                 {
1299                                     \"name\": \"domain\",
1300                                     \"type\": \"string\"
1301                                 },
1302                                 {
1303                                     \"name\": \"eventId\",
1304                                     \"type\": \"string\"
1305                                 },
1306                                 {
1307                                     \"name\": \"eventName\",
1308                                     \"type\": \"string\"
1309                                 },
1310                                 {
1311                                     \"name\": \"eventType\",
1312                                     \"type\": \"string\"
1313                                 },
1314                                 {
1315                                     \"name\": \"sequence\",
1316                                     \"type\": \"int\"
1317                                 },
1318                                 {
1319                                     \"name\": \"priority\",
1320                                     \"type\": \"string\"
1321                                 },
1322                                 {
1323                                     \"name\": \"reportingEntityId\",
1324                                     \"type\": \"string\"
1325                                 },
1326                                 {
1327                                     \"name\": \"reportingEntityName\",
1328                                     \"type\": \"string\"
1329                                 },
1330                                 {
1331                                     \"name\": \"sourceId\",
1332                                     \"type\": \"string\"
1333                                 },
1334                                 {
1335                                     \"name\": \"sourceName\",
1336                                     \"type\": \"string\"
1337                                 },
1338                                 {
1339                                     \"name\": \"startEpochMicrosec\",
1340                                     \"type\": \"string\"
1341                                 },
1342                                 {
1343                                     \"name\": \"lastEpochMicrosec\",
1344                                     \"type\": \"string\"
1345                                 },
1346                                 {
1347                                     \"name\": \"nfNamingCode\",
1348                                     \"type\": \"string\"
1349                                 },
1350                                 {
1351                                     \"name\": \"nfVendorName\",
1352                                     \"type\": \"string\"
1353                                 },
1354                                 {
1355                                     \"name\": \"timeZoneOffset\",
1356                                     \"type\": \"string\"
1357                                 },
1358                                 {
1359                                     \"name\": \"version\",
1360                                     \"type\": \"string\"
1361                                 },
1362                                 {
1363                                     \"name\": \"vesEventListenerVersion\",
1364                                     \"type\": \"string\"
1365                                 }
1366                             ]
1367                         }
1368                     },
1369                     {
1370                         \"name\": \"faultFields\",
1371                         \"type\": {
1372                             \"type\": \"record\",
1373                             \"name\": \"Fault_Fields_Type\",
1374                             \"fields\": [
1375                                 {
1376                                     \"name\": \"faultFieldsVersion\",
1377                                     \"type\": \"string\"
1378                                 },
1379                                 {
1380                                     \"name\": \"alarmCondition\",
1381                                     \"type\": \"string\"
1382                                 },
1383                                 {
1384                                     \"name\": \"alarmInterfaceA\",
1385                                     \"type\": \"string\"
1386                                 },
1387                                 {
1388                                     \"name\": \"eventSourceType\",
1389                                     \"type\": \"string\"
1390                                 },
1391                                 {
1392                                     \"name\": \"specificProblem\",
1393                                     \"type\": \"string\"
1394                                 },
1395                                 {
1396                                     \"name\": \"eventSeverity\",
1397                                     \"type\": \"string\"
1398                                 },
1399                                 {
1400                                     \"name\": \"vfStatus\",
1401                                     \"type\": \"string\"
1402                                 },
1403                                 {
1404                                     \"name\": \"alarmAdditionalInformation\",
1405                                     \"type\": {
1406                                         \"type\": \"record\",
1407                                         \"name\": \"Alarm_Additional_Information_Type\",
1408                                         \"fields\": [
1409                                             {
1410                                                 \"name\": \"eventTime\",
1411                                                 \"type\": \"string\"
1412                                             },
1413                                             {
1414                                                 \"name\": \"equipType\",
1415                                                 \"type\": \"string\"
1416                                             },
1417                                             {
1418                                                 \"name\": \"vendor\",
1419                                                 \"type\": \"string\"
1420                                             },
1421                                             {
1422                                                 \"name\": \"model\",
1423                                                 \"type\": \"string\"
1424                                             }
1425                                         ]
1426                                     }
1427                                 }
1428                             ]
1429                         }
1430                     }
1431                 ]
1432             }
1433         }
1434     ]
1435 }",
1436                           "key": {
1437                             "version": "0.0.1",
1438                             "name": "LinkFailureInputSchema"
1439                           },
1440                           "schemaFlavour": "Avro"
1441                         }
1442                       },{
1443                         "key": {
1444                           "version": "0.0.1",
1445                           "name": "LinkFailureOutputSchema"
1446                         },
1447                         "value": {
1448                           "schemaDefinition": "{
1449   \"name\": \"Link_Failure_Output\",
1450   \"type\": \"record\",
1451   \"fields\": [
1452     {
1453       \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\",
1454       \"type\": {
1455         \"type\": \"array\",
1456         \"items\": {
1457           \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio_record\",
1458           \"type\": \"record\",
1459           \"fields\": [
1460             {
1461               \"name\": \"id\",
1462               \"type\": \"string\"
1463             },
1464             {
1465               \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\",
1466               \"type\": \"int\"
1467             },
1468             {
1469               \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\",
1470               \"type\": {
1471                 \"type\": \"array\",
1472                 \"items\": {
1473                   \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members_record\",
1474                   \"type\": \"record\",
1475                   \"fields\": [
1476                     {
1477                       \"name\": \"mobile_DasH_country_DasH_code\",
1478                       \"type\": \"string\"
1479                     },
1480                     {
1481                       \"name\": \"mobile_DasH_network_DasH_code\",
1482                       \"type\": \"string\"
1483                     },
1484                     {
1485                       \"name\": \"slice_DasH_differentiator\",
1486                       \"type\": \"int\"
1487                     },
1488                     {
1489                       \"name\": \"slice_DasH_service_DasH_type\",
1490                       \"type\": \"int\"
1491                     }
1492                   ]
1493                 }
1494               }
1495             },
1496             {
1497               \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\",
1498               \"type\": \"int\"
1499             },
1500             {
1501               \"name\": \"user_DasH_label\",
1502               \"type\": \"string\"
1503             },
1504             {
1505               \"name\": \"resource_DasH_type\",
1506               \"type\": \"string\"
1507             },
1508             {
1509               \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\",
1510               \"type\": \"int\"
1511             },
1512             {
1513               \"name\": \"administrative_DasH_state\",
1514               \"type\": \"string\"
1515             }
1516           ]
1517         }
1518       }
1519     }
1520   ]
1521 }",
1522                           "key": {
1523                             "version": "0.0.1",
1524                             "name": "LinkFailureOutputSchema"
1525                           },
1526                           "schemaFlavour": "Avro"
1527                         }
1528                       },{
1529                         "key": {
1530                           "version": "0.0.1",
1531                           "name": "MessageSchema"
1532                         },
1533                         "value": {
1534                           "schemaDefinition": "java.lang.String",
1535                           "key": {
1536                             "version": "0.0.1",
1537                             "name": "MessageSchema"
1538                           },
1539                           "schemaFlavour": "Java"
1540                         }
1541                       },{
1542                         "key": {
1543                           "version": "0.0.1",
1544                           "name": "OduIdSchema"
1545                         },
1546                         "value": {
1547                           "schemaDefinition": "java.lang.String",
1548                           "key": {
1549                             "version": "0.0.1",
1550                             "name": "OduIdSchema"
1551                           },
1552                           "schemaFlavour": "Java"
1553                         }
1554                       },{
1555                         "key": {
1556                           "version": "0.0.1",
1557                           "name": "OruIdSchema"
1558                         },
1559                         "value": {
1560                           "schemaDefinition": "java.lang.String",
1561                           "key": {
1562                             "version": "0.0.1",
1563                             "name": "OruIdSchema"
1564                           },
1565                           "schemaFlavour": "Java"
1566                         }
1567                       }]
1568                   }
1569                 },
1570                 "tasks": {
1571                   "key": {
1572                     "version": "0.0.1",
1573                     "name": "LinkMonitorModel_Tasks"
1574                   },
1575                   "taskMap": {
1576                     "entry": [
1577                       {
1578                         "key": {
1579                           "version": "0.0.1",
1580                           "name": "CreateLinkClearedOutfieldsTask"
1581                         },
1582                         "value": {
1583                           "taskParameters": {
1584                             "entry": []
1585                           },
1586                           "key": {
1587                             "version": "0.0.1",
1588                             "name": "CreateLinkClearedOutfieldsTask"
1589                           },
1590                           "taskLogic": {
1591                             "key": "TaskLogic",
1592                             "logic": "/*
1593  * ============LICENSE_START=======================================================
1594  * Copyright (C) 2021 Nordix Foundation.
1595  * ================================================================================
1596  * Licensed under the Apache License, Version 2.0 (the \"License\");
1597  * you may not use this file except in compliance with the License.
1598  * You may obtain a copy of the License at
1599  *
1600  *      http://www.apache.org/licenses/LICENSE-2.0
1601  *
1602  * Unless required by applicable law or agreed to in writing, software
1603  * distributed under the License is distributed on an \"AS IS\" BASIS,
1604  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1605  * See the License for the specific language governing permissions and
1606  * limitations under the License.
1607  *
1608  * SPDX-License-Identifier: Apache-2.0
1609  * ============LICENSE_END=========================================================
1610  */
1611
1612 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1613
1614 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
1615 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
1616
1617 executor.outFields.put(\"OruId\", oruId);
1618
1619 executor.logger.info(executor.outFields);
1620
1621 true;",
1622                             "logicFlavour": "JAVASCRIPT"
1623                           },
1624                           "inputFields": {
1625                             "entry": [
1626                               {
1627                                 "key": "LinkFailureInput",
1628                                 "value": {
1629                                   "optional": false,
1630                                   "key": "LinkFailureInput",
1631                                   "fieldSchemaKey": {
1632                                     "version": "0.0.1",
1633                                     "name": "LinkFailureInputSchema"
1634                                   }
1635                                 }
1636                               }]
1637                           },
1638                           "outputFields": {
1639                             "entry": [
1640                               {
1641                                 "key": "OruId",
1642                                 "value": {
1643                                   "optional": false,
1644                                   "key": "OruId",
1645                                   "fieldSchemaKey": {
1646                                     "version": "0.0.1",
1647                                     "name": "OruIdSchema"
1648                                   }
1649                                 }
1650                               }]
1651                           },
1652                           "contextAlbumReference": []
1653                         }
1654                       },{
1655                         "key": {
1656                           "version": "0.0.1",
1657                           "name": "CreateLinkFailureOutfieldsTask"
1658                         },
1659                         "value": {
1660                           "taskParameters": {
1661                             "entry": []
1662                           },
1663                           "key": {
1664                             "version": "0.0.1",
1665                             "name": "CreateLinkFailureOutfieldsTask"
1666                           },
1667                           "taskLogic": {
1668                             "key": "TaskLogic",
1669                             "logic": "/*
1670  * ============LICENSE_START=======================================================
1671  * Copyright (C) 2021 Nordix Foundation.
1672  * ================================================================================
1673  * Licensed under the Apache License, Version 2.0 (the \"License\");
1674  * you may not use this file except in compliance with the License.
1675  * You may obtain a copy of the License at
1676  *
1677  *      http://www.apache.org/licenses/LICENSE-2.0
1678  *
1679  * Unless required by applicable law or agreed to in writing, software
1680  * distributed under the License is distributed on an \"AS IS\" BASIS,
1681  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1682  * See the License for the specific language governing permissions and
1683  * limitations under the License.
1684  *
1685  * SPDX-License-Identifier: Apache-2.0
1686  * ============LICENSE_END=========================================================
1687  */
1688
1689 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1690
1691 var returnValue = true;
1692 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
1693 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
1694 var oruOduMap = JSON.parse(executor.parameters.get(\"ORU-ODU-Map\"));
1695
1696 if (oruId in oruOduMap) {
1697     var oduId = oruOduMap[oruId];
1698     executor.outFields.put(\"OruId\", oruId);
1699     executor.outFields.put(\"OduId\", oduId);
1700     executor.logger.info(executor.outFields);
1701 } else {
1702     executor.message = \"No O-RU found in the config with this ID: \" + oruId;
1703     returnValue = false;
1704 }
1705
1706 returnValue;",
1707                             "logicFlavour": "JAVASCRIPT"
1708                           },
1709                           "inputFields": {
1710                             "entry": [
1711                               {
1712                                 "key": "LinkFailureInput",
1713                                 "value": {
1714                                   "optional": false,
1715                                   "key": "LinkFailureInput",
1716                                   "fieldSchemaKey": {
1717                                     "version": "0.0.1",
1718                                     "name": "LinkFailureInputSchema"
1719                                   }
1720                                 }
1721                               }]
1722                           },
1723                           "outputFields": {
1724                             "entry": [
1725                               {
1726                                 "key": "OduId",
1727                                 "value": {
1728                                   "optional": false,
1729                                   "key": "OduId",
1730                                   "fieldSchemaKey": {
1731                                     "version": "0.0.1",
1732                                     "name": "OduIdSchema"
1733                                   }
1734                                 }
1735                               },{
1736                                 "key": "OruId",
1737                                 "value": {
1738                                   "optional": false,
1739                                   "key": "OruId",
1740                                   "fieldSchemaKey": {
1741                                     "version": "0.0.1",
1742                                     "name": "OruIdSchema"
1743                                   }
1744                                 }
1745                               }]
1746                           },
1747                           "contextAlbumReference": []
1748                         }
1749                       },{
1750                         "key": {
1751                           "version": "0.0.1",
1752                           "name": "LinkClearedTask"
1753                         },
1754                         "value": {
1755                           "taskParameters": {
1756                             "entry": []
1757                           },
1758                           "key": {
1759                             "version": "0.0.1",
1760                             "name": "LinkClearedTask"
1761                           },
1762                           "taskLogic": {
1763                             "key": "TaskLogic",
1764                             "logic": "/*
1765  * ============LICENSE_START=======================================================
1766  * Copyright (C) 2021 Nordix Foundation.
1767  * ================================================================================
1768  * Licensed under the Apache License, Version 2.0 (the \"License\");
1769  * you may not use this file except in compliance with the License.
1770  * You may obtain a copy of the License at
1771  *
1772  *      http://www.apache.org/licenses/LICENSE-2.0
1773  *
1774  * Unless required by applicable law or agreed to in writing, software
1775  * distributed under the License is distributed on an \"AS IS\" BASIS,
1776  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1777  * See the License for the specific language governing permissions and
1778  * limitations under the License.
1779  *
1780  * SPDX-License-Identifier: Apache-2.0
1781  * ============LICENSE_END=========================================================
1782  */
1783
1784 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1785
1786 var oruId = executor.inFields.get(\"OruId\");
1787
1788 executor.outFields.put(\"message\", \"CLEARED link failure for O-RU: \" + oruId);
1789
1790 executor.logger.info(executor.outFields);
1791
1792 true;",
1793                             "logicFlavour": "JAVASCRIPT"
1794                           },
1795                           "inputFields": {
1796                             "entry": [
1797                               {
1798                                 "key": "OruId",
1799                                 "value": {
1800                                   "optional": false,
1801                                   "key": "OruId",
1802                                   "fieldSchemaKey": {
1803                                     "version": "0.0.1",
1804                                     "name": "OruIdSchema"
1805                                   }
1806                                 }
1807                               }]
1808                           },
1809                           "outputFields": {
1810                             "entry": [
1811                               {
1812                                 "key": "message",
1813                                 "value": {
1814                                   "optional": false,
1815                                   "key": "message",
1816                                   "fieldSchemaKey": {
1817                                     "version": "0.0.1",
1818                                     "name": "MessageSchema"
1819                                   }
1820                                 }
1821                               }]
1822                           },
1823                           "contextAlbumReference": []
1824                         }
1825                       },{
1826                         "key": {
1827                           "version": "0.0.1",
1828                           "name": "LinkFailureTask"
1829                         },
1830                         "value": {
1831                           "taskParameters": {
1832                             "entry": []
1833                           },
1834                           "key": {
1835                             "version": "0.0.1",
1836                             "name": "LinkFailureTask"
1837                           },
1838                           "taskLogic": {
1839                             "key": "TaskLogic",
1840                             "logic": "/*
1841  * ============LICENSE_START=======================================================
1842  * Copyright (C) 2021 Nordix Foundation.
1843  * ================================================================================
1844  * Licensed under the Apache License, Version 2.0 (the \"License\");
1845  * you may not use this file except in compliance with the License.
1846  * You may obtain a copy of the License at
1847  *
1848  *      http://www.apache.org/licenses/LICENSE-2.0
1849  *
1850  * Unless required by applicable law or agreed to in writing, software
1851  * distributed under the License is distributed on an \"AS IS\" BASIS,
1852  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1853  * See the License for the specific language governing permissions and
1854  * limitations under the License.
1855  *
1856  * SPDX-License-Identifier: Apache-2.0
1857  * ============LICENSE_END=========================================================
1858  */
1859
1860 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1861
1862 var linkFailureOutput = executor.subject.getOutFieldSchemaHelper(\"LinkFailureOutput\").createNewInstance();
1863
1864 var oruId = executor.inFields.get(\"OruId\");
1865 var oduId = executor.inFields.get(\"OduId\");
1866
1867 var unlockMessageArray = new java.util.ArrayList();
1868 for (var i = 0; i < 1; i++) {
1869     unlockMessageArray.add({
1870       \"id\":\"rrm-pol-2\",
1871       \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\":25,
1872       \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\":
1873           [
1874               {
1875                   \"mobile_DasH_country_DasH_code\":\"310\",
1876                   \"mobile_DasH_network_DasH_code\":\"150\",
1877                   \"slice_DasH_differentiator\":1,
1878                   \"slice_DasH_service_DasH_type\":1
1879               }
1880           ],
1881       \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\":15,
1882       \"user_DasH_label\":\"rrm-pol-2\",
1883       \"resource_DasH_type\":\"prb\",
1884       \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\":20,
1885       \"administrative_DasH_state\":\"unlocked\"
1886   });
1887 }
1888
1889 linkFailureOutput.put(\"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\", unlockMessageArray);
1890 executor.outFields.put(\"LinkFailureOutput\", linkFailureOutput.toString());
1891
1892 executor.getExecutionProperties().setProperty(\"OduId\", oduId);
1893 executor.getExecutionProperties().setProperty(\"OruId\", oruId);
1894
1895 executor.logger.info(executor.outFields);
1896
1897 true;",
1898                             "logicFlavour": "JAVASCRIPT"
1899                           },
1900                           "inputFields": {
1901                             "entry": [
1902                               {
1903                                 "key": "OduId",
1904                                 "value": {
1905                                   "optional": false,
1906                                   "key": "OduId",
1907                                   "fieldSchemaKey": {
1908                                     "version": "0.0.1",
1909                                     "name": "OduIdSchema"
1910                                   }
1911                                 }
1912                               },{
1913                                 "key": "OruId",
1914                                 "value": {
1915                                   "optional": false,
1916                                   "key": "OruId",
1917                                   "fieldSchemaKey": {
1918                                     "version": "0.0.1",
1919                                     "name": "OruIdSchema"
1920                                   }
1921                                 }
1922                               }]
1923                           },
1924                           "outputFields": {
1925                             "entry": [
1926                               {
1927                                 "key": "LinkFailureOutput",
1928                                 "value": {
1929                                   "optional": false,
1930                                   "key": "LinkFailureOutput",
1931                                   "fieldSchemaKey": {
1932                                     "version": "0.0.1",
1933                                     "name": "LinkFailureOutputSchema"
1934                                   }
1935                                 }
1936                               }]
1937                           },
1938                           "contextAlbumReference": []
1939                         }
1940                       },{
1941                         "key": {
1942                           "version": "0.0.1",
1943                           "name": "NoPolicyDefinedTask"
1944                         },
1945                         "value": {
1946                           "taskParameters": {
1947                             "entry": []
1948                           },
1949                           "key": {
1950                             "version": "0.0.1",
1951                             "name": "NoPolicyDefinedTask"
1952                           },
1953                           "taskLogic": {
1954                             "key": "TaskLogic",
1955                             "logic": "/*
1956  * ============LICENSE_START=======================================================
1957  * Copyright (C) 2021 Nordix Foundation.
1958  * ================================================================================
1959  * Licensed under the Apache License, Version 2.0 (the \"License\");
1960  * you may not use this file except in compliance with the License.
1961  * You may obtain a copy of the License at
1962  *
1963  *      http://www.apache.org/licenses/LICENSE-2.0
1964  *
1965  * Unless required by applicable law or agreed to in writing, software
1966  * distributed under the License is distributed on an \"AS IS\" BASIS,
1967  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1968  * See the License for the specific language governing permissions and
1969  * limitations under the License.
1970  *
1971  * SPDX-License-Identifier: Apache-2.0
1972  * ============LICENSE_END=========================================================
1973  */
1974
1975 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1976
1977 executor.outFields.put(\"message\", \"No policy defined for this event\");
1978
1979 executor.logger.info(executor.outFields);
1980
1981 true;",
1982                             "logicFlavour": "JAVASCRIPT"
1983                           },
1984                           "inputFields": {
1985                             "entry": [
1986                               {
1987                                 "key": "LinkFailureInput",
1988                                 "value": {
1989                                   "optional": false,
1990                                   "key": "LinkFailureInput",
1991                                   "fieldSchemaKey": {
1992                                     "version": "0.0.1",
1993                                     "name": "LinkFailureInputSchema"
1994                                   }
1995                                 }
1996                               }]
1997                           },
1998                           "outputFields": {
1999                             "entry": [
2000                               {
2001                                 "key": "message",
2002                                 "value": {
2003                                   "optional": false,
2004                                   "key": "message",
2005                                   "fieldSchemaKey": {
2006                                     "version": "0.0.1",
2007                                     "name": "MessageSchema"
2008                                   }
2009                                 }
2010                               }]
2011                           },
2012                           "contextAlbumReference": []
2013                         }
2014                       }]
2015                   }
2016                 }
2017               }
2018             },
2019             "version": "0.0.1",
2020             "id": 101,
2021             "instanceCount": 1,
2022             "name": "LinkMonitorApexEngine",
2023             "engineParameters": {
2024               "taskParameters": [
2025                 {
2026                   "key": "ORU-ODU-Map",
2027                   "value": "{
2028    \"o-ru-11211\": \"o-du-1121\",
2029    \"o-ru-11223\": \"o-du-1122\",
2030    \"o-ru-11222\": \"o-du-1122\",
2031    \"o-ru-11221\": \"o-du-1122\"
2032 }"
2033                 }],
2034               "contextParameters": {
2035                 "schemaParameters": {
2036                   "Avro": {
2037                     "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
2038                   }
2039                 },
2040                 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters"
2041               },
2042               "executorParameters": {
2043                 "JAVASCRIPT": {
2044                   "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
2045                 }
2046               }
2047             },
2048             "deploymentPort": 12345
2049           }
2050         },
2051         "metadata": {
2052           "policy-id": "operational.apex.linkmonitor",
2053           "policy-version": "1.0.0"
2054         },
2055         "description": null,
2056         "version": "1.0.0",
2057         "type_version": "1.0.0",
2058         "defined_name": "operational.apex.linkmonitor",
2059         "defined_version": "1.0.0",
2060         "type": "onap.policies.controlloop.operational.common.Apex",
2061         "name": "operational.apex.linkmonitor"
2062       }
2063     },
2064     "policies": [
2065       {
2066         "operational.apex.linkmonitor": {
2067           "type_identifier": {
2068             "version": "1.0.0",
2069             "name": "onap.policies.controlloop.operational.common.Apex"
2070           },
2071           "key": {
2072             "version": "1.0.0",
2073             "name": "operational.apex.linkmonitor"
2074           },
2075           "derived_from": null,
2076           "identifier": {
2077             "version": "1.0.0",
2078             "name": "operational.apex.linkmonitor"
2079           },
2080           "properties": {
2081             "eventInputParameters": {
2082               "DMaaPConsumer": {
2083                 "carrierTechnologyParameters": {
2084                   "parameters": {
2085                     "url": "http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT/{{dmaapGroup}}/{{dmaapUser}}?timeout=15000&limit=100"
2086                   },
2087                   "carrierTechnology": "RESTCLIENT",
2088                   "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
2089                 },
2090                 "eventName": "LinkFailureInputEvent",
2091                 "eventProtocolParameters": {
2092                   "parameters": {
2093                     "versionAlias": "version",
2094                     "pojoField": "LinkFailureInput"
2095                   },
2096                   "eventProtocol": "JSON"
2097                 }
2098               }
2099             },
2100             "eventOutputParameters": {
2101               "RestProducer": {
2102                 "eventNameFilter": "LinkFailureOutputEvent",
2103                 "carrierTechnologyParameters": {
2104                   "parameters": {
2105                     "url": "http://sdnc-oam:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node={OduId}/yang-ext:mount/o-ran-sc-du-hello-world:network-function/distributed-unit-functions={OduId}/radio-resource-management-policy-ratio=rrm-pol-2",
2106                     "httpMethod": "PUT",
2107                     "httpHeaders": [
2108                       [
2109                         "Authorization","Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="]]
2110                   },
2111                   "carrierTechnology": "RESTCLIENT",
2112                   "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
2113                 },
2114                 "eventProtocolParameters": {
2115                   "parameters": {
2116                     "pojoField": "LinkFailureOutput"
2117                   },
2118                   "eventProtocol": "JSON"
2119                 }
2120               },
2121               "StdOutProducer": {
2122                 "eventNameFilter": "ApexMessageOutputEvent",
2123                 "carrierTechnologyParameters": {
2124                   "parameters": {
2125                     "standardIo": true
2126                   },
2127                   "carrierTechnology": "FILE"
2128                 },
2129                 "eventProtocolParameters": {
2130                   "parameters": {
2131                     "pojoField": "message"
2132                   },
2133                   "eventProtocol": "JSON"
2134                 }
2135               }
2136             },
2137             "engineServiceParameters": {
2138               "policy_type_impl": {
2139                 "apexPolicyModel": {
2140                   "key": {
2141                     "version": "0.0.1",
2142                     "name": "LinkMonitorModel"
2143                   },
2144                   "policies": {
2145                     "key": {
2146                       "version": "0.0.1",
2147                       "name": "LinkMonitorModel_Policies"
2148                     },
2149                     "policyMap": {
2150                       "entry": [
2151                         {
2152                           "key": {
2153                             "version": "0.0.1",
2154                             "name": "LinkMonitorPolicy"
2155                           },
2156                           "value": {
2157                             "template": "Freestyle",
2158                             "policyKey": {
2159                               "version": "0.0.1",
2160                               "name": "LinkMonitorPolicy"
2161                             },
2162                             "state": {
2163                               "entry": [
2164                                 {
2165                                   "key": "LinkClearedState",
2166                                   "value": {
2167                                     "defaultTask": {
2168                                       "version": "0.0.1",
2169                                       "name": "LinkClearedTask"
2170                                     },
2171                                     "stateOutputs": {
2172                                       "entry": [
2173                                         {
2174                                           "key": "LinkClearedLogic_Output_Direct",
2175                                           "value": {
2176                                             "key": {
2177                                               "parentKeyName": "LinkMonitorPolicy",
2178                                               "parentKeyVersion": "0.0.1",
2179                                               "parentLocalName": "LinkClearedState",
2180                                               "localName": "LinkClearedLogic_Output_Direct"
2181                                             },
2182                                             "outgoingEvent": {
2183                                               "version": "0.0.1",
2184                                               "name": "ApexMessageOutputEvent"
2185                                             },
2186                                             "nextState": {
2187                                               "parentKeyName": "NULL",
2188                                               "parentKeyVersion": "0.0.0",
2189                                               "parentLocalName": "NULL",
2190                                               "localName": "NULL"
2191                                             }
2192                                           }
2193                                         }]
2194                                     },
2195                                     "taskReferences": {
2196                                       "entry": [
2197                                         {
2198                                           "key": {
2199                                             "version": "0.0.1",
2200                                             "name": "LinkClearedTask"
2201                                           },
2202                                           "value": {
2203                                             "key": {
2204                                               "parentKeyName": "LinkMonitorPolicy",
2205                                               "parentKeyVersion": "0.0.1",
2206                                               "parentLocalName": "LinkClearedState",
2207                                               "localName": "LinkClearedTask"
2208                                             },
2209                                             "output": {
2210                                               "parentKeyName": "LinkMonitorPolicy",
2211                                               "parentKeyVersion": "0.0.1",
2212                                               "parentLocalName": "LinkClearedState",
2213                                               "localName": "LinkClearedLogic_Output_Direct"
2214                                             },
2215                                             "outputType": "DIRECT"
2216                                           }
2217                                         }]
2218                                     },
2219                                     "stateKey": {
2220                                       "parentKeyName": "LinkMonitorPolicy",
2221                                       "parentKeyVersion": "0.0.1",
2222                                       "parentLocalName": "NULL",
2223                                       "localName": "LinkClearedState"
2224                                     },
2225                                     "contextAlbumReference": [],
2226                                     "stateFinalizerLogicMap": {
2227                                       "entry": []
2228                                     },
2229                                     "taskSelectionLogic": {
2230                                       "key": "NULL",
2231                                       "logic": "",
2232                                       "logicFlavour": "UNDEFINED"
2233                                     },
2234                                     "trigger": {
2235                                       "version": "0.0.1",
2236                                       "name": "CreateLinkClearedOutfieldsEvent"
2237                                     }
2238                                   }
2239                                 },{
2240                                   "key": "LinkFailureOrClearedState",
2241                                   "value": {
2242                                     "defaultTask": {
2243                                       "version": "0.0.1",
2244                                       "name": "NoPolicyDefinedTask"
2245                                     },
2246                                     "stateOutputs": {
2247                                       "entry": [
2248                                         {
2249                                           "key": "CreateLinkClearedOutfieldsLogic_Output_Direct",
2250                                           "value": {
2251                                             "key": {
2252                                               "parentKeyName": "LinkMonitorPolicy",
2253                                               "parentKeyVersion": "0.0.1",
2254                                               "parentLocalName": "LinkFailureOrClearedState",
2255                                               "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
2256                                             },
2257                                             "outgoingEvent": {
2258                                               "version": "0.0.1",
2259                                               "name": "CreateLinkClearedOutfieldsEvent"
2260                                             },
2261                                             "nextState": {
2262                                               "parentKeyName": "LinkMonitorPolicy",
2263                                               "parentKeyVersion": "0.0.1",
2264                                               "parentLocalName": "NULL",
2265                                               "localName": "LinkClearedState"
2266                                             }
2267                                           }
2268                                         },{
2269                                           "key": "CreateLinkFailureOutfieldsLogic_Output_Direct",
2270                                           "value": {
2271                                             "key": {
2272                                               "parentKeyName": "LinkMonitorPolicy",
2273                                               "parentKeyVersion": "0.0.1",
2274                                               "parentLocalName": "LinkFailureOrClearedState",
2275                                               "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
2276                                             },
2277                                             "outgoingEvent": {
2278                                               "version": "0.0.1",
2279                                               "name": "CreateLinkFailureOutfieldsEvent"
2280                                             },
2281                                             "nextState": {
2282                                               "parentKeyName": "LinkMonitorPolicy",
2283                                               "parentKeyVersion": "0.0.1",
2284                                               "parentLocalName": "NULL",
2285                                               "localName": "LinkFailureState"
2286                                             }
2287                                           }
2288                                         },{
2289                                           "key": "NoPolicyDefinedLogic_Output_Direct",
2290                                           "value": {
2291                                             "key": {
2292                                               "parentKeyName": "LinkMonitorPolicy",
2293                                               "parentKeyVersion": "0.0.1",
2294                                               "parentLocalName": "LinkFailureOrClearedState",
2295                                               "localName": "NoPolicyDefinedLogic_Output_Direct"
2296                                             },
2297                                             "outgoingEvent": {
2298                                               "version": "0.0.1",
2299                                               "name": "ApexMessageOutputEvent"
2300                                             },
2301                                             "nextState": {
2302                                               "parentKeyName": "NULL",
2303                                               "parentKeyVersion": "0.0.0",
2304                                               "parentLocalName": "NULL",
2305                                               "localName": "NULL"
2306                                             }
2307                                           }
2308                                         }]
2309                                     },
2310                                     "taskReferences": {
2311                                       "entry": [
2312                                         {
2313                                           "key": {
2314                                             "version": "0.0.1",
2315                                             "name": "CreateLinkClearedOutfieldsTask"
2316                                           },
2317                                           "value": {
2318                                             "key": {
2319                                               "parentKeyName": "LinkMonitorPolicy",
2320                                               "parentKeyVersion": "0.0.1",
2321                                               "parentLocalName": "LinkFailureOrClearedState",
2322                                               "localName": "CreateLinkClearedOutfieldsTask"
2323                                             },
2324                                             "output": {
2325                                               "parentKeyName": "LinkMonitorPolicy",
2326                                               "parentKeyVersion": "0.0.1",
2327                                               "parentLocalName": "LinkFailureOrClearedState",
2328                                               "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
2329                                             },
2330                                             "outputType": "DIRECT"
2331                                           }
2332                                         },{
2333                                           "key": {
2334                                             "version": "0.0.1",
2335                                             "name": "CreateLinkFailureOutfieldsTask"
2336                                           },
2337                                           "value": {
2338                                             "key": {
2339                                               "parentKeyName": "LinkMonitorPolicy",
2340                                               "parentKeyVersion": "0.0.1",
2341                                               "parentLocalName": "LinkFailureOrClearedState",
2342                                               "localName": "CreateLinkFailureOutfieldsTask"
2343                                             },
2344                                             "output": {
2345                                               "parentKeyName": "LinkMonitorPolicy",
2346                                               "parentKeyVersion": "0.0.1",
2347                                               "parentLocalName": "LinkFailureOrClearedState",
2348                                               "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
2349                                             },
2350                                             "outputType": "DIRECT"
2351                                           }
2352                                         },{
2353                                           "key": {
2354                                             "version": "0.0.1",
2355                                             "name": "NoPolicyDefinedTask"
2356                                           },
2357                                           "value": {
2358                                             "key": {
2359                                               "parentKeyName": "LinkMonitorPolicy",
2360                                               "parentKeyVersion": "0.0.1",
2361                                               "parentLocalName": "LinkFailureOrClearedState",
2362                                               "localName": "NoPolicyDefinedTask"
2363                                             },
2364                                             "output": {
2365                                               "parentKeyName": "LinkMonitorPolicy",
2366                                               "parentKeyVersion": "0.0.1",
2367                                               "parentLocalName": "LinkFailureOrClearedState",
2368                                               "localName": "NoPolicyDefinedLogic_Output_Direct"
2369                                             },
2370                                             "outputType": "DIRECT"
2371                                           }
2372                                         }]
2373                                     },
2374                                     "stateKey": {
2375                                       "parentKeyName": "LinkMonitorPolicy",
2376                                       "parentKeyVersion": "0.0.1",
2377                                       "parentLocalName": "NULL",
2378                                       "localName": "LinkFailureOrClearedState"
2379                                     },
2380                                     "contextAlbumReference": [],
2381                                     "stateFinalizerLogicMap": {
2382                                       "entry": []
2383                                     },
2384                                     "taskSelectionLogic": {
2385                                       "key": "TaskSelectionLogic",
2386                                       "logic": "/*
2387  * ============LICENSE_START=======================================================
2388  * Copyright (C) 2021 Nordix Foundation.
2389  * ================================================================================
2390  * Licensed under the Apache License, Version 2.0 (the \"License\");
2391  * you may not use this file except in compliance with the License.
2392  * You may obtain a copy of the License at
2393  *
2394  *      http://www.apache.org/licenses/LICENSE-2.0
2395  *
2396  * Unless required by applicable law or agreed to in writing, software
2397  * distributed under the License is distributed on an \"AS IS\" BASIS,
2398  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2399  * See the License for the specific language governing permissions and
2400  * limitations under the License.
2401  *
2402  * SPDX-License-Identifier: Apache-2.0
2403  * ============LICENSE_END=========================================================
2404  */
2405
2406 executor.logger.info(\"Task Selection Execution: '\"+executor.subject.id+
2407     \"'. InputFields: '\"+executor.inFields+\"'\");
2408
2409 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
2410 var commonEventHeader = linkFailureInput.get(\"event\").get(\"commonEventHeader\");
2411 var domain = commonEventHeader.get(\"domain\");
2412
2413 taskFailure = executor.subject.getTaskKey(\"CreateLinkFailureOutfieldsTask\");
2414 taskCleared = executor.subject.getTaskKey(\"CreateLinkClearedOutfieldsTask\");
2415 taskDefault = executor.subject.getDefaultTaskKey();
2416
2417 if (domain == \"fault\") {
2418     var faultFields = linkFailureInput.get(\"event\").get(\"faultFields\");
2419     var alarmCondition = faultFields.get(\"alarmCondition\");
2420     var eventSeverity = faultFields.get(\"eventSeverity\");
2421     if (alarmCondition == \"28\" && eventSeverity != \"NORMAL\") {
2422         taskFailure.copyTo(executor.selectedTask);
2423     } else if (alarmCondition == \"28\" && eventSeverity == \"NORMAL\") {
2424         taskCleared.copyTo(executor.selectedTask);
2425     } else {
2426         taskDefault.copyTo(executor.selectedTask);
2427     }
2428 } else {
2429     taskDefault.copyTo(executor.selectedTask);
2430 }
2431
2432 true;",
2433                                       "logicFlavour": "JAVASCRIPT"
2434                                     },
2435                                     "trigger": {
2436                                       "version": "0.0.1",
2437                                       "name": "LinkFailureInputEvent"
2438                                     }
2439                                   }
2440                                 },{
2441                                   "key": "LinkFailureState",
2442                                   "value": {
2443                                     "defaultTask": {
2444                                       "version": "0.0.1",
2445                                       "name": "LinkFailureTask"
2446                                     },
2447                                     "stateOutputs": {
2448                                       "entry": [
2449                                         {
2450                                           "key": "LinkFailureLogic_Output_Direct",
2451                                           "value": {
2452                                             "key": {
2453                                               "parentKeyName": "LinkMonitorPolicy",
2454                                               "parentKeyVersion": "0.0.1",
2455                                               "parentLocalName": "LinkFailureState",
2456                                               "localName": "LinkFailureLogic_Output_Direct"
2457                                             },
2458                                             "outgoingEvent": {
2459                                               "version": "0.0.1",
2460                                               "name": "LinkFailureOutputEvent"
2461                                             },
2462                                             "nextState": {
2463                                               "parentKeyName": "NULL",
2464                                               "parentKeyVersion": "0.0.0",
2465                                               "parentLocalName": "NULL",
2466                                               "localName": "NULL"
2467                                             }
2468                                           }
2469                                         }]
2470                                     },
2471                                     "taskReferences": {
2472                                       "entry": [
2473                                         {
2474                                           "key": {
2475                                             "version": "0.0.1",
2476                                             "name": "LinkFailureTask"
2477                                           },
2478                                           "value": {
2479                                             "key": {
2480                                               "parentKeyName": "LinkMonitorPolicy",
2481                                               "parentKeyVersion": "0.0.1",
2482                                               "parentLocalName": "LinkFailureState",
2483                                               "localName": "LinkFailureTask"
2484                                             },
2485                                             "output": {
2486                                               "parentKeyName": "LinkMonitorPolicy",
2487                                               "parentKeyVersion": "0.0.1",
2488                                               "parentLocalName": "LinkFailureState",
2489                                               "localName": "LinkFailureLogic_Output_Direct"
2490                                             },
2491                                             "outputType": "DIRECT"
2492                                           }
2493                                         }]
2494                                     },
2495                                     "stateKey": {
2496                                       "parentKeyName": "LinkMonitorPolicy",
2497                                       "parentKeyVersion": "0.0.1",
2498                                       "parentLocalName": "NULL",
2499                                       "localName": "LinkFailureState"
2500                                     },
2501                                     "contextAlbumReference": [],
2502                                     "stateFinalizerLogicMap": {
2503                                       "entry": []
2504                                     },
2505                                     "taskSelectionLogic": {
2506                                       "key": "NULL",
2507                                       "logic": "",
2508                                       "logicFlavour": "UNDEFINED"
2509                                     },
2510                                     "trigger": {
2511                                       "version": "0.0.1",
2512                                       "name": "CreateLinkFailureOutfieldsEvent"
2513                                     }
2514                                   }
2515                                 }]
2516                             },
2517                             "firstState": "LinkFailureOrClearedState"
2518                           }
2519                         }]
2520                     }
2521                   },
2522                   "events": {
2523                     "key": {
2524                       "version": "0.0.1",
2525                       "name": "LinkMonitorModel_Events"
2526                     },
2527                     "eventMap": {
2528                       "entry": [
2529                         {
2530                           "key": {
2531                             "version": "0.0.1",
2532                             "name": "ApexMessageOutputEvent"
2533                           },
2534                           "value": {
2535                             "key": {
2536                               "version": "0.0.1",
2537                               "name": "ApexMessageOutputEvent"
2538                             },
2539                             "target": "APEX",
2540                             "source": "APEX",
2541                             "nameSpace": "org.onap.policy.apex.auth.clieditor",
2542                             "parameter": {
2543                               "entry": [
2544                                 {
2545                                   "key": "message",
2546                                   "value": {
2547                                     "optional": false,
2548                                     "key": "message",
2549                                     "fieldSchemaKey": {
2550                                       "version": "0.0.1",
2551                                       "name": "MessageSchema"
2552                                     }
2553                                   }
2554                                 }]
2555                             }
2556                           }
2557                         },{
2558                           "key": {
2559                             "version": "0.0.1",
2560                             "name": "CreateLinkClearedOutfieldsEvent"
2561                           },
2562                           "value": {
2563                             "key": {
2564                               "version": "0.0.1",
2565                               "name": "CreateLinkClearedOutfieldsEvent"
2566                             },
2567                             "target": "APEX",
2568                             "source": "APEX",
2569                             "nameSpace": "org.onap.policy.apex.auth.clieditor",
2570                             "parameter": {
2571                               "entry": [
2572                                 {
2573                                   "key": "OruId",
2574                                   "value": {
2575                                     "optional": false,
2576                                     "key": "OruId",
2577                                     "fieldSchemaKey": {
2578                                       "version": "0.0.1",
2579                                       "name": "OruIdSchema"
2580                                     }
2581                                   }
2582                                 }]
2583                             }
2584                           }
2585                         },{
2586                           "key": {
2587                             "version": "0.0.1",
2588                             "name": "CreateLinkFailureOutfieldsEvent"
2589                           },
2590                           "value": {
2591                             "key": {
2592                               "version": "0.0.1",
2593                               "name": "CreateLinkFailureOutfieldsEvent"
2594                             },
2595                             "target": "APEX",
2596                             "source": "APEX",
2597                             "nameSpace": "org.onap.policy.apex.auth.clieditor",
2598                             "parameter": {
2599                               "entry": [
2600                                 {
2601                                   "key": "OduId",
2602                                   "value": {
2603                                     "optional": false,
2604                                     "key": "OduId",
2605                                     "fieldSchemaKey": {
2606                                       "version": "0.0.1",
2607                                       "name": "OduIdSchema"
2608                                     }
2609                                   }
2610                                 },{
2611                                   "key": "OruId",
2612                                   "value": {
2613                                     "optional": false,
2614                                     "key": "OruId",
2615                                     "fieldSchemaKey": {
2616                                       "version": "0.0.1",
2617                                       "name": "OruIdSchema"
2618                                     }
2619                                   }
2620                                 }]
2621                             }
2622                           }
2623                         },{
2624                           "key": {
2625                             "version": "0.0.1",
2626                             "name": "LinkFailureInputEvent"
2627                           },
2628                           "value": {
2629                             "key": {
2630                               "version": "0.0.1",
2631                               "name": "LinkFailureInputEvent"
2632                             },
2633                             "target": "APEX",
2634                             "source": "DMAAP",
2635                             "nameSpace": "org.onap.policy.apex.auth.clieditor",
2636                             "parameter": {
2637                               "entry": [
2638                                 {
2639                                   "key": "LinkFailureInput",
2640                                   "value": {
2641                                     "optional": false,
2642                                     "key": "LinkFailureInput",
2643                                     "fieldSchemaKey": {
2644                                       "version": "0.0.1",
2645                                       "name": "LinkFailureInputSchema"
2646                                     }
2647                                   }
2648                                 }]
2649                             }
2650                           }
2651                         },{
2652                           "key": {
2653                             "version": "0.0.1",
2654                             "name": "LinkFailureOutputEvent"
2655                           },
2656                           "value": {
2657                             "key": {
2658                               "version": "0.0.1",
2659                               "name": "LinkFailureOutputEvent"
2660                             },
2661                             "target": "OAM",
2662                             "source": "APEX",
2663                             "nameSpace": "org.onap.policy.apex.auth.clieditor",
2664                             "parameter": {
2665                               "entry": [
2666                                 {
2667                                   "key": "LinkFailureOutput",
2668                                   "value": {
2669                                     "optional": false,
2670                                     "key": "LinkFailureOutput",
2671                                     "fieldSchemaKey": {
2672                                       "version": "0.0.1",
2673                                       "name": "LinkFailureOutputSchema"
2674                                     }
2675                                   }
2676                                 }]
2677                             }
2678                           }
2679                         }]
2680                     }
2681                   },
2682                   "keyInformation": {
2683                     "key": {
2684                       "version": "0.0.1",
2685                       "name": "LinkMonitorModel_KeyInfo"
2686                     },
2687                     "keyInfoMap": {
2688                       "entry": [
2689                         {
2690                           "key": {
2691                             "version": "0.0.1",
2692                             "name": "ApexMessageOutputEvent"
2693                           },
2694                           "value": {
2695                             "key": {
2696                               "version": "0.0.1",
2697                               "name": "ApexMessageOutputEvent"
2698                             },
2699                             "description": "Generated description for concept referred to by key \"ApexMessageOutputEvent:0.0.1\"",
2700                             "UUID": "cca47d74-7754-4a61-b163-ca31f66b157b"
2701                           }
2702                         },{
2703                           "key": {
2704                             "version": "0.0.1",
2705                             "name": "CreateLinkClearedOutfieldsEvent"
2706                           },
2707                           "value": {
2708                             "key": {
2709                               "version": "0.0.1",
2710                               "name": "CreateLinkClearedOutfieldsEvent"
2711                             },
2712                             "description": "Generated description for concept referred to by key \"CreateLinkClearedOutfieldsEvent:0.0.1\"",
2713                             "UUID": "a295d6a3-1b73-387e-abba-b41e9b608802"
2714                           }
2715                         },{
2716                           "key": {
2717                             "version": "0.0.1",
2718                             "name": "CreateLinkClearedOutfieldsTask"
2719                           },
2720                           "value": {
2721                             "key": {
2722                               "version": "0.0.1",
2723                               "name": "CreateLinkClearedOutfieldsTask"
2724                             },
2725                             "description": "This task creates the output fields when link failure is cleared.",
2726                             "UUID": "fd594e88-411d-4a94-b2be-697b3a0d7adf"
2727                           }
2728                         },{
2729                           "key": {
2730                             "version": "0.0.1",
2731                             "name": "CreateLinkFailureOutfieldsEvent"
2732                           },
2733                           "value": {
2734                             "key": {
2735                               "version": "0.0.1",
2736                               "name": "CreateLinkFailureOutfieldsEvent"
2737                             },
2738                             "description": "Generated description for concept referred to by key \"CreateLinkFailureOutfieldsEvent:0.0.1\"",
2739                             "UUID": "02be2b5d-45b7-3c54-ae54-97f2b5c30125"
2740                           }
2741                         },{
2742                           "key": {
2743                             "version": "0.0.1",
2744                             "name": "CreateLinkFailureOutfieldsTask"
2745                           },
2746                           "value": {
2747                             "key": {
2748                               "version": "0.0.1",
2749                               "name": "CreateLinkFailureOutfieldsTask"
2750                             },
2751                             "description": "This task the output fields when link failure is detected.",
2752                             "UUID": "ac3d9842-80af-4a98-951c-bd79a431c613"
2753                           }
2754                         },{
2755                           "key": {
2756                             "version": "0.0.1",
2757                             "name": "LinkClearedTask"
2758                           },
2759                           "value": {
2760                             "key": {
2761                               "version": "0.0.1",
2762                               "name": "LinkClearedTask"
2763                             },
2764                             "description": "This task sends a message to the output when link failure is cleared.",
2765                             "UUID": "eecfde90-896c-4343-8f9c-2603ced94e2d"
2766                           }
2767                         },{
2768                           "key": {
2769                             "version": "0.0.1",
2770                             "name": "LinkFailureInputEvent"
2771                           },
2772                           "value": {
2773                             "key": {
2774                               "version": "0.0.1",
2775                               "name": "LinkFailureInputEvent"
2776                             },
2777                             "description": "Generated description for concept referred to by key \"LinkFailureInputEvent:0.0.1\"",
2778                             "UUID": "c4500941-3f98-4080-a9cc-5b9753ed050b"
2779                           }
2780                         },{
2781                           "key": {
2782                             "version": "0.0.1",
2783                             "name": "LinkFailureInputSchema"
2784                           },
2785                           "value": {
2786                             "key": {
2787                               "version": "0.0.1",
2788                               "name": "LinkFailureInputSchema"
2789                             },
2790                             "description": "Generated description for concept referred to by key \"LinkFailureInputSchema:0.0.1\"",
2791                             "UUID": "3b3974fc-3012-3b02-9f33-c9d8eefe4dc1"
2792                           }
2793                         },{
2794                           "key": {
2795                             "version": "0.0.1",
2796                             "name": "LinkFailureOutputEvent"
2797                           },
2798                           "value": {
2799                             "key": {
2800                               "version": "0.0.1",
2801                               "name": "LinkFailureOutputEvent"
2802                             },
2803                             "description": "Generated description for concept referred to by key \"LinkFailureOutputEvent:0.0.1\"",
2804                             "UUID": "4f04aa98-e917-4f4a-882a-c75ba5a99374"
2805                           }
2806                         },{
2807                           "key": {
2808                             "version": "0.0.1",
2809                             "name": "LinkFailureOutputSchema"
2810                           },
2811                           "value": {
2812                             "key": {
2813                               "version": "0.0.1",
2814                               "name": "LinkFailureOutputSchema"
2815                             },
2816                             "description": "Generated description for concept referred to by key \"LinkFailureOutputSchema:0.0.1\"",
2817                             "UUID": "2d1a7f6e-eb9a-3984-be1f-283d98111b84"
2818                           }
2819                         },{
2820                           "key": {
2821                             "version": "0.0.1",
2822                             "name": "LinkFailureTask"
2823                           },
2824                           "value": {
2825                             "key": {
2826                               "version": "0.0.1",
2827                               "name": "LinkFailureTask"
2828                             },
2829                             "description": "This task updates the config for O-RU when link failure is detected.",
2830                             "UUID": "3351b0f4-cf06-4fa2-8823-edf67bd30223"
2831                           }
2832                         },{
2833                           "key": {
2834                             "version": "0.0.1",
2835                             "name": "LinkMonitorModel"
2836                           },
2837                           "value": {
2838                             "key": {
2839                               "version": "0.0.1",
2840                               "name": "LinkMonitorModel"
2841                             },
2842                             "description": "This is the Apex Policy Model for link monitoring.",
2843                             "UUID": "540226fb-55ee-4f0e-a444-983a0494818e"
2844                           }
2845                         },{
2846                           "key": {
2847                             "version": "0.0.1",
2848                             "name": "LinkMonitorModel_Events"
2849                           },
2850                           "value": {
2851                             "key": {
2852                               "version": "0.0.1",
2853                               "name": "LinkMonitorModel_Events"
2854                             },
2855                             "description": "Generated description for concept referred to by key \"LinkMonitorModel_Events:0.0.1\"",
2856                             "UUID": "27ad3e7e-fe3b-3bd6-9081-718705c2bcea"
2857                           }
2858                         },{
2859                           "key": {
2860                             "version": "0.0.1",
2861                             "name": "LinkMonitorModel_KeyInfo"
2862                           },
2863                           "value": {
2864                             "key": {
2865                               "version": "0.0.1",
2866                               "name": "LinkMonitorModel_KeyInfo"
2867                             },
2868                             "description": "Generated description for concept referred to by key \"LinkMonitorModel_KeyInfo:0.0.1\"",
2869                             "UUID": "ea0b5f58-eefd-358a-9660-840c640bf981"
2870                           }
2871                         },{
2872                           "key": {
2873                             "version": "0.0.1",
2874                             "name": "LinkMonitorModel_Policies"
2875                           },
2876                           "value": {
2877                             "key": {
2878                               "version": "0.0.1",
2879                               "name": "LinkMonitorModel_Policies"
2880                             },
2881                             "description": "Generated description for concept referred to by key \"LinkMonitorModel_Policies:0.0.1\"",
2882                             "UUID": "ee9e0b0f-2b7d-3ab7-9a98-c5ec05ed823d"
2883                           }
2884                         },{
2885                           "key": {
2886                             "version": "0.0.1",
2887                             "name": "LinkMonitorModel_Schemas"
2888                           },
2889                           "value": {
2890                             "key": {
2891                               "version": "0.0.1",
2892                               "name": "LinkMonitorModel_Schemas"
2893                             },
2894                             "description": "Generated description for concept referred to by key \"LinkMonitorModel_Schemas:0.0.1\"",
2895                             "UUID": "fa5f9b8f-796c-3c70-84e9-5140c958c4bb"
2896                           }
2897                         },{
2898                           "key": {
2899                             "version": "0.0.1",
2900                             "name": "LinkMonitorModel_Tasks"
2901                           },
2902                           "value": {
2903                             "key": {
2904                               "version": "0.0.1",
2905                               "name": "LinkMonitorModel_Tasks"
2906                             },
2907                             "description": "Generated description for concept referred to by key \"LinkMonitorModel_Tasks:0.0.1\"",
2908                             "UUID": "eec592f7-69d5-39a9-981a-e552f787ed01"
2909                           }
2910                         },{
2911                           "key": {
2912                             "version": "0.0.1",
2913                             "name": "LinkMonitorPolicy"
2914                           },
2915                           "value": {
2916                             "key": {
2917                               "version": "0.0.1",
2918                               "name": "LinkMonitorPolicy"
2919                             },
2920                             "description": "Generated description for concept referred to by key \"LinkMonitorPolicy:0.0.1\"",
2921                             "UUID": "6c5e410f-489a-46ff-964e-982ce6e8b6d0"
2922                           }
2923                         },{
2924                           "key": {
2925                             "version": "0.0.1",
2926                             "name": "MessageSchema"
2927                           },
2928                           "value": {
2929                             "key": {
2930                               "version": "0.0.1",
2931                               "name": "MessageSchema"
2932                             },
2933                             "description": "A schema for messages from apex",
2934                             "UUID": "ac4b34ac-39d6-3393-a267-8d5b84854018"
2935                           }
2936                         },{
2937                           "key": {
2938                             "version": "0.0.1",
2939                             "name": "NoPolicyDefinedTask"
2940                           },
2941                           "value": {
2942                             "key": {
2943                               "version": "0.0.1",
2944                               "name": "NoPolicyDefinedTask"
2945                             },
2946                             "description": "This task sends a message to the output when an event is received for which no policy has been defined.",
2947                             "UUID": "d48b619e-d00d-4008-b884-02d76ea4350b"
2948                           }
2949                         },{
2950                           "key": {
2951                             "version": "0.0.1",
2952                             "name": "OduIdSchema"
2953                           },
2954                           "value": {
2955                             "key": {
2956                               "version": "0.0.1",
2957                               "name": "OduIdSchema"
2958                             },
2959                             "description": "A schema for O-DU-ID",
2960                             "UUID": "50662174-a88b-3cbd-91bd-8e91b40b2660"
2961                           }
2962                         },{
2963                           "key": {
2964                             "version": "0.0.1",
2965                             "name": "OruIdSchema"
2966                           },
2967                           "value": {
2968                             "key": {
2969                               "version": "0.0.1",
2970                               "name": "OruIdSchema"
2971                             },
2972                             "description": "A schema for O-RU-ID",
2973                             "UUID": "54daf32b-015f-39cd-8530-a1175c5553e9"
2974                           }
2975                         }]
2976                     }
2977                   },
2978                   "schemas": {
2979                     "key": {
2980                       "version": "0.0.1",
2981                       "name": "LinkMonitorModel_Schemas"
2982                     },
2983                     "schemas": {
2984                       "entry": [
2985                         {
2986                           "key": {
2987                             "version": "0.0.1",
2988                             "name": "LinkFailureInputSchema"
2989                           },
2990                           "value": {
2991                             "schemaDefinition": "{
2992     \"type\": \"record\",
2993     \"name\": \"Link_Failure_Input\",
2994     \"fields\": [
2995         {
2996             \"name\": \"event\",
2997             \"type\": {
2998                 \"type\": \"record\",
2999                 \"name\": \"Event_Type\",
3000                 \"fields\": [
3001                     {
3002                         \"name\": \"commonEventHeader\",
3003                         \"type\": {
3004                             \"type\": \"record\",
3005                             \"name\": \"Common_Event_Header_Type\",
3006                             \"fields\": [
3007                                 {
3008                                     \"name\": \"domain\",
3009                                     \"type\": \"string\"
3010                                 },
3011                                 {
3012                                     \"name\": \"eventId\",
3013                                     \"type\": \"string\"
3014                                 },
3015                                 {
3016                                     \"name\": \"eventName\",
3017                                     \"type\": \"string\"
3018                                 },
3019                                 {
3020                                     \"name\": \"eventType\",
3021                                     \"type\": \"string\"
3022                                 },
3023                                 {
3024                                     \"name\": \"sequence\",
3025                                     \"type\": \"int\"
3026                                 },
3027                                 {
3028                                     \"name\": \"priority\",
3029                                     \"type\": \"string\"
3030                                 },
3031                                 {
3032                                     \"name\": \"reportingEntityId\",
3033                                     \"type\": \"string\"
3034                                 },
3035                                 {
3036                                     \"name\": \"reportingEntityName\",
3037                                     \"type\": \"string\"
3038                                 },
3039                                 {
3040                                     \"name\": \"sourceId\",
3041                                     \"type\": \"string\"
3042                                 },
3043                                 {
3044                                     \"name\": \"sourceName\",
3045                                     \"type\": \"string\"
3046                                 },
3047                                 {
3048                                     \"name\": \"startEpochMicrosec\",
3049                                     \"type\": \"string\"
3050                                 },
3051                                 {
3052                                     \"name\": \"lastEpochMicrosec\",
3053                                     \"type\": \"string\"
3054                                 },
3055                                 {
3056                                     \"name\": \"nfNamingCode\",
3057                                     \"type\": \"string\"
3058                                 },
3059                                 {
3060                                     \"name\": \"nfVendorName\",
3061                                     \"type\": \"string\"
3062                                 },
3063                                 {
3064                                     \"name\": \"timeZoneOffset\",
3065                                     \"type\": \"string\"
3066                                 },
3067                                 {
3068                                     \"name\": \"version\",
3069                                     \"type\": \"string\"
3070                                 },
3071                                 {
3072                                     \"name\": \"vesEventListenerVersion\",
3073                                     \"type\": \"string\"
3074                                 }
3075                             ]
3076                         }
3077                     },
3078                     {
3079                         \"name\": \"faultFields\",
3080                         \"type\": {
3081                             \"type\": \"record\",
3082                             \"name\": \"Fault_Fields_Type\",
3083                             \"fields\": [
3084                                 {
3085                                     \"name\": \"faultFieldsVersion\",
3086                                     \"type\": \"string\"
3087                                 },
3088                                 {
3089                                     \"name\": \"alarmCondition\",
3090                                     \"type\": \"string\"
3091                                 },
3092                                 {
3093                                     \"name\": \"alarmInterfaceA\",
3094                                     \"type\": \"string\"
3095                                 },
3096                                 {
3097                                     \"name\": \"eventSourceType\",
3098                                     \"type\": \"string\"
3099                                 },
3100                                 {
3101                                     \"name\": \"specificProblem\",
3102                                     \"type\": \"string\"
3103                                 },
3104                                 {
3105                                     \"name\": \"eventSeverity\",
3106                                     \"type\": \"string\"
3107                                 },
3108                                 {
3109                                     \"name\": \"vfStatus\",
3110                                     \"type\": \"string\"
3111                                 },
3112                                 {
3113                                     \"name\": \"alarmAdditionalInformation\",
3114                                     \"type\": {
3115                                         \"type\": \"record\",
3116                                         \"name\": \"Alarm_Additional_Information_Type\",
3117                                         \"fields\": [
3118                                             {
3119                                                 \"name\": \"eventTime\",
3120                                                 \"type\": \"string\"
3121                                             },
3122                                             {
3123                                                 \"name\": \"equipType\",
3124                                                 \"type\": \"string\"
3125                                             },
3126                                             {
3127                                                 \"name\": \"vendor\",
3128                                                 \"type\": \"string\"
3129                                             },
3130                                             {
3131                                                 \"name\": \"model\",
3132                                                 \"type\": \"string\"
3133                                             }
3134                                         ]
3135                                     }
3136                                 }
3137                             ]
3138                         }
3139                     }
3140                 ]
3141             }
3142         }
3143     ]
3144 }",
3145                             "key": {
3146                               "version": "0.0.1",
3147                               "name": "LinkFailureInputSchema"
3148                             },
3149                             "schemaFlavour": "Avro"
3150                           }
3151                         },{
3152                           "key": {
3153                             "version": "0.0.1",
3154                             "name": "LinkFailureOutputSchema"
3155                           },
3156                           "value": {
3157                             "schemaDefinition": "{
3158   \"name\": \"Link_Failure_Output\",
3159   \"type\": \"record\",
3160   \"fields\": [
3161     {
3162       \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\",
3163       \"type\": {
3164         \"type\": \"array\",
3165         \"items\": {
3166           \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio_record\",
3167           \"type\": \"record\",
3168           \"fields\": [
3169             {
3170               \"name\": \"id\",
3171               \"type\": \"string\"
3172             },
3173             {
3174               \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\",
3175               \"type\": \"int\"
3176             },
3177             {
3178               \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\",
3179               \"type\": {
3180                 \"type\": \"array\",
3181                 \"items\": {
3182                   \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members_record\",
3183                   \"type\": \"record\",
3184                   \"fields\": [
3185                     {
3186                       \"name\": \"mobile_DasH_country_DasH_code\",
3187                       \"type\": \"string\"
3188                     },
3189                     {
3190                       \"name\": \"mobile_DasH_network_DasH_code\",
3191                       \"type\": \"string\"
3192                     },
3193                     {
3194                       \"name\": \"slice_DasH_differentiator\",
3195                       \"type\": \"int\"
3196                     },
3197                     {
3198                       \"name\": \"slice_DasH_service_DasH_type\",
3199                       \"type\": \"int\"
3200                     }
3201                   ]
3202                 }
3203               }
3204             },
3205             {
3206               \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\",
3207               \"type\": \"int\"
3208             },
3209             {
3210               \"name\": \"user_DasH_label\",
3211               \"type\": \"string\"
3212             },
3213             {
3214               \"name\": \"resource_DasH_type\",
3215               \"type\": \"string\"
3216             },
3217             {
3218               \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\",
3219               \"type\": \"int\"
3220             },
3221             {
3222               \"name\": \"administrative_DasH_state\",
3223               \"type\": \"string\"
3224             }
3225           ]
3226         }
3227       }
3228     }
3229   ]
3230 }",
3231                             "key": {
3232                               "version": "0.0.1",
3233                               "name": "LinkFailureOutputSchema"
3234                             },
3235                             "schemaFlavour": "Avro"
3236                           }
3237                         },{
3238                           "key": {
3239                             "version": "0.0.1",
3240                             "name": "MessageSchema"
3241                           },
3242                           "value": {
3243                             "schemaDefinition": "java.lang.String",
3244                             "key": {
3245                               "version": "0.0.1",
3246                               "name": "MessageSchema"
3247                             },
3248                             "schemaFlavour": "Java"
3249                           }
3250                         },{
3251                           "key": {
3252                             "version": "0.0.1",
3253                             "name": "OduIdSchema"
3254                           },
3255                           "value": {
3256                             "schemaDefinition": "java.lang.String",
3257                             "key": {
3258                               "version": "0.0.1",
3259                               "name": "OduIdSchema"
3260                             },
3261                             "schemaFlavour": "Java"
3262                           }
3263                         },{
3264                           "key": {
3265                             "version": "0.0.1",
3266                             "name": "OruIdSchema"
3267                           },
3268                           "value": {
3269                             "schemaDefinition": "java.lang.String",
3270                             "key": {
3271                               "version": "0.0.1",
3272                               "name": "OruIdSchema"
3273                             },
3274                             "schemaFlavour": "Java"
3275                           }
3276                         }]
3277                     }
3278                   },
3279                   "tasks": {
3280                     "key": {
3281                       "version": "0.0.1",
3282                       "name": "LinkMonitorModel_Tasks"
3283                     },
3284                     "taskMap": {
3285                       "entry": [
3286                         {
3287                           "key": {
3288                             "version": "0.0.1",
3289                             "name": "CreateLinkClearedOutfieldsTask"
3290                           },
3291                           "value": {
3292                             "taskParameters": {
3293                               "entry": []
3294                             },
3295                             "key": {
3296                               "version": "0.0.1",
3297                               "name": "CreateLinkClearedOutfieldsTask"
3298                             },
3299                             "taskLogic": {
3300                               "key": "TaskLogic",
3301                               "logic": "/*
3302  * ============LICENSE_START=======================================================
3303  * Copyright (C) 2021 Nordix Foundation.
3304  * ================================================================================
3305  * Licensed under the Apache License, Version 2.0 (the \"License\");
3306  * you may not use this file except in compliance with the License.
3307  * You may obtain a copy of the License at
3308  *
3309  *      http://www.apache.org/licenses/LICENSE-2.0
3310  *
3311  * Unless required by applicable law or agreed to in writing, software
3312  * distributed under the License is distributed on an \"AS IS\" BASIS,
3313  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3314  * See the License for the specific language governing permissions and
3315  * limitations under the License.
3316  *
3317  * SPDX-License-Identifier: Apache-2.0
3318  * ============LICENSE_END=========================================================
3319  */
3320
3321 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3322
3323 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
3324 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
3325
3326 executor.outFields.put(\"OruId\", oruId);
3327
3328 executor.logger.info(executor.outFields);
3329
3330 true;",
3331                               "logicFlavour": "JAVASCRIPT"
3332                             },
3333                             "inputFields": {
3334                               "entry": [
3335                                 {
3336                                   "key": "LinkFailureInput",
3337                                   "value": {
3338                                     "optional": false,
3339                                     "key": "LinkFailureInput",
3340                                     "fieldSchemaKey": {
3341                                       "version": "0.0.1",
3342                                       "name": "LinkFailureInputSchema"
3343                                     }
3344                                   }
3345                                 }]
3346                             },
3347                             "outputFields": {
3348                               "entry": [
3349                                 {
3350                                   "key": "OruId",
3351                                   "value": {
3352                                     "optional": false,
3353                                     "key": "OruId",
3354                                     "fieldSchemaKey": {
3355                                       "version": "0.0.1",
3356                                       "name": "OruIdSchema"
3357                                     }
3358                                   }
3359                                 }]
3360                             },
3361                             "contextAlbumReference": []
3362                           }
3363                         },{
3364                           "key": {
3365                             "version": "0.0.1",
3366                             "name": "CreateLinkFailureOutfieldsTask"
3367                           },
3368                           "value": {
3369                             "taskParameters": {
3370                               "entry": []
3371                             },
3372                             "key": {
3373                               "version": "0.0.1",
3374                               "name": "CreateLinkFailureOutfieldsTask"
3375                             },
3376                             "taskLogic": {
3377                               "key": "TaskLogic",
3378                               "logic": "/*
3379  * ============LICENSE_START=======================================================
3380  * Copyright (C) 2021 Nordix Foundation.
3381  * ================================================================================
3382  * Licensed under the Apache License, Version 2.0 (the \"License\");
3383  * you may not use this file except in compliance with the License.
3384  * You may obtain a copy of the License at
3385  *
3386  *      http://www.apache.org/licenses/LICENSE-2.0
3387  *
3388  * Unless required by applicable law or agreed to in writing, software
3389  * distributed under the License is distributed on an \"AS IS\" BASIS,
3390  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3391  * See the License for the specific language governing permissions and
3392  * limitations under the License.
3393  *
3394  * SPDX-License-Identifier: Apache-2.0
3395  * ============LICENSE_END=========================================================
3396  */
3397
3398 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3399
3400 var returnValue = true;
3401 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
3402 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
3403 var oruOduMap = JSON.parse(executor.parameters.get(\"ORU-ODU-Map\"));
3404
3405 if (oruId in oruOduMap) {
3406     var oduId = oruOduMap[oruId];
3407     executor.outFields.put(\"OruId\", oruId);
3408     executor.outFields.put(\"OduId\", oduId);
3409     executor.logger.info(executor.outFields);
3410 } else {
3411     executor.message = \"No O-RU found in the config with this ID: \" + oruId;
3412     returnValue = false;
3413 }
3414
3415 returnValue;",
3416                               "logicFlavour": "JAVASCRIPT"
3417                             },
3418                             "inputFields": {
3419                               "entry": [
3420                                 {
3421                                   "key": "LinkFailureInput",
3422                                   "value": {
3423                                     "optional": false,
3424                                     "key": "LinkFailureInput",
3425                                     "fieldSchemaKey": {
3426                                       "version": "0.0.1",
3427                                       "name": "LinkFailureInputSchema"
3428                                     }
3429                                   }
3430                                 }]
3431                             },
3432                             "outputFields": {
3433                               "entry": [
3434                                 {
3435                                   "key": "OduId",
3436                                   "value": {
3437                                     "optional": false,
3438                                     "key": "OduId",
3439                                     "fieldSchemaKey": {
3440                                       "version": "0.0.1",
3441                                       "name": "OduIdSchema"
3442                                     }
3443                                   }
3444                                 },{
3445                                   "key": "OruId",
3446                                   "value": {
3447                                     "optional": false,
3448                                     "key": "OruId",
3449                                     "fieldSchemaKey": {
3450                                       "version": "0.0.1",
3451                                       "name": "OruIdSchema"
3452                                     }
3453                                   }
3454                                 }]
3455                             },
3456                             "contextAlbumReference": []
3457                           }
3458                         },{
3459                           "key": {
3460                             "version": "0.0.1",
3461                             "name": "LinkClearedTask"
3462                           },
3463                           "value": {
3464                             "taskParameters": {
3465                               "entry": []
3466                             },
3467                             "key": {
3468                               "version": "0.0.1",
3469                               "name": "LinkClearedTask"
3470                             },
3471                             "taskLogic": {
3472                               "key": "TaskLogic",
3473                               "logic": "/*
3474  * ============LICENSE_START=======================================================
3475  * Copyright (C) 2021 Nordix Foundation.
3476  * ================================================================================
3477  * Licensed under the Apache License, Version 2.0 (the \"License\");
3478  * you may not use this file except in compliance with the License.
3479  * You may obtain a copy of the License at
3480  *
3481  *      http://www.apache.org/licenses/LICENSE-2.0
3482  *
3483  * Unless required by applicable law or agreed to in writing, software
3484  * distributed under the License is distributed on an \"AS IS\" BASIS,
3485  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3486  * See the License for the specific language governing permissions and
3487  * limitations under the License.
3488  *
3489  * SPDX-License-Identifier: Apache-2.0
3490  * ============LICENSE_END=========================================================
3491  */
3492
3493 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3494
3495 var oruId = executor.inFields.get(\"OruId\");
3496
3497 executor.outFields.put(\"message\", \"CLEARED link failure for O-RU: \" + oruId);
3498
3499 executor.logger.info(executor.outFields);
3500
3501 true;",
3502                               "logicFlavour": "JAVASCRIPT"
3503                             },
3504                             "inputFields": {
3505                               "entry": [
3506                                 {
3507                                   "key": "OruId",
3508                                   "value": {
3509                                     "optional": false,
3510                                     "key": "OruId",
3511                                     "fieldSchemaKey": {
3512                                       "version": "0.0.1",
3513                                       "name": "OruIdSchema"
3514                                     }
3515                                   }
3516                                 }]
3517                             },
3518                             "outputFields": {
3519                               "entry": [
3520                                 {
3521                                   "key": "message",
3522                                   "value": {
3523                                     "optional": false,
3524                                     "key": "message",
3525                                     "fieldSchemaKey": {
3526                                       "version": "0.0.1",
3527                                       "name": "MessageSchema"
3528                                     }
3529                                   }
3530                                 }]
3531                             },
3532                             "contextAlbumReference": []
3533                           }
3534                         },{
3535                           "key": {
3536                             "version": "0.0.1",
3537                             "name": "LinkFailureTask"
3538                           },
3539                           "value": {
3540                             "taskParameters": {
3541                               "entry": []
3542                             },
3543                             "key": {
3544                               "version": "0.0.1",
3545                               "name": "LinkFailureTask"
3546                             },
3547                             "taskLogic": {
3548                               "key": "TaskLogic",
3549                               "logic": "/*
3550  * ============LICENSE_START=======================================================
3551  * Copyright (C) 2021 Nordix Foundation.
3552  * ================================================================================
3553  * Licensed under the Apache License, Version 2.0 (the \"License\");
3554  * you may not use this file except in compliance with the License.
3555  * You may obtain a copy of the License at
3556  *
3557  *      http://www.apache.org/licenses/LICENSE-2.0
3558  *
3559  * Unless required by applicable law or agreed to in writing, software
3560  * distributed under the License is distributed on an \"AS IS\" BASIS,
3561  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3562  * See the License for the specific language governing permissions and
3563  * limitations under the License.
3564  *
3565  * SPDX-License-Identifier: Apache-2.0
3566  * ============LICENSE_END=========================================================
3567  */
3568
3569 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3570
3571 var linkFailureOutput = executor.subject.getOutFieldSchemaHelper(\"LinkFailureOutput\").createNewInstance();
3572
3573 var oruId = executor.inFields.get(\"OruId\");
3574 var oduId = executor.inFields.get(\"OduId\");
3575
3576 var unlockMessageArray = new java.util.ArrayList();
3577 for (var i = 0; i < 1; i++) {
3578     unlockMessageArray.add({
3579       \"id\":\"rrm-pol-2\",
3580       \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\":25,
3581       \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\":
3582           [
3583               {
3584                   \"mobile_DasH_country_DasH_code\":\"310\",
3585                   \"mobile_DasH_network_DasH_code\":\"150\",
3586                   \"slice_DasH_differentiator\":1,
3587                   \"slice_DasH_service_DasH_type\":1
3588               }
3589           ],
3590       \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\":15,
3591       \"user_DasH_label\":\"rrm-pol-2\",
3592       \"resource_DasH_type\":\"prb\",
3593       \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\":20,
3594       \"administrative_DasH_state\":\"unlocked\"
3595   });
3596 }
3597
3598 linkFailureOutput.put(\"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\", unlockMessageArray);
3599 executor.outFields.put(\"LinkFailureOutput\", linkFailureOutput.toString());
3600
3601 executor.getExecutionProperties().setProperty(\"OduId\", oduId);
3602 executor.getExecutionProperties().setProperty(\"OruId\", oruId);
3603
3604 executor.logger.info(executor.outFields);
3605
3606 true;",
3607                               "logicFlavour": "JAVASCRIPT"
3608                             },
3609                             "inputFields": {
3610                               "entry": [
3611                                 {
3612                                   "key": "OduId",
3613                                   "value": {
3614                                     "optional": false,
3615                                     "key": "OduId",
3616                                     "fieldSchemaKey": {
3617                                       "version": "0.0.1",
3618                                       "name": "OduIdSchema"
3619                                     }
3620                                   }
3621                                 },{
3622                                   "key": "OruId",
3623                                   "value": {
3624                                     "optional": false,
3625                                     "key": "OruId",
3626                                     "fieldSchemaKey": {
3627                                       "version": "0.0.1",
3628                                       "name": "OruIdSchema"
3629                                     }
3630                                   }
3631                                 }]
3632                             },
3633                             "outputFields": {
3634                               "entry": [
3635                                 {
3636                                   "key": "LinkFailureOutput",
3637                                   "value": {
3638                                     "optional": false,
3639                                     "key": "LinkFailureOutput",
3640                                     "fieldSchemaKey": {
3641                                       "version": "0.0.1",
3642                                       "name": "LinkFailureOutputSchema"
3643                                     }
3644                                   }
3645                                 }]
3646                             },
3647                             "contextAlbumReference": []
3648                           }
3649                         },{
3650                           "key": {
3651                             "version": "0.0.1",
3652                             "name": "NoPolicyDefinedTask"
3653                           },
3654                           "value": {
3655                             "taskParameters": {
3656                               "entry": []
3657                             },
3658                             "key": {
3659                               "version": "0.0.1",
3660                               "name": "NoPolicyDefinedTask"
3661                             },
3662                             "taskLogic": {
3663                               "key": "TaskLogic",
3664                               "logic": "/*
3665  * ============LICENSE_START=======================================================
3666  * Copyright (C) 2021 Nordix Foundation.
3667  * ================================================================================
3668  * Licensed under the Apache License, Version 2.0 (the \"License\");
3669  * you may not use this file except in compliance with the License.
3670  * You may obtain a copy of the License at
3671  *
3672  *      http://www.apache.org/licenses/LICENSE-2.0
3673  *
3674  * Unless required by applicable law or agreed to in writing, software
3675  * distributed under the License is distributed on an \"AS IS\" BASIS,
3676  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3677  * See the License for the specific language governing permissions and
3678  * limitations under the License.
3679  *
3680  * SPDX-License-Identifier: Apache-2.0
3681  * ============LICENSE_END=========================================================
3682  */
3683
3684 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3685
3686 executor.outFields.put(\"message\", \"No policy defined for this event\");
3687
3688 executor.logger.info(executor.outFields);
3689
3690 true;",
3691                               "logicFlavour": "JAVASCRIPT"
3692                             },
3693                             "inputFields": {
3694                               "entry": [
3695                                 {
3696                                   "key": "LinkFailureInput",
3697                                   "value": {
3698                                     "optional": false,
3699                                     "key": "LinkFailureInput",
3700                                     "fieldSchemaKey": {
3701                                       "version": "0.0.1",
3702                                       "name": "LinkFailureInputSchema"
3703                                     }
3704                                   }
3705                                 }]
3706                             },
3707                             "outputFields": {
3708                               "entry": [
3709                                 {
3710                                   "key": "message",
3711                                   "value": {
3712                                     "optional": false,
3713                                     "key": "message",
3714                                     "fieldSchemaKey": {
3715                                       "version": "0.0.1",
3716                                       "name": "MessageSchema"
3717                                     }
3718                                   }
3719                                 }]
3720                             },
3721                             "contextAlbumReference": []
3722                           }
3723                         }]
3724                     }
3725                   }
3726                 }
3727               },
3728               "version": "0.0.1",
3729               "id": 101,
3730               "instanceCount": 1,
3731               "name": "LinkMonitorApexEngine",
3732               "engineParameters": {
3733                 "taskParameters": [
3734                   {
3735                     "key": "ORU-ODU-Map",
3736                     "value": "{
3737    \"o-ru-11211\": \"o-du-1121\",
3738    \"o-ru-11223\": \"o-du-1122\",
3739    \"o-ru-11222\": \"o-du-1122\",
3740    \"o-ru-11221\": \"o-du-1122\"
3741 }"
3742                   }],
3743                 "contextParameters": {
3744                   "schemaParameters": {
3745                     "Avro": {
3746                       "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
3747                     }
3748                   },
3749                   "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters"
3750                 },
3751                 "executorParameters": {
3752                   "JAVASCRIPT": {
3753                     "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
3754                   }
3755                 }
3756               },
3757               "deploymentPort": 12345
3758             }
3759           },
3760           "metadata": {
3761             "policy-id": "operational.apex.linkmonitor",
3762             "policy-version": "1.0.0"
3763           },
3764           "description": null,
3765           "version": "1.0.0",
3766           "type_version": "1.0.0",
3767           "defined_name": "operational.apex.linkmonitor",
3768           "defined_version": "1.0.0",
3769           "type": "onap.policies.controlloop.operational.common.Apex",
3770           "name": "operational.apex.linkmonitor"
3771         }
3772       }],
3773     "description": null,
3774     "node_templates": {
3775       "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition": {
3776         "type_identifier": {
3777           "version": "1.0.1",
3778           "name": "org.onap.policy.clamp.acm.AutomationComposition"
3779         },
3780         "key": {
3781           "version": "1.2.3",
3782           "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition"
3783         },
3784         "derived_from": null,
3785         "identifier": {
3786           "version": "1.2.3",
3787           "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition"
3788         },
3789         "properties": {
3790           "elements": [
3791             {
3792               "version": "1.2.3",
3793               "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement"
3794             }],
3795           "provider": "Ericsson"
3796         },
3797         "metadata": {},
3798         "description": "Automation composition for Hello World",
3799         "requirements": null,
3800         "version": "1.2.3",
3801         "type_version": "1.0.1",
3802         "capabilities": null,
3803         "defined_name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition",
3804         "defined_version": "1.2.3",
3805         "type": "org.onap.policy.clamp.acm.AutomationComposition",
3806         "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition"
3807       },
3808       "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement": {
3809         "type_identifier": {
3810           "version": "1.0.1",
3811           "name": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement"
3812         },
3813         "key": {
3814           "version": "1.2.3",
3815           "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement"
3816         },
3817         "derived_from": null,
3818         "identifier": {
3819           "version": "1.2.3",
3820           "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement"
3821         },
3822         "properties": {
3823           "participantType": {
3824             "version": "2.3.1",
3825             "name": "org.onap.policy.clamp.acm.PolicyParticipant"
3826           },
3827           "policy_type_id": {
3828             "version": "1.0.0",
3829             "name": "onap.policies.operational.pm-subscription-handler"
3830           },
3831           "participant_id": {
3832             "version": "1.0.0",
3833             "name": "org.onap.PM_Policy"
3834           },
3835           "provider": "Ericsson",
3836           "policy_id": {
3837             "get_input": "pmsh_operational_policy"
3838           }
3839         },
3840         "metadata": {},
3841         "description": "Automation composition element for the operational policy for Performance Management Subscription Handling",
3842         "requirements": null,
3843         "version": "1.2.3",
3844         "type_version": "1.0.1",
3845         "capabilities": null,
3846         "defined_name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement",
3847         "defined_version": "1.2.3",
3848         "type": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement",
3849         "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement"
3850       },
3851       "org.onap.policy.clamp.acm.PolicyParticipant": {
3852         "type_identifier": {
3853           "version": "1.0.1",
3854           "name": "org.onap.policy.clamp.acm.Participant"
3855         },
3856         "key": {
3857           "version": "2.3.1",
3858           "name": "org.onap.policy.clamp.acm.PolicyParticipant"
3859         },
3860         "derived_from": null,
3861         "identifier": {
3862           "version": "2.3.1",
3863           "name": "org.onap.policy.clamp.acm.PolicyParticipant"
3864         },
3865         "properties": {
3866           "provider": "ONAP"
3867         },
3868         "metadata": {},
3869         "description": "Participant for DCAE microservices",
3870         "requirements": null,
3871         "version": "2.3.1",
3872         "type_version": "1.0.1",
3873         "capabilities": null,
3874         "defined_name": "org.onap.policy.clamp.acm.PolicyParticipant",
3875         "defined_version": "2.3.1",
3876         "type": "org.onap.policy.clamp.acm.Participant",
3877         "name": "org.onap.policy.clamp.acm.PolicyParticipant"
3878       }
3879     },
3880     "inputs": {
3881       "pmsh_operational_policy": {
3882         "value": null,
3883         "type_version": "0.0.0",
3884         "type": "onap.datatypes.ToscaConceptIdentifier",
3885         "name": "pmsh_operational_policy"
3886       }
3887     }
3888   },
3889   "policy_types": {
3890     "onap.policies.controlloop.operational.Common": {
3891       "key": {
3892         "version": "1.0.0",
3893         "name": "onap.policies.controlloop.operational.Common"
3894       },
3895       "derived_from": "tosca.policies.Root",
3896       "properties": {
3897         "abatement": {
3898           "required": true,
3899           "status": null,
3900           "metadata": null,
3901           "entry_schema": null,
3902           "constraints": null,
3903           "description": "Whether an abatement event message will be expected for the control loop from DCAE.",
3904           "type_version": "0.0.0",
3905           "key_schema": null,
3906           "type": "boolean",
3907           "name": "abatement",
3908           "default_value": false
3909         },
3910         "operations": {
3911           "required": true,
3912           "status": null,
3913           "metadata": null,
3914           "entry_schema": {
3915             "constraints": null,
3916             "description": null,
3917             "type_version": "0.0.0",
3918             "type": "onap.datatype.controlloop.Operation",
3919             "name": null
3920           },
3921           "constraints": null,
3922           "description": "List of operations to be performed when Control Loop is triggered.",
3923           "type_version": "0.0.0",
3924           "key_schema": null,
3925           "type": "list",
3926           "name": "operations",
3927           "default_value": null
3928         },
3929         "timeout": {
3930           "required": true,
3931           "status": null,
3932           "metadata": null,
3933           "entry_schema": null,
3934           "constraints": null,
3935           "description": "Overall timeout for executing all the operations. This timeout should equal or exceed the total
3936 timeout for each operation listed.
3937 ",
3938           "type_version": "0.0.0",
3939           "key_schema": null,
3940           "type": "integer",
3941           "name": "timeout",
3942           "default_value": null
3943         },
3944         "id": {
3945           "required": true,
3946           "status": null,
3947           "metadata": null,
3948           "entry_schema": null,
3949           "constraints": null,
3950           "description": "The unique control loop id.",
3951           "type_version": "0.0.0",
3952           "key_schema": null,
3953           "type": "string",
3954           "name": "id",
3955           "default_value": null
3956         },
3957         "trigger": {
3958           "required": true,
3959           "status": null,
3960           "metadata": null,
3961           "entry_schema": null,
3962           "constraints": null,
3963           "description": "Initial operation to execute upon receiving an Onset event message for the Control Loop.",
3964           "type_version": "0.0.0",
3965           "key_schema": null,
3966           "type": "string",
3967           "name": "trigger",
3968           "default_value": null
3969         }
3970       },
3971       "metadata": {},
3972       "description": "Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
3973 Policy Types. This does NOT support the legacy Policy YAML policy type.
3974 ",
3975       "version": "1.0.0",
3976       "type_version": null,
3977       "defined_name": "onap.policies.controlloop.operational.Common",
3978       "defined_version": "1.0.0",
3979       "type": null,
3980       "name": "onap.policies.controlloop.operational.Common"
3981     },
3982     "onap.policies.controlloop.operational.common.Apex": {
3983       "key": {
3984         "version": "1.0.0",
3985         "name": "onap.policies.controlloop.operational.common.Apex"
3986       },
3987       "derived_from": "onap.policies.controlloop.operational.Common",
3988       "properties": {
3989         "javaProperties": {
3990           "required": false,
3991           "status": null,
3992           "metadata": null,
3993           "entry_schema": null,
3994           "constraints": null,
3995           "description": "Name/value pairs of properties to be set for APEX if needed.",
3996           "type_version": "0.0.0",
3997           "key_schema": null,
3998           "type": "string",
3999           "name": "javaProperties",
4000           "default_value": null
4001         },
4002         "eventInputParameters": {
4003           "required": true,
4004           "status": null,
4005           "metadata": null,
4006           "entry_schema": null,
4007           "constraints": null,
4008           "description": "The event input parameters.",
4009           "type_version": "0.0.0",
4010           "key_schema": null,
4011           "type": "string",
4012           "name": "eventInputParameters",
4013           "default_value": null
4014         },
4015         "eventOutputParameters": {
4016           "required": true,
4017           "status": null,
4018           "metadata": null,
4019           "entry_schema": null,
4020           "constraints": null,
4021           "description": "The event output parameters.",
4022           "type_version": "0.0.0",
4023           "key_schema": null,
4024           "type": "string",
4025           "name": "eventOutputParameters",
4026           "default_value": null
4027         },
4028         "engineServiceParameters": {
4029           "required": true,
4030           "status": null,
4031           "metadata": null,
4032           "entry_schema": null,
4033           "constraints": null,
4034           "description": "The engine parameters like name, instanceCount, policy implementation, parameters etc.",
4035           "type_version": "0.0.0",
4036           "key_schema": null,
4037           "type": "string",
4038           "name": "engineServiceParameters",
4039           "default_value": null
4040         }
4041       },
4042       "metadata": {},
4043       "description": "Operational policies for Apex PDP",
4044       "version": "1.0.0",
4045       "type_version": null,
4046       "defined_name": "onap.policies.controlloop.operational.common.Apex",
4047       "defined_version": "1.0.0",
4048       "type": null,
4049       "name": "onap.policies.controlloop.operational.common.Apex"
4050     }
4051   },
4052   "tosca_definitions_version": "tosca_simple_yaml_1_3",
4053   "name": "apex_usecase",
4054   "node_types": {
4055     "org.onap.policy.clamp.acm.AutomationComposition": {
4056       "key": {
4057         "version": "1.0.1",
4058         "name": "org.onap.policy.clamp.acm.AutomationComposition"
4059       },
4060       "derived_from": "tosca.nodetypes.Root",
4061       "properties": {
4062         "elements": {
4063           "required": true,
4064           "status": null,
4065           "metadata": {
4066             "common": "true"
4067           },
4068           "entry_schema": {
4069             "constraints": null,
4070             "description": null,
4071             "type_version": "0.0.0",
4072             "type": "onap.datatypes.ToscaConceptIdentifier",
4073             "name": null
4074           },
4075           "constraints": null,
4076           "description": "Specifies a list of automation composition element definitions that make up this automation composition definition",
4077           "type_version": "0.0.0",
4078           "key_schema": null,
4079           "type": "list",
4080           "name": "elements",
4081           "default_value": null
4082         },
4083         "provider": {
4084           "required": false,
4085           "status": null,
4086           "metadata": {
4087             "common": "true"
4088           },
4089           "entry_schema": null,
4090           "constraints": null,
4091           "description": "Specifies the organization that provides the automation composition element",
4092           "type_version": "0.0.0",
4093           "key_schema": null,
4094           "type": "string",
4095           "name": "provider",
4096           "default_value": null
4097         }
4098       },
4099       "metadata": {},
4100       "description": null,
4101       "requirements": null,
4102       "version": "1.0.1",
4103       "type_version": null,
4104       "defined_name": "org.onap.policy.clamp.acm.AutomationComposition",
4105       "defined_version": "1.0.1",
4106       "type": null,
4107       "name": "org.onap.policy.clamp.acm.AutomationComposition"
4108     },
4109     "org.onap.policy.clamp.acm.AutomationCompositionElement": {
4110       "key": {
4111         "version": "1.0.1",
4112         "name": "org.onap.policy.clamp.acm.AutomationCompositionElement"
4113       },
4114       "derived_from": "tosca.nodetypes.Root",
4115       "properties": {
4116         "runningToPassiveTimeout": {
4117           "required": false,
4118           "status": null,
4119           "metadata": {
4120             "common": "true"
4121           },
4122           "entry_schema": null,
4123           "constraints": [
4124             {
4125               "valid_values": null,
4126               "greater_or_equal": "0",
4127               "equal": null,
4128               "greater_than": null,
4129               "range_values": null,
4130               "less_than": null,
4131               "less_or_equal": null
4132             }],
4133           "description": "The maximum time in seconds to wait for a state chage from running to passive",
4134           "type_version": "0.0.0",
4135           "key_schema": null,
4136           "type": "integer",
4137           "name": "runningToPassiveTimeout",
4138           "default_value": 60
4139         },
4140         "participantType": {
4141           "required": true,
4142           "status": null,
4143           "metadata": {
4144             "common": "true"
4145           },
4146           "entry_schema": null,
4147           "constraints": null,
4148           "description": "The identity of the participant type that hosts this type of Automation Composition Element",
4149           "type_version": "0.0.0",
4150           "key_schema": null,
4151           "type": "onap.datatypes.ToscaConceptIdentifier",
4152           "name": "participantType",
4153           "default_value": null
4154         },
4155         "startPhase": {
4156           "required": false,
4157           "status": null,
4158           "metadata": {
4159             "common": "true"
4160           },
4161           "entry_schema": null,
4162           "constraints": [
4163             {
4164               "valid_values": null,
4165               "greater_or_equal": "0",
4166               "equal": null,
4167               "greater_than": null,
4168               "range_values": null,
4169               "less_than": null,
4170               "less_or_equal": null
4171             }],
4172           "description": "A value indicating the start phase in which this automation composition element will be started, the first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped in reverse start phase order. Automation Composition Elements with the same start phase are started and stopped simultaneously",
4173           "type_version": "0.0.0",
4174           "key_schema": null,
4175           "type": "integer",
4176           "name": "startPhase",
4177           "default_value": null
4178         },
4179         "passiveToUninitializedTimeout": {
4180           "required": false,
4181           "status": null,
4182           "metadata": {
4183             "common": "true"
4184           },
4185           "entry_schema": null,
4186           "constraints": [
4187             {
4188               "valid_values": null,
4189               "greater_or_equal": "0",
4190               "equal": null,
4191               "greater_than": null,
4192               "range_values": null,
4193               "less_than": null,
4194               "less_or_equal": null
4195             }],
4196           "description": "The maximum time in seconds to wait for a state chage from passive to uninitialized",
4197           "type_version": "0.0.0",
4198           "key_schema": null,
4199           "type": "integer",
4200           "name": "passiveToUninitializedTimeout",
4201           "default_value": 60
4202         },
4203         "uninitializedToPassiveTimeout": {
4204           "required": false,
4205           "status": null,
4206           "metadata": {
4207             "common": "true"
4208           },
4209           "entry_schema": null,
4210           "constraints": [
4211             {
4212               "valid_values": null,
4213               "greater_or_equal": "0",
4214               "equal": null,
4215               "greater_than": null,
4216               "range_values": null,
4217               "less_than": null,
4218               "less_or_equal": null
4219             }],
4220           "description": "The maximum time in seconds to wait for a state chage from uninitialized to passive",
4221           "type_version": "0.0.0",
4222           "key_schema": null,
4223           "type": "integer",
4224           "name": "uninitializedToPassiveTimeout",
4225           "default_value": 60
4226         },
4227         "participant_id": {
4228           "required": false,
4229           "status": null,
4230           "metadata": {
4231             "common": "true"
4232           },
4233           "entry_schema": null,
4234           "constraints": null,
4235           "description": null,
4236           "type_version": "0.0.0",
4237           "key_schema": null,
4238           "type": "onap.datatypes.ToscaConceptIdentifier",
4239           "name": "participant_id",
4240           "default_value": null
4241         },
4242         "provider": {
4243           "required": false,
4244           "status": null,
4245           "metadata": {
4246             "common": "true"
4247           },
4248           "entry_schema": null,
4249           "constraints": null,
4250           "description": "Specifies the organization that provides the automation composition element",
4251           "type_version": "0.0.0",
4252           "key_schema": null,
4253           "type": "string",
4254           "name": "provider",
4255           "default_value": null
4256         },
4257         "passiveToRunningTimeout": {
4258           "required": false,
4259           "status": null,
4260           "metadata": {
4261             "common": "true"
4262           },
4263           "entry_schema": null,
4264           "constraints": [
4265             {
4266               "valid_values": null,
4267               "greater_or_equal": "0",
4268               "equal": null,
4269               "greater_than": null,
4270               "range_values": null,
4271               "less_than": null,
4272               "less_or_equal": null
4273             }],
4274           "description": "The maximum time in seconds to wait for a state chage from passive to running",
4275           "type_version": "0.0.0",
4276           "key_schema": null,
4277           "type": "integer",
4278           "name": "passiveToRunningTimeout",
4279           "default_value": 60
4280         }
4281       },
4282       "metadata": {},
4283       "description": null,
4284       "requirements": null,
4285       "version": "1.0.1",
4286       "type_version": null,
4287       "defined_name": "org.onap.policy.clamp.acm.AutomationCompositionElement",
4288       "defined_version": "1.0.1",
4289       "type": null,
4290       "name": "org.onap.policy.clamp.acm.AutomationCompositionElement"
4291     },
4292     "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement": {
4293       "key": {
4294         "version": "1.0.1",
4295         "name": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement"
4296       },
4297       "derived_from": "org.onap.policy.clamp.acm.AutomationCompositionElement",
4298       "properties": {
4299         "policy_type_id": {
4300           "required": false,
4301           "status": null,
4302           "metadata": null,
4303           "entry_schema": null,
4304           "constraints": null,
4305           "description": null,
4306           "type_version": "0.0.0",
4307           "key_schema": null,
4308           "type": "onap.datatypes.ToscaConceptIdentifier",
4309           "name": "policy_type_id",
4310           "default_value": null
4311         },
4312         "policy_id": {
4313           "required": false,
4314           "status": null,
4315           "metadata": null,
4316           "entry_schema": null,
4317           "constraints": null,
4318           "description": null,
4319           "type_version": "0.0.0",
4320           "key_schema": null,
4321           "type": "onap.datatypes.ToscaConceptIdentifier",
4322           "name": "policy_id",
4323           "default_value": null
4324         }
4325       },
4326       "metadata": {},
4327       "description": null,
4328       "requirements": null,
4329       "version": "1.0.1",
4330       "type_version": null,
4331       "defined_name": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement",
4332       "defined_version": "1.0.1",
4333       "type": null,
4334       "name": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement"
4335     },
4336     "org.onap.policy.clamp.acm.Participant": {
4337       "key": {
4338         "version": "1.0.1",
4339         "name": "org.onap.policy.clamp.acm.Participant"
4340       },
4341       "derived_from": "tosca.nodetypes.Root",
4342       "properties": {
4343         "provider": {
4344           "required": false,
4345           "status": null,
4346           "metadata": null,
4347           "entry_schema": null,
4348           "constraints": null,
4349           "description": null,
4350           "type_version": "0.0.0",
4351           "key_schema": null,
4352           "type": "string",
4353           "name": "provider",
4354           "default_value": null
4355         }
4356       },
4357       "metadata": {},
4358       "description": null,
4359       "requirements": null,
4360       "version": "1.0.1",
4361       "type_version": null,
4362       "defined_name": "org.onap.policy.clamp.acm.Participant",
4363       "defined_version": "1.0.1",
4364       "type": null,
4365       "name": "org.onap.policy.clamp.acm.Participant"
4366     }
4367   }
4368 }