1 tosca_definitions_version: tosca_simple_yaml_1_1_0
3 onap.datatypes.ToscaConceptIdentifier:
4 derived_from: tosca.datatypes.Root
12 org.onap.datatypes.policy.clamp.controlloop.DCAEMicroserviceControlLoopElementConsulInfo:
13 name: org.onap.datatypes.policy.clamp.controlloop.DCAEMicroserviceControlLoopElementConsulInfo
15 derived_from: tosca.datatypes.Root
21 description: Consul url for this entry
27 description: Body of Consul entry
29 onap.datatype.controlloop.Target:
30 derived_from: tosca.datatypes.Root
31 description: Definition for a entity in A&AI to perform a control loop operation on
35 description: Category for the target type
46 Map of values that identify the resource. If none are provided, it is assumed that the
47 entity that generated the ONSET event will be the target.
50 clamp_possible_values: ClampExecution:CSAR_RESOURCES
53 onap.datatype.controlloop.Actor:
54 derived_from: tosca.datatypes.Root
55 description: An actor/operation/target definition
59 description: The actor performing the operation.
62 clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor
65 description: The operation the actor is performing.
67 clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation
70 type: onap.datatype.controlloop.Target
71 description: The resource the operation should be performed on.
75 description: Name/value pairs of payload information passed by Policy to the actor
78 clamp_possible_values: ClampExecution:CDS/payload
81 onap.datatype.controlloop.Operation:
82 derived_from: tosca.datatypes.Root
84 description: An operation supported by an actor
88 description: Unique identifier for the operation
92 description: A user-friendly description of the intent for the operation
95 type: onap.datatype.controlloop.Actor
96 description: The definition of the operation to be performed.
100 description: The amount of time for the actor to perform the operation.
104 description: The number of retries the actor should attempt to perform the operation.
109 description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.
111 default: final_success
114 description: Points to the operation to invoke on Actor operation failure.
116 default: final_failure
119 description: Points to the operation to invoke when the time out for the operation occurs.
121 default: final_failure_timeout
124 description: Points to the operation to invoke when the current operation has exceeded its max retries.
126 default: final_failure_retries
129 description: Points to the operation to invoke when the current operation causes an exception.
131 default: final_failure_exception
134 description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.
136 default: final_failure_guard
138 onap.policies.Monitoring:
139 derived_from: tosca.policies.Root
140 description: a base policy type for all policies that govern monitoring provisioning
142 name: onap.policies.Monitoring
143 onap.policies.Sirisha:
144 derived_from: tosca.policies.Root
145 description: a base policy type for all policies that govern monitoring provisioning
147 name: onap.policies.Sirisha
148 onap.policies.controlloop.operational.Common:
149 derived_from: tosca.policies.Root
151 name: onap.policies.controlloop.operational.Common
153 Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
154 Policy Types. This does NOT support the legacy Policy YAML policy type.
158 description: The unique control loop id.
163 Overall timeout for executing all the operations. This timeout should equal or exceed the total
164 timeout for each operation listed.
168 description: Whether an abatement event message will be expected for the control loop from DCAE.
173 description: Initial operation to execute upon receiving an Onset event message for the Control Loop.
177 description: List of operations to be performed when Control Loop is triggered.
180 type: onap.datatype.controlloop.Operation
181 onap.policies.controlloop.operational.common.Apex:
182 derived_from: onap.policies.controlloop.operational.Common
185 name: onap.policies.controlloop.operational.common.Apex
186 description: Operational policies for Apex PDP
188 engineServiceParameters:
190 description: The engine parameters like name, instanceCount, policy implementation, parameters etc.
192 eventInputParameters:
194 description: The event input parameters.
196 eventOutputParameters:
198 description: The event output parameters.
202 description: Name/value pairs of properties to be set for APEX if needed.
205 org.onap.policy.clamp.controlloop.Participant:
207 derived_from: tosca.nodetypes.Root
212 org.onap.policy.clamp.controlloop.ControlLoopElement:
214 derived_from: tosca.nodetypes.Root
221 description: Specifies the organization that provides the control loop element
223 type: onap.datatypes.ToscaConceptIdentifier
227 description: The identity of the participant type that hosts this type of Control Loop Element
232 - greater_or_equal: 0
235 description: A value indicating the start phase in which this control loop element will be started, the
236 first start phase is zero. Control Loop Elements are started in their start_phase order and stopped
237 in reverse start phase order. Control Loop Elements with the same start phase are started and
238 stopped simultaneously
239 uninitializedToPassiveTimeout:
243 - greater_or_equal: 0
247 description: The maximum time in seconds to wait for a state chage from uninitialized to passive
248 passiveToRunningTimeout:
252 - greater_or_equal: 0
256 description: The maximum time in seconds to wait for a state chage from passive to running
257 runningToPassiveTimeout:
261 - greater_or_equal: 0
265 description: The maximum time in seconds to wait for a state chage from running to passive
266 passiveToUninitializedTimeout:
270 - greater_or_equal: 0
274 description: The maximum time in seconds to wait for a state chage from passive to uninitialized
275 org.onap.policy.clamp.controlloop.ControlLoop:
277 derived_from: tosca.nodetypes.Root
284 description: Specifies the organization that provides the control loop element
291 type: onap.datatypes.ToscaConceptIdentifier
292 description: Specifies a list of control loop element definitions that make up this control loop definition
293 org.onap.policy.clamp.controlloop.DCAEMicroserviceControlLoopElement:
295 derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
298 type: onap.datatypes.ToscaConceptIdentifier
301 type: onap.dcae.cloudify_blueprint
307 type: org.onap.datatypes.policy.clamp.controlloop.DCAEMicroserviceControlLoopElementConsulInfo
308 org.onap.policy.clamp.controlloop.PolicyControlLoopElement:
310 derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
313 type: onap.datatypes.ToscaConceptIdentifier
316 type: onap.datatypes.ToscaConceptIdentifier
318 org.onap.policy.clamp.controlloop.DerivedPolicyControlLoopElement:
320 derived_from: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
323 type: onap.datatypes.ToscaConceptIdentifier
326 type: onap.datatypes.ToscaConceptIdentifier
328 org.onap.policy.clamp.controlloop.DerivedDerivedPolicyControlLoopElement:
330 derived_from: org.onap.policy.clamp.controlloop.DerivedPolicyControlLoopElement
333 type: onap.datatypes.ToscaConceptIdentifier
336 type: onap.datatypes.ToscaConceptIdentifier
338 org.onap.policy.clamp.controlloop.CDSControlLoopElement:
340 derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
343 type: onap.datatypes.ToscaConceptIdentifier
347 pmsh_monitoring_policy:
348 type: onap.datatypes.ToscaConceptIdentifier
349 description: The ID of the PMSH monitoring policy to use
351 name: MICROSERVICE_vLoadBalancerMS_v1_0_dcae-pm-subscription-handler_1_0_0test
353 pmsh_operational_policy:
354 type: onap.datatypes.ToscaConceptIdentifier
355 description: The ID of the PMSH operational policy to use
357 name: operational.apex.pmcontrol
360 org.onap.policy.controlloop.PolicyControlLoopParticipant:
362 type: org.onap.policy.clamp.controlloop.Participant
364 description: Participant for DCAE microservices
367 org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement:
369 type: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
371 description: Control loop element for the monitoring policy for Performance Management Subscription Handling
375 name: org.onap.PM_Policy
378 name: org.onap.policy.controlloop.PolicyControlLoopParticipant
381 name: onap.policies.monitoring.pm-subscription-handler
384 get_input: pmsh_monitoring_policy
385 org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement:
387 type: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
389 description: Control loop element for the operational policy for Performance Management Subscription Handling
393 name: org.onap.PM_Policy
396 name: org.onap.policy.controlloop.PolicyControlLoopParticipant
399 name: onap.policies.operational.pm-subscription-handler
402 get_input: pmsh_operational_policy
403 org.onap.domain.pmsh.PMSHControlLoopDefinition:
405 type: org.onap.policy.clamp.controlloop.ControlLoop
407 description: Control loop for Performance Management Subscription Handling
411 - name: org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement
413 - name: org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement
416 - operational.apex.pmcontrol:
417 type: onap.policies.controlloop.operational.common.Apex
421 policy-id: operational.apex.pmcontrol
424 engineServiceParameters:
429 deploymentPort: 12561
433 name: PMControlPolicy
437 name: PMControlPolicy_KeyInfo
442 name: CDSActionIdentifiersType
446 name: CDSActionIdentifiersType
448 UUID: 6e5fa19b-14df-37e3-a4ae-8c537e861a82
449 description: Generated description for concept referred to by key "CDSActionIdentifiersType:0.0.1"
451 name: CDSCreateResponseEvent
455 name: CDSCreateResponseEvent
457 UUID: 14b29e38-ac75-3273-aa4e-8583c0aa7dad
458 description: Generated description for concept referred to by key "CDSCreateResponseEvent:0.0.1"
460 name: CDSCreateResponsePayloadType
464 name: CDSCreateResponsePayloadType
466 UUID: 04573f8f-e772-30a5-b1d9-d7318d4a1e13
467 description: Generated description for concept referred to by key "CDSCreateResponsePayloadType:0.0.1"
469 name: CDSCreateResponsePolicy
473 name: CDSCreateResponsePolicy
475 UUID: e126c965-fc09-3bfe-8f55-70f380a4a49c
476 description: Generated description for concept referred to by key "CDSCreateResponsePolicy:0.0.1"
478 name: CDSCreateResponseTask
482 name: CDSCreateResponseTask
484 UUID: 6165ee82-afd2-3aab-a517-f00b3f2461d2
485 description: Generated description for concept referred to by key "CDSCreateResponseTask:0.0.1"
487 name: CDSCreateSubscriptionPayloadType
491 name: CDSCreateSubscriptionPayloadType
493 UUID: 8350ac5e-c157-38b9-9614-a0f93a830e60
494 description: Generated description for concept referred to by key "CDSCreateSubscriptionPayloadType:0.0.1"
496 name: CDSCreateSubscriptionRequestEvent
500 name: CDSCreateSubscriptionRequestEvent
502 UUID: cfa325ba-226b-3a31-9183-ec43e2b6e9a2
503 description: Generated description for concept referred to by key "CDSCreateSubscriptionRequestEvent:0.0.1"
505 name: CDSDeleteResponseEvent
509 name: CDSDeleteResponseEvent
511 UUID: 8be9c0fa-7437-3841-aff2-b3cec6ae3bd8
512 description: Generated description for concept referred to by key "CDSDeleteResponseEvent:0.0.1"
514 name: CDSDeleteResponsePayloadType
518 name: CDSDeleteResponsePayloadType
520 UUID: 3fbfe0c9-152e-34d3-a504-09cd13c058d0
521 description: Generated description for concept referred to by key "CDSDeleteResponsePayloadType:0.0.1"
523 name: CDSDeleteResponsePolicy
527 name: CDSDeleteResponsePolicy
529 UUID: a780251c-edd5-3132-b865-04313246b43c
530 description: Generated description for concept referred to by key "CDSDeleteResponsePolicy:0.0.1"
532 name: CDSDeleteResponseTask
536 name: CDSDeleteResponseTask
538 UUID: afce4555-3aa3-3521-a7d8-ee8cdf0d3efc
539 description: Generated description for concept referred to by key "CDSDeleteResponseTask:0.0.1"
541 name: CDSDeleteSubscriptionPayloadType
545 name: CDSDeleteSubscriptionPayloadType
547 UUID: 12658406-9147-3c9d-a38c-5ad5e30b092b
548 description: Generated description for concept referred to by key "CDSDeleteSubscriptionPayloadType:0.0.1"
550 name: CDSDeleteSubscriptionRequestEvent
554 name: CDSDeleteSubscriptionRequestEvent
556 UUID: 24380c95-9289-36e6-8cbf-0edefa15ccd9
557 description: Generated description for concept referred to by key "CDSDeleteSubscriptionRequestEvent:0.0.1"
559 name: CDSRequestCommonHeaderType
563 name: CDSRequestCommonHeaderType
565 UUID: 35590ac0-062c-39f1-8786-b4ff716e30b1
566 description: Generated description for concept referred to by key "CDSRequestCommonHeaderType:0.0.1"
568 name: CDSResponseCommonHeaderType
572 name: CDSResponseCommonHeaderType
574 UUID: dd7e1805-885a-350b-aaf9-ed541321ae3c
575 description: Generated description for concept referred to by key "CDSResponseCommonHeaderType:0.0.1"
577 name: CDSResponseStatusEvent
581 name: CDSResponseStatusEvent
583 UUID: 7986e21b-32f7-302e-9554-31f21b673493
584 description: Generated description for concept referred to by key "CDSResponseStatusEvent:0.0.1"
586 name: CDSResponseStatusType
590 name: CDSResponseStatusType
592 UUID: 92b8a2cf-344e-3ce1-8cc0-2b7d3cb695fa
593 description: Generated description for concept referred to by key "CDSResponseStatusType:0.0.1"
595 name: CreateSubscriptionPayloadEvent
599 name: CreateSubscriptionPayloadEvent
601 UUID: 92162397-1a8e-3a3f-a469-d2af7700af4a
602 description: Generated description for concept referred to by key "CreateSubscriptionPayloadEvent:0.0.1"
604 name: CreateSubscriptionPayloadTask
608 name: CreateSubscriptionPayloadTask
610 UUID: bc0c69f0-52ed-38ea-b468-ae4a6fd1730d
611 description: Generated description for concept referred to by key "CreateSubscriptionPayloadTask:0.0.1"
613 name: CreateSubscriptionRequestTask
617 name: CreateSubscriptionRequestTask
619 UUID: 89cb75e9-f06c-30d3-b4ff-698d45f63869
620 description: Generated description for concept referred to by key "CreateSubscriptionRequestTask:0.0.1"
622 name: DeleteSubscriptionPayloadEvent
626 name: DeleteSubscriptionPayloadEvent
628 UUID: 994fa441-04ab-33bb-832d-1cd12ab5d074
629 description: Generated description for concept referred to by key "DeleteSubscriptionPayloadEvent:0.0.1"
631 name: DeleteSubscriptionPayloadTask
635 name: DeleteSubscriptionPayloadTask
637 UUID: 0f519117-5fea-3e4b-941f-8f778100465f
638 description: Generated description for concept referred to by key "DeleteSubscriptionPayloadTask:0.0.1"
640 name: DeleteSubscriptionRequestTask
644 name: DeleteSubscriptionRequestTask
646 UUID: acb772fe-d442-39e3-98f9-b1080caf4150
647 description: Generated description for concept referred to by key "DeleteSubscriptionRequestTask:0.0.1"
649 name: MRResponseEvent
653 name: MRResponseEvent
655 UUID: 13c747a3-6bae-3bcf-9c80-b152e01dc194
656 description: Generated description for concept referred to by key "MRResponseEvent:0.0.1"
658 name: PMControlPolicy
662 name: PMControlPolicy
664 UUID: acf1e55c-7bc5-3bd5-975a-0ca54afcd8a4
665 description: Generated description for concept referred to by key "PMControlPolicy:0.0.1"
667 name: PMControlPolicy_Albums
671 name: PMControlPolicy_Albums
673 UUID: b38ad204-c2c8-32f4-9b5a-dda0aeb0145b
674 description: Generated description for concept referred to by key "PMControlPolicy_Albums:0.0.1"
676 name: PMControlPolicy_Events
680 name: PMControlPolicy_Events
682 UUID: be3871a0-c42a-3113-a066-82d192840eca
683 description: Generated description for concept referred to by key "PMControlPolicy_Events:0.0.1"
685 name: PMControlPolicy_KeyInfo
689 name: PMControlPolicy_KeyInfo
691 UUID: ced37634-28a4-3178-b7f6-2980794927b0
692 description: Generated description for concept referred to by key "PMControlPolicy_KeyInfo:0.0.1"
694 name: PMControlPolicy_Policies
698 name: PMControlPolicy_Policies
700 UUID: be3d180d-ef9c-3a75-8e9c-84271a038bed
701 description: Generated description for concept referred to by key "PMControlPolicy_Policies:0.0.1"
703 name: PMControlPolicy_Schemas
707 name: PMControlPolicy_Schemas
709 UUID: e61973f1-189c-39e5-82f6-0d3afe298a20
710 description: Generated description for concept referred to by key "PMControlPolicy_Schemas:0.0.1"
712 name: PMControlPolicy_Tasks
716 name: PMControlPolicy_Tasks
718 UUID: 5658adb3-2962-30a3-a241-fae75bb8eb4a
719 description: Generated description for concept referred to by key "PMControlPolicy_Tasks:0.0.1"
721 name: PMSubscriptionAlbum
725 name: PMSubscriptionAlbum
727 UUID: c2bd6f0d-6854-317a-9be2-97c08338428c
728 description: Generated description for concept referred to by key "PMSubscriptionAlbum:0.0.1"
730 name: PMSubscriptionOutputEvent
734 name: PMSubscriptionOutputEvent
736 UUID: 992b7819-9f69-3aa0-bb0f-6e45ea15ce05
737 description: Generated description for concept referred to by key "PMSubscriptionOutputEvent:0.0.1"
739 name: PMSubscriptionType
743 name: PMSubscriptionType
745 UUID: 73c1c397-4fc3-357f-93b6-a8ad707fbaae
746 description: Generated description for concept referred to by key "PMSubscriptionType:0.0.1"
748 name: ReceiveEventPolicy
752 name: ReceiveEventPolicy
754 UUID: 568b7345-9de1-36d3-b6a3-9b857e6809a1
755 description: Generated description for concept referred to by key "ReceiveEventPolicy:0.0.1"
757 name: ReceiveSubscriptionTask
761 name: ReceiveSubscriptionTask
763 UUID: f596afc8-100c-35eb-92c8-352355ea457d
764 description: Generated description for concept referred to by key "ReceiveSubscriptionTask:0.0.1"
772 UUID: 153791fd-ae0a-36a7-88a5-309a7936415d
773 description: Generated description for concept referred to by key "SimpleIntType:0.0.1"
775 name: SimpleStringType
779 name: SimpleStringType
781 UUID: 8a4957cf-9493-3a76-8c22-a208e23259af
782 description: Generated description for concept referred to by key "SimpleStringType:0.0.1"
784 name: SubscriptionStatusType
788 name: SubscriptionStatusType
790 UUID: 597643b1-9db1-31ce-85d0-e1c63c43b30b
791 description: Generated description for concept referred to by key "SubscriptionStatusType:0.0.1"
793 name: SubscriptionType
797 name: SubscriptionType
799 UUID: 184547bb-7d64-3cb2-a273-d7185102c5ce
800 description: Generated description for concept referred to by key "SubscriptionType:0.0.1"
808 UUID: 6a8cc68e-dfc8-3403-9c6d-071c886b319c
809 description: Generated description for concept referred to by key "UUIDType:0.0.1"
811 name: pmsh-operational-policy
815 name: pmsh-operational-policy
817 UUID: fdf2c9ff-6422-3ea6-b6b6-49b12116265d
818 description: Generated description for concept referred to by key "pmsh-operational-policy:0.0.1"
821 name: PMControlPolicy_Policies
826 name: CDSCreateResponsePolicy
830 name: CDSCreateResponsePolicy
835 - key: CDSCreateResponseState
838 parentKeyName: CDSCreateResponsePolicy
839 parentKeyVersion: 0.0.1
840 parentLocalName: 'NULL'
841 localName: CDSCreateResponseState
843 name: CDSCreateResponseEvent
847 - key: ResponseOutput
850 parentKeyName: CDSCreateResponsePolicy
851 parentKeyVersion: 0.0.1
852 parentLocalName: CDSCreateResponseState
853 localName: ResponseOutput
855 name: CDSResponseStatusEvent
858 parentKeyName: 'NULL'
859 parentKeyVersion: 0.0.0
860 parentLocalName: 'NULL'
862 contextAlbumReference: []
865 logicFlavour: UNDEFINED
867 stateFinalizerLogicMap:
870 name: CDSCreateResponseTask
875 name: CDSCreateResponseTask
879 parentKeyName: CDSCreateResponsePolicy
880 parentKeyVersion: 0.0.1
881 parentLocalName: CDSCreateResponseState
882 localName: CDSCreateResponsePolicy
885 parentKeyName: CDSCreateResponsePolicy
886 parentKeyVersion: 0.0.1
887 parentLocalName: CDSCreateResponseState
888 localName: ResponseOutput
889 firstState: CDSCreateResponseState
891 name: CDSDeleteResponsePolicy
895 name: CDSDeleteResponsePolicy
900 - key: CDSDeleteResponseState
903 parentKeyName: CDSDeleteResponsePolicy
904 parentKeyVersion: 0.0.1
905 parentLocalName: 'NULL'
906 localName: CDSDeleteResponseState
908 name: CDSDeleteResponseEvent
912 - key: ResponseOutput
915 parentKeyName: CDSDeleteResponsePolicy
916 parentKeyVersion: 0.0.1
917 parentLocalName: CDSDeleteResponseState
918 localName: ResponseOutput
920 name: CDSResponseStatusEvent
923 parentKeyName: 'NULL'
924 parentKeyVersion: 0.0.0
925 parentLocalName: 'NULL'
927 contextAlbumReference: []
930 logicFlavour: UNDEFINED
932 stateFinalizerLogicMap:
935 name: CDSDeleteResponseTask
940 name: CDSDeleteResponseTask
944 parentKeyName: CDSDeleteResponsePolicy
945 parentKeyVersion: 0.0.1
946 parentLocalName: CDSDeleteResponseState
947 localName: CDSDeleteResponsePolicy
950 parentKeyName: CDSDeleteResponsePolicy
951 parentKeyVersion: 0.0.1
952 parentLocalName: CDSDeleteResponseState
953 localName: ResponseOutput
954 firstState: CDSDeleteResponseState
956 name: ReceiveEventPolicy
960 name: ReceiveEventPolicy
965 - key: CreateOrDeleteState
968 parentKeyName: ReceiveEventPolicy
969 parentKeyVersion: 0.0.1
970 parentLocalName: 'NULL'
971 localName: CreateOrDeleteState
973 name: PMSubscriptionOutputEvent
977 - key: CreateSubscriptionPayload
980 parentKeyName: ReceiveEventPolicy
981 parentKeyVersion: 0.0.1
982 parentLocalName: CreateOrDeleteState
983 localName: CreateSubscriptionPayload
985 name: CreateSubscriptionPayloadEvent
988 parentKeyName: ReceiveEventPolicy
989 parentKeyVersion: 0.0.1
990 parentLocalName: 'NULL'
991 localName: CreateSubscription
992 - key: DeleteSubscriptionPayload
995 parentKeyName: ReceiveEventPolicy
996 parentKeyVersion: 0.0.1
997 parentLocalName: CreateOrDeleteState
998 localName: DeleteSubscriptionPayload
1000 name: DeleteSubscriptionPayloadEvent
1003 parentKeyName: ReceiveEventPolicy
1004 parentKeyVersion: 0.0.1
1005 parentLocalName: 'NULL'
1006 localName: DeleteSubscription
1007 contextAlbumReference:
1008 - name: PMSubscriptionAlbum
1011 key: TaskSelectionLogic
1012 logicFlavour: JAVASCRIPT
1015 * ============LICENSE_START=======================================================
1016 * Copyright (C) 2020 Nordix. All rights reserved.
1017 * ================================================================================
1018 * Licensed under the Apache License, Version 2.0 (the "License");
1019 * you may not use this file except in compliance with the License.
1020 * You may obtain a copy of the License at
1022 * http://www.apache.org/licenses/LICENSE-2.0
1024 * Unless required by applicable law or agreed to in writing, software
1025 * distributed under the License is distributed on an "AS IS" BASIS,
1026 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1027 * See the License for the specific language governing permissions and
1028 * limitations under the License.
1030 * SPDX-License-Identifier: Apache-2.0
1031 * ============LICENSE_END=========================================================
1034 executor.logger.info(executor.subject.id);
1036 var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1037 var changeType = pmSubscriptionInfo.get("changeType").toString()
1039 executor.logger.info("Change Type is " + changeType)
1041 if ("CREATE".equals(changeType)) {
1042 executor.logger.info("Choosing to create a subscription")
1043 executor.subject.getTaskKey("CreateSubscriptionPayloadTask").copyTo(executor.selectedTask);
1045 else if ("DELETE".equals(changeType)) {
1046 executor.logger.info("Choosing to delete a subscription")
1047 executor.subject.getTaskKey("DeleteSubscriptionPayloadTask").copyTo(executor.selectedTask);
1050 //var returnValue = executor.isTrue;
1052 stateFinalizerLogicMap:
1055 name: CreateSubscriptionPayloadTask
1060 name: CreateSubscriptionPayloadTask
1064 parentKeyName: ReceiveEventPolicy
1065 parentKeyVersion: 0.0.1
1066 parentLocalName: CreateOrDeleteState
1067 localName: ReceiveEventPolicy
1070 parentKeyName: ReceiveEventPolicy
1071 parentKeyVersion: 0.0.1
1072 parentLocalName: CreateOrDeleteState
1073 localName: CreateSubscriptionPayload
1075 name: DeleteSubscriptionPayloadTask
1079 parentKeyName: ReceiveEventPolicy
1080 parentKeyVersion: 0.0.1
1081 parentLocalName: CreateOrDeleteState
1082 localName: ReceiveEventPolicy
1085 parentKeyName: ReceiveEventPolicy
1086 parentKeyVersion: 0.0.1
1087 parentLocalName: CreateOrDeleteState
1088 localName: DeleteSubscriptionPayload
1089 - key: CreateSubscription
1092 parentKeyName: ReceiveEventPolicy
1093 parentKeyVersion: 0.0.1
1094 parentLocalName: 'NULL'
1095 localName: CreateSubscription
1097 name: CreateSubscriptionPayloadEvent
1101 - key: IssueCreateSubscriptionRequestOutput
1104 parentKeyName: ReceiveEventPolicy
1105 parentKeyVersion: 0.0.1
1106 parentLocalName: CreateSubscription
1107 localName: IssueCreateSubscriptionRequestOutput
1109 name: CDSCreateSubscriptionRequestEvent
1112 parentKeyName: 'NULL'
1113 parentKeyVersion: 0.0.0
1114 parentLocalName: 'NULL'
1116 contextAlbumReference:
1117 - name: PMSubscriptionAlbum
1121 logicFlavour: UNDEFINED
1123 stateFinalizerLogicMap:
1126 name: CreateSubscriptionRequestTask
1131 name: CreateSubscriptionRequestTask
1135 parentKeyName: ReceiveEventPolicy
1136 parentKeyVersion: 0.0.1
1137 parentLocalName: CreateSubscription
1138 localName: ReceiveEventPolicy
1141 parentKeyName: ReceiveEventPolicy
1142 parentKeyVersion: 0.0.1
1143 parentLocalName: CreateSubscription
1144 localName: IssueCreateSubscriptionRequestOutput
1145 - key: DeleteSubscription
1148 parentKeyName: ReceiveEventPolicy
1149 parentKeyVersion: 0.0.1
1150 parentLocalName: 'NULL'
1151 localName: DeleteSubscription
1153 name: DeleteSubscriptionPayloadEvent
1157 - key: IssueDeleteSubscriptionRequestOutput
1160 parentKeyName: ReceiveEventPolicy
1161 parentKeyVersion: 0.0.1
1162 parentLocalName: DeleteSubscription
1163 localName: IssueDeleteSubscriptionRequestOutput
1165 name: CDSDeleteSubscriptionRequestEvent
1168 parentKeyName: 'NULL'
1169 parentKeyVersion: 0.0.0
1170 parentLocalName: 'NULL'
1172 contextAlbumReference:
1173 - name: PMSubscriptionAlbum
1177 logicFlavour: UNDEFINED
1179 stateFinalizerLogicMap:
1182 name: DeleteSubscriptionRequestTask
1187 name: DeleteSubscriptionRequestTask
1191 parentKeyName: ReceiveEventPolicy
1192 parentKeyVersion: 0.0.1
1193 parentLocalName: DeleteSubscription
1194 localName: ReceiveEventPolicy
1197 parentKeyName: ReceiveEventPolicy
1198 parentKeyVersion: 0.0.1
1199 parentLocalName: DeleteSubscription
1200 localName: IssueDeleteSubscriptionRequestOutput
1201 - key: ReceiveSubscriptionState
1204 parentKeyName: ReceiveEventPolicy
1205 parentKeyVersion: 0.0.1
1206 parentLocalName: 'NULL'
1207 localName: ReceiveSubscriptionState
1209 name: pmsh-operational-policy
1213 - key: ReceivePMSubscriptionOutput
1216 parentKeyName: ReceiveEventPolicy
1217 parentKeyVersion: 0.0.1
1218 parentLocalName: ReceiveSubscriptionState
1219 localName: ReceivePMSubscriptionOutput
1221 name: PMSubscriptionOutputEvent
1224 parentKeyName: ReceiveEventPolicy
1225 parentKeyVersion: 0.0.1
1226 parentLocalName: 'NULL'
1227 localName: CreateOrDeleteState
1228 contextAlbumReference:
1229 - name: PMSubscriptionAlbum
1233 logicFlavour: UNDEFINED
1235 stateFinalizerLogicMap:
1238 name: ReceiveSubscriptionTask
1243 name: ReceiveSubscriptionTask
1247 parentKeyName: ReceiveEventPolicy
1248 parentKeyVersion: 0.0.1
1249 parentLocalName: ReceiveSubscriptionState
1250 localName: ReceiveEventPolicy
1253 parentKeyName: ReceiveEventPolicy
1254 parentKeyVersion: 0.0.1
1255 parentLocalName: ReceiveSubscriptionState
1256 localName: ReceivePMSubscriptionOutput
1257 firstState: ReceiveSubscriptionState
1260 name: PMControlPolicy_Tasks
1265 name: CDSCreateResponseTask
1269 name: CDSCreateResponseTask
1273 - key: actionIdentifiers
1275 key: actionIdentifiers
1277 name: CDSActionIdentifiersType
1284 name: CDSResponseCommonHeaderType
1291 name: CDSCreateResponsePayloadType
1298 name: CDSResponseStatusType
1307 name: SubscriptionStatusType
1312 contextAlbumReference:
1313 - name: PMSubscriptionAlbum
1317 logicFlavour: JAVASCRIPT
1320 * ============LICENSE_START=======================================================
1321 * Copyright (C) 2020 Nordix. All rights reserved.
1322 * ================================================================================
1323 * Licensed under the Apache License, Version 2.0 (the "License");
1324 * you may not use this file except in compliance with the License.
1325 * You may obtain a copy of the License at
1327 * http://www.apache.org/licenses/LICENSE-2.0
1329 * Unless required by applicable law or agreed to in writing, software
1330 * distributed under the License is distributed on an "AS IS" BASIS,
1331 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1332 * See the License for the specific language governing permissions and
1333 * limitations under the License.
1335 * SPDX-License-Identifier: Apache-2.0
1336 * ============LICENSE_END=========================================================
1339 executor.logger.info(executor.subject.id);
1341 var commonHeader = executor.inFields.get("commonHeader")
1342 var response = executor.inFields.get("payload")
1343 var albumID = commonHeader.get("requestId")
1345 var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString());
1346 var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance();
1348 responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
1349 responseStatus.put("nfName", pmSubscriptionInfo.get("nfName"))
1350 responseStatus.put("changeType", pmSubscriptionInfo.get("changeType"))
1352 var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status")
1354 executor.logger.info("RESPONSE STATUS = " + status)
1356 if(status == "success") {
1357 responseStatus.put("message", "success")
1359 responseStatus.put("message", "failed")
1362 executor.outFields.put("status", responseStatus)
1364 //var returnValue = executor.isTrue;
1367 name: CDSDeleteResponseTask
1371 name: CDSDeleteResponseTask
1375 - key: actionIdentifiers
1377 key: actionIdentifiers
1379 name: CDSActionIdentifiersType
1386 name: CDSResponseCommonHeaderType
1393 name: CDSDeleteResponsePayloadType
1400 name: CDSResponseStatusType
1409 name: SubscriptionStatusType
1414 contextAlbumReference:
1415 - name: PMSubscriptionAlbum
1419 logicFlavour: JAVASCRIPT
1422 * ============LICENSE_START=======================================================
1423 * Copyright (C) 2020 Nordix. All rights reserved.
1424 * ================================================================================
1425 * Licensed under the Apache License, Version 2.0 (the "License");
1426 * you may not use this file except in compliance with the License.
1427 * You may obtain a copy of the License at
1429 * http://www.apache.org/licenses/LICENSE-2.0
1431 * Unless required by applicable law or agreed to in writing, software
1432 * distributed under the License is distributed on an "AS IS" BASIS,
1433 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1434 * See the License for the specific language governing permissions and
1435 * limitations under the License.
1437 * SPDX-License-Identifier: Apache-2.0
1438 * ============LICENSE_END=========================================================
1441 executor.logger.info(executor.subject.id);
1443 var commonHeader = executor.inFields.get("commonHeader")
1444 var response = executor.inFields.get("payload")
1445 var albumID = commonHeader.get("requestId")
1447 var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString());
1448 var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance();
1450 responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
1451 responseStatus.put("nfName", pmSubscriptionInfo.get("nfName"))
1452 responseStatus.put("changeType", pmSubscriptionInfo.get("changeType"))
1454 var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status")
1456 executor.logger.info("RESPONSE STATUS = " + status)
1458 if(status == "success") {
1459 responseStatus.put("message", "success")
1461 responseStatus.put("message", "failed")
1464 executor.outFields.put("status", responseStatus)
1466 //var returnValue = executor.isTrue;
1469 name: CreateSubscriptionPayloadTask
1473 name: CreateSubscriptionPayloadTask
1497 name: CDSCreateSubscriptionPayloadType
1502 contextAlbumReference:
1503 - name: PMSubscriptionAlbum
1507 logicFlavour: JAVASCRIPT
1510 * ============LICENSE_START=======================================================
1511 * Copyright (C) 2020 Nordix. All rights reserved.
1512 * ================================================================================
1513 * Licensed under the Apache License, Version 2.0 (the "License");
1514 * you may not use this file except in compliance with the License.
1515 * You may obtain a copy of the License at
1517 * http://www.apache.org/licenses/LICENSE-2.0
1519 * Unless required by applicable law or agreed to in writing, software
1520 * distributed under the License is distributed on an "AS IS" BASIS,
1521 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1522 * See the License for the specific language governing permissions and
1523 * limitations under the License.
1525 * SPDX-License-Identifier: Apache-2.0
1526 * ============LICENSE_END=========================================================
1529 executor.logger.info(executor.subject.id);
1531 var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1533 var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
1535 var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record");
1537 payloadProperties.put("nfName", pmSubscriptionInfo.get("nfName"))
1538 payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
1539 payloadProperties.put("administrativeState", pmSubscriptionInfo.get("subscription").get("administrativeState"))
1540 payloadProperties.put("fileBasedGP", pmSubscriptionInfo.get("subscription").get("fileBasedGP").toString())
1541 payloadProperties.put("fileLocation", pmSubscriptionInfo.get("subscription").get("fileLocation"))
1542 payloadProperties.put("measurementGroups", pmSubscriptionInfo.get("subscription").get("measurementGroups"))
1544 var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry");
1545 payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties)
1547 var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance();
1548 payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry);
1550 executor.outFields.put("albumID", executor.inFields.get("albumID"))
1551 executor.outFields.put("payload", payload);
1553 //var returnValue = executor.isTrue;
1556 name: CreateSubscriptionRequestTask
1560 name: CreateSubscriptionRequestTask
1575 name: CDSCreateSubscriptionPayloadType
1580 - key: actionIdentifiers
1582 key: actionIdentifiers
1584 name: CDSActionIdentifiersType
1591 name: CDSRequestCommonHeaderType
1598 name: CDSCreateSubscriptionPayloadType
1603 contextAlbumReference:
1604 - name: PMSubscriptionAlbum
1608 logicFlavour: JAVASCRIPT
1611 * ============LICENSE_START=======================================================
1612 * Copyright (C) 2020 Nordix. All rights reserved.
1613 * ================================================================================
1614 * Licensed under the Apache License, Version 2.0 (the "License");
1615 * you may not use this file except in compliance with the License.
1616 * You may obtain a copy of the License at
1618 * http://www.apache.org/licenses/LICENSE-2.0
1620 * Unless required by applicable law or agreed to in writing, software
1621 * distributed under the License is distributed on an "AS IS" BASIS,
1622 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1623 * See the License for the specific language governing permissions and
1624 * limitations under the License.
1626 * SPDX-License-Identifier: Apache-2.0
1627 * ============LICENSE_END=========================================================
1630 executor.logger.info(executor.subject.id);
1632 var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1634 var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
1635 var blueprintName = pmSubscriptionInfo.get("blueprintName").toLowerCase()
1636 var blueprintVersion = pmSubscriptionInfo.get("blueprintVersion").toLowerCase()
1637 var payload = executor.inFields.get("payload")
1638 var actionName = changeType + "-subscription"
1640 var commonHeader = executor.subject.getOutFieldSchemaHelper("commonHeader").createNewInstance();
1641 commonHeader.put("originatorId", "sdnc");
1642 commonHeader.put("requestId", executor.inFields.get("albumID").toString());
1643 commonHeader.put("subRequestId", "sub-123456-1000");
1645 var actionIdentifiers = executor.subject.getOutFieldSchemaHelper("actionIdentifiers").createNewInstance();
1646 actionIdentifiers.put("actionName", actionName);
1647 actionIdentifiers.put("blueprintName", blueprintName);
1648 actionIdentifiers.put("blueprintVersion", blueprintVersion);
1649 actionIdentifiers.put("mode", "sync");
1651 executor.outFields.put("commonHeader", commonHeader);
1652 executor.outFields.put("actionIdentifiers", actionIdentifiers);
1653 executor.outFields.put("payload", payload);
1655 //var returnValue = executor.isTrue;
1658 name: DeleteSubscriptionPayloadTask
1662 name: DeleteSubscriptionPayloadTask
1686 name: CDSDeleteSubscriptionPayloadType
1691 contextAlbumReference:
1692 - name: PMSubscriptionAlbum
1696 logicFlavour: JAVASCRIPT
1699 * ============LICENSE_START=======================================================
1700 * Copyright (C) 2020 Nordix. All rights reserved.
1701 * ================================================================================
1702 * Licensed under the Apache License, Version 2.0 (the "License");
1703 * you may not use this file except in compliance with the License.
1704 * You may obtain a copy of the License at
1706 * http://www.apache.org/licenses/LICENSE-2.0
1708 * Unless required by applicable law or agreed to in writing, software
1709 * distributed under the License is distributed on an "AS IS" BASIS,
1710 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1711 * See the License for the specific language governing permissions and
1712 * limitations under the License.
1714 * SPDX-License-Identifier: Apache-2.0
1715 * ============LICENSE_END=========================================================
1718 executor.logger.info(executor.subject.id);
1720 var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1722 var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
1724 var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record");
1726 payloadProperties.put("nfName", pmSubscriptionInfo.get("nfName"))
1727 payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
1728 payloadProperties.put("administrativeState", pmSubscriptionInfo.get("subscription").get("administrativeState"))
1729 payloadProperties.put("fileBasedGP", pmSubscriptionInfo.get("subscription").get("fileBasedGP").toString())
1730 payloadProperties.put("fileLocation", pmSubscriptionInfo.get("subscription").get("fileLocation"))
1731 payloadProperties.put("measurementGroups", pmSubscriptionInfo.get("subscription").get("measurementGroups"))
1733 var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry");
1734 payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties)
1736 var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance();
1737 payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry);
1739 executor.outFields.put("albumID", executor.inFields.get("albumID"))
1740 executor.outFields.put("payload", payload);
1742 //var returnValue = executor.isTrue;
1745 name: DeleteSubscriptionRequestTask
1749 name: DeleteSubscriptionRequestTask
1764 name: CDSDeleteSubscriptionPayloadType
1769 - key: actionIdentifiers
1771 key: actionIdentifiers
1773 name: CDSActionIdentifiersType
1780 name: CDSRequestCommonHeaderType
1787 name: CDSDeleteSubscriptionPayloadType
1792 contextAlbumReference:
1793 - name: PMSubscriptionAlbum
1797 logicFlavour: JAVASCRIPT
1800 * ============LICENSE_START=======================================================
1801 * Copyright (C) 2020 Nordix. All rights reserved.
1802 * ================================================================================
1803 * Licensed under the Apache License, Version 2.0 (the "License");
1804 * you may not use this file except in compliance with the License.
1805 * You may obtain a copy of the License at
1807 * http://www.apache.org/licenses/LICENSE-2.0
1809 * Unless required by applicable law or agreed to in writing, software
1810 * distributed under the License is distributed on an "AS IS" BASIS,
1811 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1812 * See the License for the specific language governing permissions and
1813 * limitations under the License.
1815 * SPDX-License-Identifier: Apache-2.0
1816 * ============LICENSE_END=========================================================
1819 executor.logger.info(executor.subject.id);
1821 var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1823 var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
1824 var blueprintName = pmSubscriptionInfo.get("blueprintName").toLowerCase()
1825 var blueprintVersion = pmSubscriptionInfo.get("blueprintVersion").toLowerCase()
1826 var payload = executor.inFields.get("payload")
1827 var actionName = changeType + "-subscription"
1829 var commonHeader = executor.subject.getOutFieldSchemaHelper("commonHeader").createNewInstance();
1830 commonHeader.put("originatorId", "sdnc");
1831 commonHeader.put("requestId", executor.inFields.get("albumID").toString());
1832 commonHeader.put("subRequestId", "sub-123456-1000");
1834 var actionIdentifiers = executor.subject.getOutFieldSchemaHelper("actionIdentifiers").createNewInstance();
1835 actionIdentifiers.put("actionName", actionName);
1836 actionIdentifiers.put("blueprintName", blueprintName);
1837 actionIdentifiers.put("blueprintVersion", blueprintVersion);
1838 actionIdentifiers.put("mode", "sync");
1840 executor.outFields.put("commonHeader", commonHeader);
1841 executor.outFields.put("actionIdentifiers", actionIdentifiers);
1842 executor.outFields.put("payload", payload);
1844 //var returnValue = executor.isTrue;
1847 name: ReceiveSubscriptionTask
1851 name: ReceiveSubscriptionTask
1855 - key: blueprintName
1859 name: SimpleStringType
1862 - key: blueprintVersion
1864 key: blueprintVersion
1866 name: SimpleStringType
1873 name: SimpleStringType
1876 - key: closedLoopControlName
1878 key: closedLoopControlName
1880 name: SimpleStringType
1887 name: SimpleStringType
1894 name: SimpleStringType
1901 name: SubscriptionType
1915 contextAlbumReference:
1916 - name: PMSubscriptionAlbum
1920 logicFlavour: JAVASCRIPT
1923 * ============LICENSE_START=======================================================
1924 * Copyright (C) 2020 Nordix. All rights reserved.
1925 * ================================================================================
1926 * Licensed under the Apache License, Version 2.0 (the "License");
1927 * you may not use this file except in compliance with the License.
1928 * You may obtain a copy of the License at
1930 * http://www.apache.org/licenses/LICENSE-2.0
1932 * Unless required by applicable law or agreed to in writing, software
1933 * distributed under the License is distributed on an "AS IS" BASIS,
1934 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1935 * See the License for the specific language governing permissions and
1936 * limitations under the License.
1938 * SPDX-License-Identifier: Apache-2.0
1939 * ============LICENSE_END=========================================================
1941 var uuidType = java.util.UUID;
1943 executor.logger.info(executor.subject.id);
1945 //albumID will be used to fetch info from our album later
1946 var albumID = uuidType.randomUUID();
1947 var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").getSchemaHelper().createNewInstance();
1948 var returnValue = true;
1950 if(executor.inFields.get("policyName") != null) {
1951 executor.logger.info("nfName in receive sub event " + executor.inFields.get("nfName"));
1953 var changeType = executor.inFields.get("changeType")
1954 var nfName = executor.inFields.get("nfName")
1955 var policyName = executor.inFields.get("policyName")
1956 var closedLoopControlName = executor.inFields.get("closedLoopControlName")
1957 var subscription = executor.inFields.get("subscription")
1958 var blueprintName = executor.inFields.get("blueprintName")
1959 var blueprintVersion = executor.inFields.get("blueprintVersion")
1961 pmSubscriptionInfo.put("nfName", executor.inFields.get("nfName"));
1962 pmSubscriptionInfo.put("changeType", executor.inFields.get("changeType"))
1963 pmSubscriptionInfo.put("policyName", executor.inFields.get("policyName"))
1964 pmSubscriptionInfo.put("closedLoopControlName", executor.inFields.get("closedLoopControlName"))
1965 pmSubscriptionInfo.put("subscription", subscription)
1966 pmSubscriptionInfo.put("blueprintName", blueprintName)
1967 pmSubscriptionInfo.put("blueprintVersion", blueprintVersion)
1970 executor.getContextAlbum("PMSubscriptionAlbum").put(albumID.toString(), pmSubscriptionInfo);
1972 executor.outFields.put("albumID", albumID)
1974 executor.message = "Received invalid event"
1975 returnValue = false;
1981 name: PMControlPolicy_Events
1986 name: CDSCreateResponseEvent
1990 name: CDSCreateResponseEvent
1992 nameSpace: org.onap.policy.apex.onap.pmcontrol
1997 - key: actionIdentifiers
1999 key: actionIdentifiers
2001 name: CDSActionIdentifiersType
2008 name: CDSResponseCommonHeaderType
2015 name: CDSCreateResponsePayloadType
2022 name: CDSResponseStatusType
2026 name: CDSCreateSubscriptionRequestEvent
2030 name: CDSCreateSubscriptionRequestEvent
2032 nameSpace: org.onap.policy.apex.onap.pmcontrol
2037 - key: actionIdentifiers
2039 key: actionIdentifiers
2041 name: CDSActionIdentifiersType
2048 name: CDSRequestCommonHeaderType
2055 name: CDSCreateSubscriptionPayloadType
2059 name: CDSDeleteResponseEvent
2063 name: CDSDeleteResponseEvent
2065 nameSpace: org.onap.policy.apex.onap.pmcontrol
2070 - key: actionIdentifiers
2072 key: actionIdentifiers
2074 name: CDSActionIdentifiersType
2081 name: CDSResponseCommonHeaderType
2088 name: CDSDeleteResponsePayloadType
2095 name: CDSResponseStatusType
2099 name: CDSDeleteSubscriptionRequestEvent
2103 name: CDSDeleteSubscriptionRequestEvent
2105 nameSpace: org.onap.policy.apex.onap.pmcontrol
2110 - key: actionIdentifiers
2112 key: actionIdentifiers
2114 name: CDSActionIdentifiersType
2121 name: CDSRequestCommonHeaderType
2128 name: CDSDeleteSubscriptionPayloadType
2132 name: CDSResponseStatusEvent
2136 name: CDSResponseStatusEvent
2138 nameSpace: org.onap.policy.apex.onap.pmcontrol
2147 name: SubscriptionStatusType
2151 name: CreateSubscriptionPayloadEvent
2155 name: CreateSubscriptionPayloadEvent
2157 nameSpace: org.onap.policy.apex.onap.pmcontrol
2173 name: CDSCreateSubscriptionPayloadType
2177 name: DeleteSubscriptionPayloadEvent
2181 name: DeleteSubscriptionPayloadEvent
2183 nameSpace: org.onap.policy.apex.onap.pmcontrol
2199 name: CDSDeleteSubscriptionPayloadType
2203 name: MRResponseEvent
2207 name: MRResponseEvent
2209 nameSpace: org.onap.policy.apex.onap.pmcontrol
2229 name: PMSubscriptionOutputEvent
2233 name: PMSubscriptionOutputEvent
2235 nameSpace: org.onap.policy.apex.onap.pmcontrol
2248 name: pmsh-operational-policy
2252 name: pmsh-operational-policy
2254 nameSpace: org.onap.policy.apex.onap.pmcontrol
2259 - key: blueprintName
2263 name: SimpleStringType
2266 - key: blueprintVersion
2268 key: blueprintVersion
2270 name: SimpleStringType
2277 name: SimpleStringType
2280 - key: closedLoopControlName
2282 key: closedLoopControlName
2284 name: SimpleStringType
2291 name: SimpleStringType
2298 name: SimpleStringType
2305 name: SubscriptionType
2310 name: PMControlPolicy_Albums
2315 name: PMSubscriptionAlbum
2319 name: PMSubscriptionAlbum
2324 name: PMSubscriptionType
2328 name: PMControlPolicy_Schemas
2333 name: CDSActionIdentifiersType
2337 name: CDSActionIdentifiersType
2340 schemaDefinition: |-
2343 "name": "ActionIdentifiers_Type",
2344 "namespace": "org.onap.policy.apex.onap.helloworld",
2347 "name": "actionName",
2351 "name": "blueprintName",
2355 "name": "blueprintVersion",
2365 name: CDSCreateResponsePayloadType
2369 name: CDSCreateResponsePayloadType
2372 schemaDefinition: |-
2374 "name": "CreateResponsePayloadEntry",
2376 "namespace": "org.onap.policy.apex.onap.helloworld",
2379 "name": "create_DasH_subscription_DasH_response",
2381 "name": "create_DasH_subscription_DasH_response",
2385 "name": "odl_DasH_response",
2387 "name": "odl_DasH_response",
2403 name: CDSCreateSubscriptionPayloadType
2407 name: CDSCreateSubscriptionPayloadType
2410 schemaDefinition: |-
2415 "name": "CDSRequestPayloadEntry",
2418 "name": "create_DasH_subscription_DasH_properties",
2420 "name": "create_DasH_subscription_DasH_properties_record",
2428 "name": "subscriptionName",
2432 "name": "administrativeState",
2436 "name": "fileBasedGP",
2440 "name": "fileLocation",
2444 "name": "measurementGroups",
2448 "name": "measurementGroups_record",
2452 "name": "measurementGroup",
2454 "name": "measurementGroup",
2458 "name": "measurementTypes",
2462 "name": "measurementTypes_record",
2466 "name": "measurementType",
2474 "name": "managedObjectDNsBasic",
2478 "name": "managedObjectDNsBasic_record",
2503 name: CDSDeleteResponsePayloadType
2507 name: CDSDeleteResponsePayloadType
2510 schemaDefinition: |-
2512 "name": "DeleteResponsePayloadEntry",
2514 "namespace": "com.acme.avro",
2517 "name": "delete_DasH_subscription_DasH_response",
2519 "name": "delete_DasH_subscription_DasH_response",
2523 "name": "odl_DasH_response",
2525 "name": "odl_DasH_response",
2541 name: CDSDeleteSubscriptionPayloadType
2545 name: CDSDeleteSubscriptionPayloadType
2548 schemaDefinition: |-
2553 "name": "CDSRequestPayloadEntry",
2556 "name": "delete_DasH_subscription_DasH_properties",
2558 "name": "delete_DasH_subscription_DasH_properties_record",
2566 "name": "subscriptionName",
2570 "name": "administrativeState",
2574 "name": "fileBasedGP",
2578 "name": "fileLocation",
2582 "name": "measurementGroups",
2586 "name": "measurementGroups_record",
2590 "name": "measurementGroup",
2592 "name": "measurementGroup",
2596 "name": "measurementTypes",
2600 "name": "measurementTypes_record",
2604 "name": "measurementType",
2612 "name": "managedObjectDNsBasic",
2616 "name": "managedObjectDNsBasic_record",
2641 name: CDSRequestCommonHeaderType
2645 name: CDSRequestCommonHeaderType
2648 schemaDefinition: |-
2651 "name": "RequestCommonHeader_Type",
2652 "namespace": "org.onap.policy.apex.onap.helloworld",
2655 "name": "originatorId",
2659 "name": "requestId",
2663 "name": "subRequestId",
2669 name: CDSResponseCommonHeaderType
2673 name: CDSResponseCommonHeaderType
2676 schemaDefinition: |-
2679 "name": "ResponseCommonHeader_Type",
2680 "namespace": "org.onap.policy.apex.onap.helloworld",
2683 "name": "originatorId",
2687 "name": "requestId",
2691 "name": "subRequestId",
2695 "name": "timestamp",
2700 "type": ["null", "string"]
2705 name: CDSResponseStatusType
2709 name: CDSResponseStatusType
2712 schemaDefinition: |-
2715 "name": "ResponseStatus_Type",
2716 "namespace": "org.onap.policy.apex.onap.helloworld",
2723 "name": "eventType",
2727 "name": "timestamp",
2737 name: PMSubscriptionType
2741 name: PMSubscriptionType
2744 schemaDefinition: "{\n\t\"name\": \"PMSubscription\",\n\t\"type\": \"record\",\n\t\"namespace\": \"\
2745 org.onap.policy.apex.onap.pmcontrol\",\n\t\"fields\": [\n {\n \"name\": \"nfName\"\
2746 ,\n \"type\": \"string\"\n },\n\t {\n\t\t\t\"name\": \"changeType\",\n\t\t\t\"\
2747 type\": \"string\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"closedLoopControlName\",\n\t\t\t\"type\": \"\
2748 string\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"policyName\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\
2749 {\n\t\t \"name\": \"blueprintName\",\n\t\t \"type\": \"string\"\n\t\t},\n\t\t{\n\t\t \"name\"\
2750 : \"blueprintVersion\",\n\t\t \"type\": \"string\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"subscription\"\
2751 ,\n\t\t\t\"type\": {\n\t\t\t\t\"name\": \"subscription\",\n\t\t\t\t\"type\": \"record\",\n\t\t\t\t\
2752 \"fields\": [{\n\t\t\t\t\t\t\"name\": \"subscriptionName\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\
2753 \t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"administrativeState\",\n\t\t\t\t\t\t\"type\": \"string\"\
2754 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"fileBasedGP\",\n\t\t\t\t\t\t\"type\": \"int\"\
2755 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"fileLocation\",\n\t\t\t\t\t\t\"type\": \"string\"\
2756 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"measurementGroups\",\n\t\t\t\t\t\t\"type\": {\n\
2757 \t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\"name\": \"Measurement_Groups_Type\"\
2758 ,\n\t\t\t\t\t\t\t\t\"type\": \"record\",\n\t\t\t\t\t\t\t\t\"fields\": [{\n\t\t\t\t\t\t\t\t\t\"name\"\
2759 : \"measurementGroup\",\n\t\t\t\t\t\t\t\t\t\"type\": {\n\t\t\t\t\t\t\t\t\t\t\"name\": \"Measurement_Group_Type\"\
2760 ,\n\t\t\t\t\t\t\t\t\t\t\"type\": \"record\",\n\t\t\t\t\t\t\t\t\t\t\"fields\": [{\n\t\t\t\t\t\t\t\t\
2761 \t\t\t\t\"name\": \"measurementTypes\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"type\": {\n\t\t\t\t\t\t\t\t\t\t\
2762 \t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\
2763 name\": \"Measurement_Types_Type\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"record\",\n\t\t\t\t\t\
2764 \t\t\t\t\t\t\t\t\t\"fields\": [{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"name\": \"measurementType\",\n\t\
2765 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t\t\t\
2766 \t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\
2767 \t\t\t\t\t\t\t\t\"name\": \"managedObjectDNsBasic\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"type\": {\n\t\t\t\t\
2768 \t\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\
2769 \t\t\t\t\t\"name\": \"Managed_Object_Dns_Basic_Type\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"record\"\
2770 ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"fields\": [{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"name\": \"DN\",\n\t\
2771 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t\t\t\
2772 \t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\
2773 \t\t\t\t}\n\t\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\
2783 schemaDefinition: java.lang.Integer
2785 name: SimpleStringType
2789 name: SimpleStringType
2792 schemaDefinition: java.lang.String
2794 name: SubscriptionStatusType
2798 name: SubscriptionStatusType
2801 schemaDefinition: |-
2804 "name": "ActivateSubscriptionStatus_Type",
2805 "namespace": "org.onap.policy.apex.onap.helloworld",
2808 "name": "subscriptionName",
2816 "name": "changeType",
2826 name: SubscriptionType
2830 name: SubscriptionType
2833 schemaDefinition: "{\n\t\"name\": \"subscription\",\n\t\"type\": \"record\",\n\t\"fields\": [{\n\t\t\
2834 \t\"name\": \"subscriptionName\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"administrativeState\"\
2835 ,\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"fileBasedGP\",\n\t\t\t\"type\": \"\
2836 int\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"fileLocation\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\
2837 {\n\t\t\t\"name\": \"measurementGroups\",\n\t\t\t\"type\": {\n\t\t\t\t\"type\": \"array\",\n\t\t\t\
2838 \t\"items\": {\n\t\t\t\t\t\"name\": \"Measurement_Groups_Type\",\n\t\t\t\t\t\"type\": \"record\",\n\
2839 \t\t\t\t\t\"fields\": [{\n\t\t\t\t\t\t\"name\": \"measurementGroup\",\n\t\t\t\t\t\t\"type\": {\n\t\
2840 \t\t\t\t\t\t\"name\": \"Measurement_Group_Type\",\n\t\t\t\t\t\t\t\"type\": \"record\",\n\t\t\t\t\t\
2841 \t\t\"fields\": [{\n\t\t\t\t\t\t\t\t\t\"name\": \"measurementTypes\",\n\t\t\t\t\t\t\t\t\t\"type\"\
2842 : {\n\t\t\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\
2843 \t\t\"name\": \"Measurement_Types_Type\",\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"record\",\n\t\t\t\t\t\
2844 \t\t\t\t\t\t\"fields\": [{\n\t\t\t\t\t\t\t\t\t\t\t\t\"name\": \"measurementType\",\n\t\t\t\t\t\t\t\
2845 \t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\
2846 }\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"name\": \"managedObjectDNsBasic\",\n\
2847 \t\t\t\t\t\t\t\t\t\"type\": {\n\t\t\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\t\t\"items\"\
2848 : {\n\t\t\t\t\t\t\t\t\t\t\t\"name\": \"Managed_Object_Dns_Basic_Type\",\n\t\t\t\t\t\t\t\t\t\t\t\"\
2849 type\": \"record\",\n\t\t\t\t\t\t\t\t\t\t\t\"fields\": [{\n\t\t\t\t\t\t\t\t\t\t\t\t\"name\": \"DN\"\
2850 ,\n\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t\t\t\t\t}\n\
2851 \t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t}]\n\t\t\t\t}\n\t\
2852 \t\t}\n\t\t}\n\t]\n}"
2861 schemaDefinition: java.util.UUID
2865 parameterClassName: org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters
2867 parameterClassName: org.onap.policy.apex.context.parameters.ContextParameters
2870 parameterClassName: org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters
2872 parameterClassName: org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters
2875 adaptedClass: java.time.Instant
2876 adaptorClass: org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter
2877 eventInputParameters:
2879 carrierTechnologyParameters:
2880 carrierTechnology: RESTCLIENT
2881 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
2883 consumerPollTime: '50'
2884 url: https://message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT/cg1/sg1
2885 eventProtocolParameters:
2888 nameAlias: policyName
2889 eventName: pmsh-operational-policy
2890 eventNameFilter: pmsh-operational-policy
2892 carrierTechnologyParameters:
2893 carrierTechnology: RESTREQUESTOR
2894 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2896 url: http://10.10.10.184:30254/api/v1/execution-service/process
2898 restRequestTimeout: 2000
2901 - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==
2902 eventProtocolParameters:
2904 eventName: CDSCreateResponseEvent
2905 eventNameFilter: CDSCreateResponseEvent
2907 requestorPeer: CDSRequestProducer
2908 requestorTimeout: 500
2909 CDSDeleteRequestConsumer:
2910 carrierTechnologyParameters:
2911 carrierTechnology: RESTREQUESTOR
2912 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2914 url: http://10.10.10.184:30254/api/v1/execution-service/process
2916 restRequestTimeout: 2000
2919 - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==
2920 eventProtocolParameters:
2922 eventName: CDSDeleteResponseEvent
2923 eventNameFilter: CDSDeleteResponseEvent
2925 requestorPeer: CDSDeleteRequestProducer
2926 requestorTimeout: 500
2928 carrierTechnologyParameters:
2929 carrierTechnology: RESTREQUESTOR
2930 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2932 url: https://message-router:3905/events/unauthenticated.PMSH_CL_INPUT
2934 restRequestTimeout: 2000
2935 eventProtocolParameters:
2937 eventName: MRResponseEvent
2938 eventNameFilter: MRResponseEvent
2940 requestorPeer: CDSReplyProducer
2941 requestorTimeout: 500
2942 eventOutputParameters:
2944 carrierTechnologyParameters:
2945 carrierTechnology: FILE
2947 fileName: /tmp/outputevents.log
2948 eventProtocolParameters:
2951 carrierTechnologyParameters:
2952 carrierTechnology: FILE
2955 eventProtocolParameters:
2958 carrierTechnologyParameters:
2959 carrierTechnology: RESTREQUESTOR
2960 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2961 eventProtocolParameters:
2963 eventNameFilter: CDSCreateSubscriptionRequestEvent
2965 requestorPeer: CDSRequestConsumer
2966 requestorTimeout: 500
2967 CDSDeleteRequestProducer:
2968 carrierTechnologyParameters:
2969 carrierTechnology: RESTREQUESTOR
2970 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2971 eventProtocolParameters:
2973 eventNameFilter: CDSDeleteSubscriptionRequestEvent
2975 requestorPeer: CDSDeleteRequestConsumer
2976 requestorTimeout: 500
2978 carrierTechnologyParameters:
2979 carrierTechnology: RESTREQUESTOR
2980 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2981 eventProtocolParameters:
2983 eventNameFilter: CDSResponseStatusEvent
2985 requestorPeer: CDSReplyConsumer
2986 requestorTimeout: 500