Added docs for smoke testing the GUI
[policy/parent.git] / docs / development / devtools / tosca / tosca-for-gui-smoke-tests.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 data_types:
3   onap.datatypes.ToscaConceptIdentifier:
4     derived_from: tosca.datatypes.Root
5     properties:
6       name:
7         type: string
8         required: true
9       version:
10         type: string
11         required: true
12   org.onap.datatypes.policy.clamp.controlloop.DCAEMicroserviceControlLoopElementConsulInfo:
13     name: org.onap.datatypes.policy.clamp.controlloop.DCAEMicroserviceControlLoopElementConsulInfo
14     version: 0.0.0
15     derived_from: tosca.datatypes.Root
16     properties:
17       consulUrl:
18         name: consulUrl
19         type: string
20         typeVersion: 0.0.0
21         description: Consul url for this entry
22         required: true
23       consul_body:
24         name: consulBody
25         type: string
26         typeVersion: 0.0.0
27         description: Body of Consul entry
28         required: true
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
32     properties:
33       targetType:
34         type: string
35         description: Category for the target type
36         required: true
37         constraints:
38           - valid_values:
39               - VNF
40               - VM
41               - VFMODULE
42               - PNF
43       entityIds:
44         type: map
45         description: |
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.
48         required: false
49         metadata:
50           clamp_possible_values: ClampExecution:CSAR_RESOURCES
51         entry_schema:
52           type: string
53   onap.datatype.controlloop.Actor:
54     derived_from: tosca.datatypes.Root
55     description: An actor/operation/target definition
56     properties:
57       actor:
58         type: string
59         description: The actor performing the operation.
60         required: true
61         metadata:
62           clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor
63       operation:
64         type: string
65         description: The operation the actor is performing.
66         metadata:
67           clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation
68         required: true
69       target:
70         type: onap.datatype.controlloop.Target
71         description: The resource the operation should be performed on.
72         required: true
73       payload:
74         type: map
75         description: Name/value pairs of payload information passed by Policy to the actor
76         required: false
77         metadata:
78           clamp_possible_values: ClampExecution:CDS/payload
79         entry_schema:
80           type: string
81   onap.datatype.controlloop.Operation:
82     derived_from: tosca.datatypes.Root
83     version: 1.0.0
84     description: An operation supported by an actor
85     properties:
86       id:
87         type: string
88         description: Unique identifier for the operation
89         required: true
90       description:
91         type: string
92         description: A user-friendly description of the intent for the operation
93         required: false
94       operation:
95         type: onap.datatype.controlloop.Actor
96         description: The definition of the operation to be performed.
97         required: true
98       timeout:
99         type: integer
100         description: The amount of time for the actor to perform the operation.
101         required: true
102       retries:
103         type: integer
104         description: The number of retries the actor should attempt to perform the operation.
105         required: true
106         default: 0
107       success:
108         type: string
109         description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.
110         required: false
111         default: final_success
112       failure:
113         type: string
114         description: Points to the operation to invoke on Actor operation failure.
115         required: false
116         default: final_failure
117       failure_timeout:
118         type: string
119         description: Points to the operation to invoke when the time out for the operation occurs.
120         required: false
121         default: final_failure_timeout
122       failure_retries:
123         type: string
124         description: Points to the operation to invoke when the current operation has exceeded its max retries.
125         required: false
126         default: final_failure_retries
127       failure_exception:
128         type: string
129         description: Points to the operation to invoke when the current operation causes an exception.
130         required: false
131         default: final_failure_exception
132       failure_guard:
133         type: string
134         description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.
135         required: false
136         default: final_failure_guard
137 policy_types:
138   onap.policies.Monitoring:
139     derived_from: tosca.policies.Root
140     description: a base policy type for all policies that govern monitoring provisioning
141     version: 1.0.0
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
146     version: 1.0.0
147     name: onap.policies.Sirisha
148   onap.policies.controlloop.operational.Common:
149     derived_from: tosca.policies.Root
150     version: 1.0.1
151     name: onap.policies.controlloop.operational.Common
152     description: |
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.
155     properties:
156       id:
157         type: string
158         description: The unique control loop id.
159         required: true
160       timeout:
161         type: integer
162         description: |
163           Overall timeout for executing all the operations. This timeout should equal or exceed the total
164           timeout for each operation listed.
165         required: true
166       abatement:
167         type: boolean
168         description: Whether an abatement event message will be expected for the control loop from DCAE.
169         required: true
170         default: false
171       trigger:
172         type: string
173         description: Initial operation to execute upon receiving an Onset event message for the Control Loop.
174         required: true
175       operations:
176         type: list
177         description: List of operations to be performed when Control Loop is triggered.
178         required: true
179         entry_schema:
180           type: onap.datatype.controlloop.Operation
181   onap.policies.controlloop.operational.common.Apex:
182     derived_from: onap.policies.controlloop.operational.Common
183     type_version: 1.0.0
184     version: 1.0.0
185     name: onap.policies.controlloop.operational.common.Apex
186     description: Operational policies for Apex PDP
187     properties:
188       engineServiceParameters:
189         type: string
190         description: The engine parameters like name, instanceCount, policy implementation, parameters etc.
191         required: true
192       eventInputParameters:
193         type: string
194         description: The event input parameters.
195         required: true
196       eventOutputParameters:
197         type: string
198         description: The event output parameters.
199         required: true
200       javaProperties:
201         type: string
202         description: Name/value pairs of properties to be set for APEX if needed.
203         required: false
204 node_types:
205   org.onap.policy.clamp.controlloop.Participant:
206     version: 1.0.1
207     derived_from: tosca.nodetypes.Root
208     properties:
209       provider:
210         type: string
211         requred: false
212   org.onap.policy.clamp.controlloop.ControlLoopElement:
213     version: 1.0.1
214     derived_from: tosca.nodetypes.Root
215     properties:
216       provider:
217         type: string
218         required: false
219         metadata:
220           common: true
221         description: Specifies the organization that provides the control loop element
222       participantType:
223         type: onap.datatypes.ToscaConceptIdentifier
224         required: true
225         metadata:
226           common: true
227         description: The identity of the participant type that hosts this type of Control Loop Element
228       startPhase:
229         type: integer
230         required: false
231         constraints:
232           - greater_or_equal: 0
233         metadata:
234           common: true
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:
240         type: integer
241         required: false
242         constraints:
243           - greater_or_equal: 0
244         default: 60
245         metadata:
246           common: true
247         description: The maximum time in seconds to wait for a state chage from uninitialized to passive
248       passiveToRunningTimeout:
249         type: integer
250         required: false
251         constraints:
252           - greater_or_equal: 0
253         default: 60
254         metadata:
255           common: true
256         description: The maximum time in seconds to wait for a state chage from passive to running
257       runningToPassiveTimeout:
258         type: integer
259         required: false
260         constraints:
261           - greater_or_equal: 0
262         default: 60
263         metadata:
264           common: true
265         description: The maximum time in seconds to wait for a state chage from running to passive
266       passiveToUninitializedTimeout:
267         type: integer
268         required: false
269         constraints:
270           - greater_or_equal: 0
271         default: 60
272         metadata:
273           common: true
274         description: The maximum time in seconds to wait for a state chage from passive to uninitialized
275   org.onap.policy.clamp.controlloop.ControlLoop:
276     version: 1.0.1
277     derived_from: tosca.nodetypes.Root
278     properties:
279       provider:
280         type: string
281         required: false
282         metadata:
283           common: true
284         description: Specifies the organization that provides the control loop element
285       elements:
286         type: list
287         required: true
288         metadata:
289           common: true
290         entry_schema:
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:
294     version: 1.0.1
295     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
296     properties:
297       dcae_blueprint_id:
298         type: onap.datatypes.ToscaConceptIdentifier
299         requred: false
300       dcae_blueprint:
301         type: onap.dcae.cloudify_blueprint
302         requred: false
303       consul_info:
304         type: list
305         required: false
306         entry_schema:
307           type: org.onap.datatypes.policy.clamp.controlloop.DCAEMicroserviceControlLoopElementConsulInfo
308   org.onap.policy.clamp.controlloop.PolicyControlLoopElement:
309     version: 1.0.1
310     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
311     properties:
312       policy_type_id:
313         type: onap.datatypes.ToscaConceptIdentifier
314         requred: true
315       policy_id:
316         type: onap.datatypes.ToscaConceptIdentifier
317         requred: false
318   org.onap.policy.clamp.controlloop.DerivedPolicyControlLoopElement:
319     version: 1.0.1
320     derived_from: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
321     properties:
322       policy_type_id:
323         type: onap.datatypes.ToscaConceptIdentifier
324         requred: true
325       policy_id:
326         type: onap.datatypes.ToscaConceptIdentifier
327         requred: false
328   org.onap.policy.clamp.controlloop.DerivedDerivedPolicyControlLoopElement:
329     version: 1.0.1
330     derived_from: org.onap.policy.clamp.controlloop.DerivedPolicyControlLoopElement
331     properties:
332       policy_type_id:
333         type: onap.datatypes.ToscaConceptIdentifier
334         requred: true
335       policy_id:
336         type: onap.datatypes.ToscaConceptIdentifier
337         requred: false
338   org.onap.policy.clamp.controlloop.CDSControlLoopElement:
339     version: 1.0.1
340     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
341     properties:
342       cds_blueprint_id:
343         type: onap.datatypes.ToscaConceptIdentifier
344         requred: true
345 topology_template:
346   inputs:
347     pmsh_monitoring_policy:
348       type: onap.datatypes.ToscaConceptIdentifier
349       description: The ID of the PMSH monitoring policy to use
350       default:
351         name: MICROSERVICE_vLoadBalancerMS_v1_0_dcae-pm-subscription-handler_1_0_0test
352         version: 1.0.0
353     pmsh_operational_policy:
354       type: onap.datatypes.ToscaConceptIdentifier
355       description: The ID of the PMSH operational policy to use
356       default:
357         name: operational.apex.pmcontrol
358         version: 1.0.0
359   node_templates:
360     org.onap.policy.controlloop.PolicyControlLoopParticipant:
361       version: 2.3.1
362       type: org.onap.policy.clamp.controlloop.Participant
363       type_version: 1.0.1
364       description: Participant for DCAE microservices
365       properties:
366         provider: ONAP
367     org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement:
368       version: 1.2.3
369       type: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
370       type_version: 1.0.0
371       description: Control loop element for the monitoring policy for Performance Management Subscription Handling
372       properties:
373         provider: Ericsson
374         participant_id:
375           name: org.onap.PM_Policy
376           version: 1.0.0
377         participantType:
378           name: org.onap.policy.controlloop.PolicyControlLoopParticipant
379           version: 2.3.1
380         policy_type_id:
381           name: onap.policies.monitoring.pm-subscription-handler
382           version: 1.0.0
383         policy_id:
384           get_input: pmsh_monitoring_policy
385     org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement:
386       version: 1.2.3
387       type: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
388       type_version: 1.0.0
389       description: Control loop element for the operational policy for Performance Management Subscription Handling
390       properties:
391         provider: Ericsson
392         participant_id:
393           name: org.onap.PM_Policy
394           version: 1.0.0
395         participantType:
396           name: org.onap.policy.controlloop.PolicyControlLoopParticipant
397           version: 2.3.1
398         policy_type_id:
399           name: onap.policies.operational.pm-subscription-handler
400           version: 1.0.0
401         policy_id:
402           get_input: pmsh_operational_policy
403     org.onap.domain.pmsh.PMSHControlLoopDefinition:
404       version: 1.2.3
405       type: org.onap.policy.clamp.controlloop.ControlLoop
406       type_version: 1.0.0
407       description: Control loop for Performance Management Subscription Handling
408       properties:
409         provider: Ericsson
410         elements:
411           - name: org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement
412             version: 1.2.3
413           - name: org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement
414             version: 1.2.3
415   policies:
416     - operational.apex.pmcontrol:
417         type: onap.policies.controlloop.operational.common.Apex
418         type_version: 1.0.0
419         version: 1.0.0
420         metadata:
421           policy-id: operational.apex.pmcontrol
422           policy-version: 1
423         properties:
424           engineServiceParameters:
425             name: MyApexEngine
426             version: 0.0.1
427             id: 45
428             instanceCount: 2
429             deploymentPort: 12561
430             policy_type_impl:
431               apexPolicyModel:
432                 key:
433                   name: PMControlPolicy
434                   version: 0.0.1
435                 keyInformation:
436                   key:
437                     name: PMControlPolicy_KeyInfo
438                     version: 0.0.1
439                   keyInfoMap:
440                     entry:
441                       - key:
442                           name: CDSActionIdentifiersType
443                           version: 0.0.1
444                         value:
445                           key:
446                             name: CDSActionIdentifiersType
447                             version: 0.0.1
448                           UUID: 6e5fa19b-14df-37e3-a4ae-8c537e861a82
449                           description: Generated description for concept referred to by key "CDSActionIdentifiersType:0.0.1"
450                       - key:
451                           name: CDSCreateResponseEvent
452                           version: 0.0.1
453                         value:
454                           key:
455                             name: CDSCreateResponseEvent
456                             version: 0.0.1
457                           UUID: 14b29e38-ac75-3273-aa4e-8583c0aa7dad
458                           description: Generated description for concept referred to by key "CDSCreateResponseEvent:0.0.1"
459                       - key:
460                           name: CDSCreateResponsePayloadType
461                           version: 0.0.1
462                         value:
463                           key:
464                             name: CDSCreateResponsePayloadType
465                             version: 0.0.1
466                           UUID: 04573f8f-e772-30a5-b1d9-d7318d4a1e13
467                           description: Generated description for concept referred to by key "CDSCreateResponsePayloadType:0.0.1"
468                       - key:
469                           name: CDSCreateResponsePolicy
470                           version: 0.0.1
471                         value:
472                           key:
473                             name: CDSCreateResponsePolicy
474                             version: 0.0.1
475                           UUID: e126c965-fc09-3bfe-8f55-70f380a4a49c
476                           description: Generated description for concept referred to by key "CDSCreateResponsePolicy:0.0.1"
477                       - key:
478                           name: CDSCreateResponseTask
479                           version: 0.0.1
480                         value:
481                           key:
482                             name: CDSCreateResponseTask
483                             version: 0.0.1
484                           UUID: 6165ee82-afd2-3aab-a517-f00b3f2461d2
485                           description: Generated description for concept referred to by key "CDSCreateResponseTask:0.0.1"
486                       - key:
487                           name: CDSCreateSubscriptionPayloadType
488                           version: 0.0.1
489                         value:
490                           key:
491                             name: CDSCreateSubscriptionPayloadType
492                             version: 0.0.1
493                           UUID: 8350ac5e-c157-38b9-9614-a0f93a830e60
494                           description: Generated description for concept referred to by key "CDSCreateSubscriptionPayloadType:0.0.1"
495                       - key:
496                           name: CDSCreateSubscriptionRequestEvent
497                           version: 0.0.1
498                         value:
499                           key:
500                             name: CDSCreateSubscriptionRequestEvent
501                             version: 0.0.1
502                           UUID: cfa325ba-226b-3a31-9183-ec43e2b6e9a2
503                           description: Generated description for concept referred to by key "CDSCreateSubscriptionRequestEvent:0.0.1"
504                       - key:
505                           name: CDSDeleteResponseEvent
506                           version: 0.0.1
507                         value:
508                           key:
509                             name: CDSDeleteResponseEvent
510                             version: 0.0.1
511                           UUID: 8be9c0fa-7437-3841-aff2-b3cec6ae3bd8
512                           description: Generated description for concept referred to by key "CDSDeleteResponseEvent:0.0.1"
513                       - key:
514                           name: CDSDeleteResponsePayloadType
515                           version: 0.0.1
516                         value:
517                           key:
518                             name: CDSDeleteResponsePayloadType
519                             version: 0.0.1
520                           UUID: 3fbfe0c9-152e-34d3-a504-09cd13c058d0
521                           description: Generated description for concept referred to by key "CDSDeleteResponsePayloadType:0.0.1"
522                       - key:
523                           name: CDSDeleteResponsePolicy
524                           version: 0.0.1
525                         value:
526                           key:
527                             name: CDSDeleteResponsePolicy
528                             version: 0.0.1
529                           UUID: a780251c-edd5-3132-b865-04313246b43c
530                           description: Generated description for concept referred to by key "CDSDeleteResponsePolicy:0.0.1"
531                       - key:
532                           name: CDSDeleteResponseTask
533                           version: 0.0.1
534                         value:
535                           key:
536                             name: CDSDeleteResponseTask
537                             version: 0.0.1
538                           UUID: afce4555-3aa3-3521-a7d8-ee8cdf0d3efc
539                           description: Generated description for concept referred to by key "CDSDeleteResponseTask:0.0.1"
540                       - key:
541                           name: CDSDeleteSubscriptionPayloadType
542                           version: 0.0.1
543                         value:
544                           key:
545                             name: CDSDeleteSubscriptionPayloadType
546                             version: 0.0.1
547                           UUID: 12658406-9147-3c9d-a38c-5ad5e30b092b
548                           description: Generated description for concept referred to by key "CDSDeleteSubscriptionPayloadType:0.0.1"
549                       - key:
550                           name: CDSDeleteSubscriptionRequestEvent
551                           version: 0.0.1
552                         value:
553                           key:
554                             name: CDSDeleteSubscriptionRequestEvent
555                             version: 0.0.1
556                           UUID: 24380c95-9289-36e6-8cbf-0edefa15ccd9
557                           description: Generated description for concept referred to by key "CDSDeleteSubscriptionRequestEvent:0.0.1"
558                       - key:
559                           name: CDSRequestCommonHeaderType
560                           version: 0.0.1
561                         value:
562                           key:
563                             name: CDSRequestCommonHeaderType
564                             version: 0.0.1
565                           UUID: 35590ac0-062c-39f1-8786-b4ff716e30b1
566                           description: Generated description for concept referred to by key "CDSRequestCommonHeaderType:0.0.1"
567                       - key:
568                           name: CDSResponseCommonHeaderType
569                           version: 0.0.1
570                         value:
571                           key:
572                             name: CDSResponseCommonHeaderType
573                             version: 0.0.1
574                           UUID: dd7e1805-885a-350b-aaf9-ed541321ae3c
575                           description: Generated description for concept referred to by key "CDSResponseCommonHeaderType:0.0.1"
576                       - key:
577                           name: CDSResponseStatusEvent
578                           version: 0.0.1
579                         value:
580                           key:
581                             name: CDSResponseStatusEvent
582                             version: 0.0.1
583                           UUID: 7986e21b-32f7-302e-9554-31f21b673493
584                           description: Generated description for concept referred to by key "CDSResponseStatusEvent:0.0.1"
585                       - key:
586                           name: CDSResponseStatusType
587                           version: 0.0.1
588                         value:
589                           key:
590                             name: CDSResponseStatusType
591                             version: 0.0.1
592                           UUID: 92b8a2cf-344e-3ce1-8cc0-2b7d3cb695fa
593                           description: Generated description for concept referred to by key "CDSResponseStatusType:0.0.1"
594                       - key:
595                           name: CreateSubscriptionPayloadEvent
596                           version: 0.0.1
597                         value:
598                           key:
599                             name: CreateSubscriptionPayloadEvent
600                             version: 0.0.1
601                           UUID: 92162397-1a8e-3a3f-a469-d2af7700af4a
602                           description: Generated description for concept referred to by key "CreateSubscriptionPayloadEvent:0.0.1"
603                       - key:
604                           name: CreateSubscriptionPayloadTask
605                           version: 0.0.1
606                         value:
607                           key:
608                             name: CreateSubscriptionPayloadTask
609                             version: 0.0.1
610                           UUID: bc0c69f0-52ed-38ea-b468-ae4a6fd1730d
611                           description: Generated description for concept referred to by key "CreateSubscriptionPayloadTask:0.0.1"
612                       - key:
613                           name: CreateSubscriptionRequestTask
614                           version: 0.0.1
615                         value:
616                           key:
617                             name: CreateSubscriptionRequestTask
618                             version: 0.0.1
619                           UUID: 89cb75e9-f06c-30d3-b4ff-698d45f63869
620                           description: Generated description for concept referred to by key "CreateSubscriptionRequestTask:0.0.1"
621                       - key:
622                           name: DeleteSubscriptionPayloadEvent
623                           version: 0.0.1
624                         value:
625                           key:
626                             name: DeleteSubscriptionPayloadEvent
627                             version: 0.0.1
628                           UUID: 994fa441-04ab-33bb-832d-1cd12ab5d074
629                           description: Generated description for concept referred to by key "DeleteSubscriptionPayloadEvent:0.0.1"
630                       - key:
631                           name: DeleteSubscriptionPayloadTask
632                           version: 0.0.1
633                         value:
634                           key:
635                             name: DeleteSubscriptionPayloadTask
636                             version: 0.0.1
637                           UUID: 0f519117-5fea-3e4b-941f-8f778100465f
638                           description: Generated description for concept referred to by key "DeleteSubscriptionPayloadTask:0.0.1"
639                       - key:
640                           name: DeleteSubscriptionRequestTask
641                           version: 0.0.1
642                         value:
643                           key:
644                             name: DeleteSubscriptionRequestTask
645                             version: 0.0.1
646                           UUID: acb772fe-d442-39e3-98f9-b1080caf4150
647                           description: Generated description for concept referred to by key "DeleteSubscriptionRequestTask:0.0.1"
648                       - key:
649                           name: MRResponseEvent
650                           version: 0.0.1
651                         value:
652                           key:
653                             name: MRResponseEvent
654                             version: 0.0.1
655                           UUID: 13c747a3-6bae-3bcf-9c80-b152e01dc194
656                           description: Generated description for concept referred to by key "MRResponseEvent:0.0.1"
657                       - key:
658                           name: PMControlPolicy
659                           version: 0.0.1
660                         value:
661                           key:
662                             name: PMControlPolicy
663                             version: 0.0.1
664                           UUID: acf1e55c-7bc5-3bd5-975a-0ca54afcd8a4
665                           description: Generated description for concept referred to by key "PMControlPolicy:0.0.1"
666                       - key:
667                           name: PMControlPolicy_Albums
668                           version: 0.0.1
669                         value:
670                           key:
671                             name: PMControlPolicy_Albums
672                             version: 0.0.1
673                           UUID: b38ad204-c2c8-32f4-9b5a-dda0aeb0145b
674                           description: Generated description for concept referred to by key "PMControlPolicy_Albums:0.0.1"
675                       - key:
676                           name: PMControlPolicy_Events
677                           version: 0.0.1
678                         value:
679                           key:
680                             name: PMControlPolicy_Events
681                             version: 0.0.1
682                           UUID: be3871a0-c42a-3113-a066-82d192840eca
683                           description: Generated description for concept referred to by key "PMControlPolicy_Events:0.0.1"
684                       - key:
685                           name: PMControlPolicy_KeyInfo
686                           version: 0.0.1
687                         value:
688                           key:
689                             name: PMControlPolicy_KeyInfo
690                             version: 0.0.1
691                           UUID: ced37634-28a4-3178-b7f6-2980794927b0
692                           description: Generated description for concept referred to by key "PMControlPolicy_KeyInfo:0.0.1"
693                       - key:
694                           name: PMControlPolicy_Policies
695                           version: 0.0.1
696                         value:
697                           key:
698                             name: PMControlPolicy_Policies
699                             version: 0.0.1
700                           UUID: be3d180d-ef9c-3a75-8e9c-84271a038bed
701                           description: Generated description for concept referred to by key "PMControlPolicy_Policies:0.0.1"
702                       - key:
703                           name: PMControlPolicy_Schemas
704                           version: 0.0.1
705                         value:
706                           key:
707                             name: PMControlPolicy_Schemas
708                             version: 0.0.1
709                           UUID: e61973f1-189c-39e5-82f6-0d3afe298a20
710                           description: Generated description for concept referred to by key "PMControlPolicy_Schemas:0.0.1"
711                       - key:
712                           name: PMControlPolicy_Tasks
713                           version: 0.0.1
714                         value:
715                           key:
716                             name: PMControlPolicy_Tasks
717                             version: 0.0.1
718                           UUID: 5658adb3-2962-30a3-a241-fae75bb8eb4a
719                           description: Generated description for concept referred to by key "PMControlPolicy_Tasks:0.0.1"
720                       - key:
721                           name: PMSubscriptionAlbum
722                           version: 0.0.1
723                         value:
724                           key:
725                             name: PMSubscriptionAlbum
726                             version: 0.0.1
727                           UUID: c2bd6f0d-6854-317a-9be2-97c08338428c
728                           description: Generated description for concept referred to by key "PMSubscriptionAlbum:0.0.1"
729                       - key:
730                           name: PMSubscriptionOutputEvent
731                           version: 0.0.1
732                         value:
733                           key:
734                             name: PMSubscriptionOutputEvent
735                             version: 0.0.1
736                           UUID: 992b7819-9f69-3aa0-bb0f-6e45ea15ce05
737                           description: Generated description for concept referred to by key "PMSubscriptionOutputEvent:0.0.1"
738                       - key:
739                           name: PMSubscriptionType
740                           version: 0.0.1
741                         value:
742                           key:
743                             name: PMSubscriptionType
744                             version: 0.0.1
745                           UUID: 73c1c397-4fc3-357f-93b6-a8ad707fbaae
746                           description: Generated description for concept referred to by key "PMSubscriptionType:0.0.1"
747                       - key:
748                           name: ReceiveEventPolicy
749                           version: 0.0.1
750                         value:
751                           key:
752                             name: ReceiveEventPolicy
753                             version: 0.0.1
754                           UUID: 568b7345-9de1-36d3-b6a3-9b857e6809a1
755                           description: Generated description for concept referred to by key "ReceiveEventPolicy:0.0.1"
756                       - key:
757                           name: ReceiveSubscriptionTask
758                           version: 0.0.1
759                         value:
760                           key:
761                             name: ReceiveSubscriptionTask
762                             version: 0.0.1
763                           UUID: f596afc8-100c-35eb-92c8-352355ea457d
764                           description: Generated description for concept referred to by key "ReceiveSubscriptionTask:0.0.1"
765                       - key:
766                           name: SimpleIntType
767                           version: 0.0.1
768                         value:
769                           key:
770                             name: SimpleIntType
771                             version: 0.0.1
772                           UUID: 153791fd-ae0a-36a7-88a5-309a7936415d
773                           description: Generated description for concept referred to by key "SimpleIntType:0.0.1"
774                       - key:
775                           name: SimpleStringType
776                           version: 0.0.1
777                         value:
778                           key:
779                             name: SimpleStringType
780                             version: 0.0.1
781                           UUID: 8a4957cf-9493-3a76-8c22-a208e23259af
782                           description: Generated description for concept referred to by key "SimpleStringType:0.0.1"
783                       - key:
784                           name: SubscriptionStatusType
785                           version: 0.0.1
786                         value:
787                           key:
788                             name: SubscriptionStatusType
789                             version: 0.0.1
790                           UUID: 597643b1-9db1-31ce-85d0-e1c63c43b30b
791                           description: Generated description for concept referred to by key "SubscriptionStatusType:0.0.1"
792                       - key:
793                           name: SubscriptionType
794                           version: 0.0.1
795                         value:
796                           key:
797                             name: SubscriptionType
798                             version: 0.0.1
799                           UUID: 184547bb-7d64-3cb2-a273-d7185102c5ce
800                           description: Generated description for concept referred to by key "SubscriptionType:0.0.1"
801                       - key:
802                           name: UUIDType
803                           version: 0.0.1
804                         value:
805                           key:
806                             name: UUIDType
807                             version: 0.0.1
808                           UUID: 6a8cc68e-dfc8-3403-9c6d-071c886b319c
809                           description: Generated description for concept referred to by key "UUIDType:0.0.1"
810                       - key:
811                           name: pmsh-operational-policy
812                           version: 0.0.1
813                         value:
814                           key:
815                             name: pmsh-operational-policy
816                             version: 0.0.1
817                           UUID: fdf2c9ff-6422-3ea6-b6b6-49b12116265d
818                           description: Generated description for concept referred to by key "pmsh-operational-policy:0.0.1"
819                 policies:
820                   key:
821                     name: PMControlPolicy_Policies
822                     version: 0.0.1
823                   policyMap:
824                     entry:
825                       - key:
826                           name: CDSCreateResponsePolicy
827                           version: 0.0.1
828                         value:
829                           policyKey:
830                             name: CDSCreateResponsePolicy
831                             version: 0.0.1
832                           template: Freestyle
833                           state:
834                             entry:
835                               - key: CDSCreateResponseState
836                                 value:
837                                   stateKey:
838                                     parentKeyName: CDSCreateResponsePolicy
839                                     parentKeyVersion: 0.0.1
840                                     parentLocalName: 'NULL'
841                                     localName: CDSCreateResponseState
842                                   trigger:
843                                     name: CDSCreateResponseEvent
844                                     version: 0.0.1
845                                   stateOutputs:
846                                     entry:
847                                       - key: ResponseOutput
848                                         value:
849                                           key:
850                                             parentKeyName: CDSCreateResponsePolicy
851                                             parentKeyVersion: 0.0.1
852                                             parentLocalName: CDSCreateResponseState
853                                             localName: ResponseOutput
854                                           outgoingEvent:
855                                             name: CDSResponseStatusEvent
856                                             version: 0.0.1
857                                           nextState:
858                                             parentKeyName: 'NULL'
859                                             parentKeyVersion: 0.0.0
860                                             parentLocalName: 'NULL'
861                                             localName: 'NULL'
862                                   contextAlbumReference: []
863                                   taskSelectionLogic:
864                                     key: 'NULL'
865                                     logicFlavour: UNDEFINED
866                                     logic: ''
867                                   stateFinalizerLogicMap:
868                                     entry: []
869                                   defaultTask:
870                                     name: CDSCreateResponseTask
871                                     version: 0.0.1
872                                   taskReferences:
873                                     entry:
874                                       - key:
875                                           name: CDSCreateResponseTask
876                                           version: 0.0.1
877                                         value:
878                                           key:
879                                             parentKeyName: CDSCreateResponsePolicy
880                                             parentKeyVersion: 0.0.1
881                                             parentLocalName: CDSCreateResponseState
882                                             localName: CDSCreateResponsePolicy
883                                           outputType: DIRECT
884                                           output:
885                                             parentKeyName: CDSCreateResponsePolicy
886                                             parentKeyVersion: 0.0.1
887                                             parentLocalName: CDSCreateResponseState
888                                             localName: ResponseOutput
889                           firstState: CDSCreateResponseState
890                       - key:
891                           name: CDSDeleteResponsePolicy
892                           version: 0.0.1
893                         value:
894                           policyKey:
895                             name: CDSDeleteResponsePolicy
896                             version: 0.0.1
897                           template: Freestyle
898                           state:
899                             entry:
900                               - key: CDSDeleteResponseState
901                                 value:
902                                   stateKey:
903                                     parentKeyName: CDSDeleteResponsePolicy
904                                     parentKeyVersion: 0.0.1
905                                     parentLocalName: 'NULL'
906                                     localName: CDSDeleteResponseState
907                                   trigger:
908                                     name: CDSDeleteResponseEvent
909                                     version: 0.0.1
910                                   stateOutputs:
911                                     entry:
912                                       - key: ResponseOutput
913                                         value:
914                                           key:
915                                             parentKeyName: CDSDeleteResponsePolicy
916                                             parentKeyVersion: 0.0.1
917                                             parentLocalName: CDSDeleteResponseState
918                                             localName: ResponseOutput
919                                           outgoingEvent:
920                                             name: CDSResponseStatusEvent
921                                             version: 0.0.1
922                                           nextState:
923                                             parentKeyName: 'NULL'
924                                             parentKeyVersion: 0.0.0
925                                             parentLocalName: 'NULL'
926                                             localName: 'NULL'
927                                   contextAlbumReference: []
928                                   taskSelectionLogic:
929                                     key: 'NULL'
930                                     logicFlavour: UNDEFINED
931                                     logic: ''
932                                   stateFinalizerLogicMap:
933                                     entry: []
934                                   defaultTask:
935                                     name: CDSDeleteResponseTask
936                                     version: 0.0.1
937                                   taskReferences:
938                                     entry:
939                                       - key:
940                                           name: CDSDeleteResponseTask
941                                           version: 0.0.1
942                                         value:
943                                           key:
944                                             parentKeyName: CDSDeleteResponsePolicy
945                                             parentKeyVersion: 0.0.1
946                                             parentLocalName: CDSDeleteResponseState
947                                             localName: CDSDeleteResponsePolicy
948                                           outputType: DIRECT
949                                           output:
950                                             parentKeyName: CDSDeleteResponsePolicy
951                                             parentKeyVersion: 0.0.1
952                                             parentLocalName: CDSDeleteResponseState
953                                             localName: ResponseOutput
954                           firstState: CDSDeleteResponseState
955                       - key:
956                           name: ReceiveEventPolicy
957                           version: 0.0.1
958                         value:
959                           policyKey:
960                             name: ReceiveEventPolicy
961                             version: 0.0.1
962                           template: Freestyle
963                           state:
964                             entry:
965                               - key: CreateOrDeleteState
966                                 value:
967                                   stateKey:
968                                     parentKeyName: ReceiveEventPolicy
969                                     parentKeyVersion: 0.0.1
970                                     parentLocalName: 'NULL'
971                                     localName: CreateOrDeleteState
972                                   trigger:
973                                     name: PMSubscriptionOutputEvent
974                                     version: 0.0.1
975                                   stateOutputs:
976                                     entry:
977                                       - key: CreateSubscriptionPayload
978                                         value:
979                                           key:
980                                             parentKeyName: ReceiveEventPolicy
981                                             parentKeyVersion: 0.0.1
982                                             parentLocalName: CreateOrDeleteState
983                                             localName: CreateSubscriptionPayload
984                                           outgoingEvent:
985                                             name: CreateSubscriptionPayloadEvent
986                                             version: 0.0.1
987                                           nextState:
988                                             parentKeyName: ReceiveEventPolicy
989                                             parentKeyVersion: 0.0.1
990                                             parentLocalName: 'NULL'
991                                             localName: CreateSubscription
992                                       - key: DeleteSubscriptionPayload
993                                         value:
994                                           key:
995                                             parentKeyName: ReceiveEventPolicy
996                                             parentKeyVersion: 0.0.1
997                                             parentLocalName: CreateOrDeleteState
998                                             localName: DeleteSubscriptionPayload
999                                           outgoingEvent:
1000                                             name: DeleteSubscriptionPayloadEvent
1001                                             version: 0.0.1
1002                                           nextState:
1003                                             parentKeyName: ReceiveEventPolicy
1004                                             parentKeyVersion: 0.0.1
1005                                             parentLocalName: 'NULL'
1006                                             localName: DeleteSubscription
1007                                   contextAlbumReference:
1008                                     - name: PMSubscriptionAlbum
1009                                       version: 0.0.1
1010                                   taskSelectionLogic:
1011                                     key: TaskSelectionLogic
1012                                     logicFlavour: JAVASCRIPT
1013                                     logic: |-
1014                                       /*
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
1021                                        *
1022                                        *      http://www.apache.org/licenses/LICENSE-2.0
1023                                        *
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.
1029                                        *
1030                                        * SPDX-License-Identifier: Apache-2.0
1031                                        * ============LICENSE_END=========================================================
1032                                        */
1033
1034                                       executor.logger.info(executor.subject.id);
1035
1036                                       var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1037                                       var changeType = pmSubscriptionInfo.get("changeType").toString()
1038
1039                                       executor.logger.info("Change Type is " + changeType)
1040
1041                                       if ("CREATE".equals(changeType)) {
1042                                           executor.logger.info("Choosing to create a subscription")
1043                                           executor.subject.getTaskKey("CreateSubscriptionPayloadTask").copyTo(executor.selectedTask);
1044                                       }
1045                                       else if ("DELETE".equals(changeType)) {
1046                                           executor.logger.info("Choosing to delete a subscription")
1047                                           executor.subject.getTaskKey("DeleteSubscriptionPayloadTask").copyTo(executor.selectedTask);
1048                                       }
1049
1050                                       //var returnValue = executor.isTrue;
1051                                       true;
1052                                   stateFinalizerLogicMap:
1053                                     entry: []
1054                                   defaultTask:
1055                                     name: CreateSubscriptionPayloadTask
1056                                     version: 0.0.1
1057                                   taskReferences:
1058                                     entry:
1059                                       - key:
1060                                           name: CreateSubscriptionPayloadTask
1061                                           version: 0.0.1
1062                                         value:
1063                                           key:
1064                                             parentKeyName: ReceiveEventPolicy
1065                                             parentKeyVersion: 0.0.1
1066                                             parentLocalName: CreateOrDeleteState
1067                                             localName: ReceiveEventPolicy
1068                                           outputType: DIRECT
1069                                           output:
1070                                             parentKeyName: ReceiveEventPolicy
1071                                             parentKeyVersion: 0.0.1
1072                                             parentLocalName: CreateOrDeleteState
1073                                             localName: CreateSubscriptionPayload
1074                                       - key:
1075                                           name: DeleteSubscriptionPayloadTask
1076                                           version: 0.0.1
1077                                         value:
1078                                           key:
1079                                             parentKeyName: ReceiveEventPolicy
1080                                             parentKeyVersion: 0.0.1
1081                                             parentLocalName: CreateOrDeleteState
1082                                             localName: ReceiveEventPolicy
1083                                           outputType: DIRECT
1084                                           output:
1085                                             parentKeyName: ReceiveEventPolicy
1086                                             parentKeyVersion: 0.0.1
1087                                             parentLocalName: CreateOrDeleteState
1088                                             localName: DeleteSubscriptionPayload
1089                               - key: CreateSubscription
1090                                 value:
1091                                   stateKey:
1092                                     parentKeyName: ReceiveEventPolicy
1093                                     parentKeyVersion: 0.0.1
1094                                     parentLocalName: 'NULL'
1095                                     localName: CreateSubscription
1096                                   trigger:
1097                                     name: CreateSubscriptionPayloadEvent
1098                                     version: 0.0.1
1099                                   stateOutputs:
1100                                     entry:
1101                                       - key: IssueCreateSubscriptionRequestOutput
1102                                         value:
1103                                           key:
1104                                             parentKeyName: ReceiveEventPolicy
1105                                             parentKeyVersion: 0.0.1
1106                                             parentLocalName: CreateSubscription
1107                                             localName: IssueCreateSubscriptionRequestOutput
1108                                           outgoingEvent:
1109                                             name: CDSCreateSubscriptionRequestEvent
1110                                             version: 0.0.1
1111                                           nextState:
1112                                             parentKeyName: 'NULL'
1113                                             parentKeyVersion: 0.0.0
1114                                             parentLocalName: 'NULL'
1115                                             localName: 'NULL'
1116                                   contextAlbumReference:
1117                                     - name: PMSubscriptionAlbum
1118                                       version: 0.0.1
1119                                   taskSelectionLogic:
1120                                     key: 'NULL'
1121                                     logicFlavour: UNDEFINED
1122                                     logic: ''
1123                                   stateFinalizerLogicMap:
1124                                     entry: []
1125                                   defaultTask:
1126                                     name: CreateSubscriptionRequestTask
1127                                     version: 0.0.1
1128                                   taskReferences:
1129                                     entry:
1130                                       - key:
1131                                           name: CreateSubscriptionRequestTask
1132                                           version: 0.0.1
1133                                         value:
1134                                           key:
1135                                             parentKeyName: ReceiveEventPolicy
1136                                             parentKeyVersion: 0.0.1
1137                                             parentLocalName: CreateSubscription
1138                                             localName: ReceiveEventPolicy
1139                                           outputType: DIRECT
1140                                           output:
1141                                             parentKeyName: ReceiveEventPolicy
1142                                             parentKeyVersion: 0.0.1
1143                                             parentLocalName: CreateSubscription
1144                                             localName: IssueCreateSubscriptionRequestOutput
1145                               - key: DeleteSubscription
1146                                 value:
1147                                   stateKey:
1148                                     parentKeyName: ReceiveEventPolicy
1149                                     parentKeyVersion: 0.0.1
1150                                     parentLocalName: 'NULL'
1151                                     localName: DeleteSubscription
1152                                   trigger:
1153                                     name: DeleteSubscriptionPayloadEvent
1154                                     version: 0.0.1
1155                                   stateOutputs:
1156                                     entry:
1157                                       - key: IssueDeleteSubscriptionRequestOutput
1158                                         value:
1159                                           key:
1160                                             parentKeyName: ReceiveEventPolicy
1161                                             parentKeyVersion: 0.0.1
1162                                             parentLocalName: DeleteSubscription
1163                                             localName: IssueDeleteSubscriptionRequestOutput
1164                                           outgoingEvent:
1165                                             name: CDSDeleteSubscriptionRequestEvent
1166                                             version: 0.0.1
1167                                           nextState:
1168                                             parentKeyName: 'NULL'
1169                                             parentKeyVersion: 0.0.0
1170                                             parentLocalName: 'NULL'
1171                                             localName: 'NULL'
1172                                   contextAlbumReference:
1173                                     - name: PMSubscriptionAlbum
1174                                       version: 0.0.1
1175                                   taskSelectionLogic:
1176                                     key: 'NULL'
1177                                     logicFlavour: UNDEFINED
1178                                     logic: ''
1179                                   stateFinalizerLogicMap:
1180                                     entry: []
1181                                   defaultTask:
1182                                     name: DeleteSubscriptionRequestTask
1183                                     version: 0.0.1
1184                                   taskReferences:
1185                                     entry:
1186                                       - key:
1187                                           name: DeleteSubscriptionRequestTask
1188                                           version: 0.0.1
1189                                         value:
1190                                           key:
1191                                             parentKeyName: ReceiveEventPolicy
1192                                             parentKeyVersion: 0.0.1
1193                                             parentLocalName: DeleteSubscription
1194                                             localName: ReceiveEventPolicy
1195                                           outputType: DIRECT
1196                                           output:
1197                                             parentKeyName: ReceiveEventPolicy
1198                                             parentKeyVersion: 0.0.1
1199                                             parentLocalName: DeleteSubscription
1200                                             localName: IssueDeleteSubscriptionRequestOutput
1201                               - key: ReceiveSubscriptionState
1202                                 value:
1203                                   stateKey:
1204                                     parentKeyName: ReceiveEventPolicy
1205                                     parentKeyVersion: 0.0.1
1206                                     parentLocalName: 'NULL'
1207                                     localName: ReceiveSubscriptionState
1208                                   trigger:
1209                                     name: pmsh-operational-policy
1210                                     version: 0.0.1
1211                                   stateOutputs:
1212                                     entry:
1213                                       - key: ReceivePMSubscriptionOutput
1214                                         value:
1215                                           key:
1216                                             parentKeyName: ReceiveEventPolicy
1217                                             parentKeyVersion: 0.0.1
1218                                             parentLocalName: ReceiveSubscriptionState
1219                                             localName: ReceivePMSubscriptionOutput
1220                                           outgoingEvent:
1221                                             name: PMSubscriptionOutputEvent
1222                                             version: 0.0.1
1223                                           nextState:
1224                                             parentKeyName: ReceiveEventPolicy
1225                                             parentKeyVersion: 0.0.1
1226                                             parentLocalName: 'NULL'
1227                                             localName: CreateOrDeleteState
1228                                   contextAlbumReference:
1229                                     - name: PMSubscriptionAlbum
1230                                       version: 0.0.1
1231                                   taskSelectionLogic:
1232                                     key: 'NULL'
1233                                     logicFlavour: UNDEFINED
1234                                     logic: ''
1235                                   stateFinalizerLogicMap:
1236                                     entry: []
1237                                   defaultTask:
1238                                     name: ReceiveSubscriptionTask
1239                                     version: 0.0.1
1240                                   taskReferences:
1241                                     entry:
1242                                       - key:
1243                                           name: ReceiveSubscriptionTask
1244                                           version: 0.0.1
1245                                         value:
1246                                           key:
1247                                             parentKeyName: ReceiveEventPolicy
1248                                             parentKeyVersion: 0.0.1
1249                                             parentLocalName: ReceiveSubscriptionState
1250                                             localName: ReceiveEventPolicy
1251                                           outputType: DIRECT
1252                                           output:
1253                                             parentKeyName: ReceiveEventPolicy
1254                                             parentKeyVersion: 0.0.1
1255                                             parentLocalName: ReceiveSubscriptionState
1256                                             localName: ReceivePMSubscriptionOutput
1257                           firstState: ReceiveSubscriptionState
1258                 tasks:
1259                   key:
1260                     name: PMControlPolicy_Tasks
1261                     version: 0.0.1
1262                   taskMap:
1263                     entry:
1264                       - key:
1265                           name: CDSCreateResponseTask
1266                           version: 0.0.1
1267                         value:
1268                           key:
1269                             name: CDSCreateResponseTask
1270                             version: 0.0.1
1271                           inputFields:
1272                             entry:
1273                               - key: actionIdentifiers
1274                                 value:
1275                                   key: actionIdentifiers
1276                                   fieldSchemaKey:
1277                                     name: CDSActionIdentifiersType
1278                                     version: 0.0.1
1279                                   optional: false
1280                               - key: commonHeader
1281                                 value:
1282                                   key: commonHeader
1283                                   fieldSchemaKey:
1284                                     name: CDSResponseCommonHeaderType
1285                                     version: 0.0.1
1286                                   optional: false
1287                               - key: payload
1288                                 value:
1289                                   key: payload
1290                                   fieldSchemaKey:
1291                                     name: CDSCreateResponsePayloadType
1292                                     version: 0.0.1
1293                                   optional: false
1294                               - key: status
1295                                 value:
1296                                   key: status
1297                                   fieldSchemaKey:
1298                                     name: CDSResponseStatusType
1299                                     version: 0.0.1
1300                                   optional: false
1301                           outputFields:
1302                             entry:
1303                               - key: status
1304                                 value:
1305                                   key: status
1306                                   fieldSchemaKey:
1307                                     name: SubscriptionStatusType
1308                                     version: 0.0.1
1309                                   optional: false
1310                           taskParameters:
1311                             entry: []
1312                           contextAlbumReference:
1313                             - name: PMSubscriptionAlbum
1314                               version: 0.0.1
1315                           taskLogic:
1316                             key: TaskLogic
1317                             logicFlavour: JAVASCRIPT
1318                             logic: |-
1319                               /*
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
1326                                *
1327                                *      http://www.apache.org/licenses/LICENSE-2.0
1328                                *
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.
1334                                *
1335                                * SPDX-License-Identifier: Apache-2.0
1336                                * ============LICENSE_END=========================================================
1337                                */
1338
1339                               executor.logger.info(executor.subject.id);
1340
1341                               var commonHeader = executor.inFields.get("commonHeader")
1342                               var response = executor.inFields.get("payload")
1343                               var albumID = commonHeader.get("requestId")
1344
1345                               var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString());
1346                               var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance();
1347
1348                               responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
1349                               responseStatus.put("nfName", pmSubscriptionInfo.get("nfName"))
1350                               responseStatus.put("changeType", pmSubscriptionInfo.get("changeType"))
1351
1352                               var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status")
1353
1354                               executor.logger.info("RESPONSE STATUS = " + status)
1355
1356                               if(status == "success") {
1357                                   responseStatus.put("message", "success")
1358                               } else {
1359                                   responseStatus.put("message", "failed")
1360                               }
1361
1362                               executor.outFields.put("status", responseStatus)
1363
1364                               //var returnValue = executor.isTrue;
1365                               true;
1366                       - key:
1367                           name: CDSDeleteResponseTask
1368                           version: 0.0.1
1369                         value:
1370                           key:
1371                             name: CDSDeleteResponseTask
1372                             version: 0.0.1
1373                           inputFields:
1374                             entry:
1375                               - key: actionIdentifiers
1376                                 value:
1377                                   key: actionIdentifiers
1378                                   fieldSchemaKey:
1379                                     name: CDSActionIdentifiersType
1380                                     version: 0.0.1
1381                                   optional: false
1382                               - key: commonHeader
1383                                 value:
1384                                   key: commonHeader
1385                                   fieldSchemaKey:
1386                                     name: CDSResponseCommonHeaderType
1387                                     version: 0.0.1
1388                                   optional: false
1389                               - key: payload
1390                                 value:
1391                                   key: payload
1392                                   fieldSchemaKey:
1393                                     name: CDSDeleteResponsePayloadType
1394                                     version: 0.0.1
1395                                   optional: false
1396                               - key: status
1397                                 value:
1398                                   key: status
1399                                   fieldSchemaKey:
1400                                     name: CDSResponseStatusType
1401                                     version: 0.0.1
1402                                   optional: false
1403                           outputFields:
1404                             entry:
1405                               - key: status
1406                                 value:
1407                                   key: status
1408                                   fieldSchemaKey:
1409                                     name: SubscriptionStatusType
1410                                     version: 0.0.1
1411                                   optional: false
1412                           taskParameters:
1413                             entry: []
1414                           contextAlbumReference:
1415                             - name: PMSubscriptionAlbum
1416                               version: 0.0.1
1417                           taskLogic:
1418                             key: TaskLogic
1419                             logicFlavour: JAVASCRIPT
1420                             logic: |-
1421                               /*
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
1428                                *
1429                                *      http://www.apache.org/licenses/LICENSE-2.0
1430                                *
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.
1436                                *
1437                                * SPDX-License-Identifier: Apache-2.0
1438                                * ============LICENSE_END=========================================================
1439                                */
1440
1441                               executor.logger.info(executor.subject.id);
1442
1443                               var commonHeader = executor.inFields.get("commonHeader")
1444                               var response = executor.inFields.get("payload")
1445                               var albumID = commonHeader.get("requestId")
1446
1447                               var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString());
1448                               var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance();
1449
1450                               responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
1451                               responseStatus.put("nfName", pmSubscriptionInfo.get("nfName"))
1452                               responseStatus.put("changeType", pmSubscriptionInfo.get("changeType"))
1453
1454                               var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status")
1455
1456                               executor.logger.info("RESPONSE STATUS = " + status)
1457
1458                               if(status == "success") {
1459                                   responseStatus.put("message", "success")
1460                               } else {
1461                                   responseStatus.put("message", "failed")
1462                               }
1463
1464                               executor.outFields.put("status", responseStatus)
1465
1466                               //var returnValue = executor.isTrue;
1467                               true;
1468                       - key:
1469                           name: CreateSubscriptionPayloadTask
1470                           version: 0.0.1
1471                         value:
1472                           key:
1473                             name: CreateSubscriptionPayloadTask
1474                             version: 0.0.1
1475                           inputFields:
1476                             entry:
1477                               - key: albumID
1478                                 value:
1479                                   key: albumID
1480                                   fieldSchemaKey:
1481                                     name: UUIDType
1482                                     version: 0.0.1
1483                                   optional: false
1484                           outputFields:
1485                             entry:
1486                               - key: albumID
1487                                 value:
1488                                   key: albumID
1489                                   fieldSchemaKey:
1490                                     name: UUIDType
1491                                     version: 0.0.1
1492                                   optional: false
1493                               - key: payload
1494                                 value:
1495                                   key: payload
1496                                   fieldSchemaKey:
1497                                     name: CDSCreateSubscriptionPayloadType
1498                                     version: 0.0.1
1499                                   optional: false
1500                           taskParameters:
1501                             entry: []
1502                           contextAlbumReference:
1503                             - name: PMSubscriptionAlbum
1504                               version: 0.0.1
1505                           taskLogic:
1506                             key: TaskLogic
1507                             logicFlavour: JAVASCRIPT
1508                             logic: |-
1509                               /*
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
1516                                *
1517                                *      http://www.apache.org/licenses/LICENSE-2.0
1518                                *
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.
1524                                *
1525                                * SPDX-License-Identifier: Apache-2.0
1526                                * ============LICENSE_END=========================================================
1527                                */
1528
1529                               executor.logger.info(executor.subject.id);
1530
1531                               var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1532
1533                               var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
1534
1535                               var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record");
1536
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"))
1543
1544                               var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry");
1545                               payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties)
1546
1547                               var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance();
1548                               payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry);
1549
1550                               executor.outFields.put("albumID", executor.inFields.get("albumID"))
1551                               executor.outFields.put("payload", payload);
1552
1553                               //var returnValue = executor.isTrue;
1554                               true;
1555                       - key:
1556                           name: CreateSubscriptionRequestTask
1557                           version: 0.0.1
1558                         value:
1559                           key:
1560                             name: CreateSubscriptionRequestTask
1561                             version: 0.0.1
1562                           inputFields:
1563                             entry:
1564                               - key: albumID
1565                                 value:
1566                                   key: albumID
1567                                   fieldSchemaKey:
1568                                     name: UUIDType
1569                                     version: 0.0.1
1570                                   optional: false
1571                               - key: payload
1572                                 value:
1573                                   key: payload
1574                                   fieldSchemaKey:
1575                                     name: CDSCreateSubscriptionPayloadType
1576                                     version: 0.0.1
1577                                   optional: false
1578                           outputFields:
1579                             entry:
1580                               - key: actionIdentifiers
1581                                 value:
1582                                   key: actionIdentifiers
1583                                   fieldSchemaKey:
1584                                     name: CDSActionIdentifiersType
1585                                     version: 0.0.1
1586                                   optional: false
1587                               - key: commonHeader
1588                                 value:
1589                                   key: commonHeader
1590                                   fieldSchemaKey:
1591                                     name: CDSRequestCommonHeaderType
1592                                     version: 0.0.1
1593                                   optional: false
1594                               - key: payload
1595                                 value:
1596                                   key: payload
1597                                   fieldSchemaKey:
1598                                     name: CDSCreateSubscriptionPayloadType
1599                                     version: 0.0.1
1600                                   optional: false
1601                           taskParameters:
1602                             entry: []
1603                           contextAlbumReference:
1604                             - name: PMSubscriptionAlbum
1605                               version: 0.0.1
1606                           taskLogic:
1607                             key: TaskLogic
1608                             logicFlavour: JAVASCRIPT
1609                             logic: |-
1610                               /*
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
1617                                *
1618                                *      http://www.apache.org/licenses/LICENSE-2.0
1619                                *
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.
1625                                *
1626                                * SPDX-License-Identifier: Apache-2.0
1627                                * ============LICENSE_END=========================================================
1628                                */
1629
1630                               executor.logger.info(executor.subject.id);
1631
1632                               var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1633
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"
1639
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");
1644
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");
1650
1651                               executor.outFields.put("commonHeader", commonHeader);
1652                               executor.outFields.put("actionIdentifiers", actionIdentifiers);
1653                               executor.outFields.put("payload", payload);
1654
1655                               //var returnValue = executor.isTrue;
1656                               true;
1657                       - key:
1658                           name: DeleteSubscriptionPayloadTask
1659                           version: 0.0.1
1660                         value:
1661                           key:
1662                             name: DeleteSubscriptionPayloadTask
1663                             version: 0.0.1
1664                           inputFields:
1665                             entry:
1666                               - key: albumID
1667                                 value:
1668                                   key: albumID
1669                                   fieldSchemaKey:
1670                                     name: UUIDType
1671                                     version: 0.0.1
1672                                   optional: false
1673                           outputFields:
1674                             entry:
1675                               - key: albumID
1676                                 value:
1677                                   key: albumID
1678                                   fieldSchemaKey:
1679                                     name: UUIDType
1680                                     version: 0.0.1
1681                                   optional: false
1682                               - key: payload
1683                                 value:
1684                                   key: payload
1685                                   fieldSchemaKey:
1686                                     name: CDSDeleteSubscriptionPayloadType
1687                                     version: 0.0.1
1688                                   optional: false
1689                           taskParameters:
1690                             entry: []
1691                           contextAlbumReference:
1692                             - name: PMSubscriptionAlbum
1693                               version: 0.0.1
1694                           taskLogic:
1695                             key: TaskLogic
1696                             logicFlavour: JAVASCRIPT
1697                             logic: |-
1698                               /*
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
1705                                *
1706                                *      http://www.apache.org/licenses/LICENSE-2.0
1707                                *
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.
1713                                *
1714                                * SPDX-License-Identifier: Apache-2.0
1715                                * ============LICENSE_END=========================================================
1716                                */
1717
1718                               executor.logger.info(executor.subject.id);
1719
1720                               var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1721
1722                               var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
1723
1724                               var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record");
1725
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"))
1732
1733                               var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry");
1734                               payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties)
1735
1736                               var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance();
1737                               payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry);
1738
1739                               executor.outFields.put("albumID", executor.inFields.get("albumID"))
1740                               executor.outFields.put("payload", payload);
1741
1742                               //var returnValue = executor.isTrue;
1743                               true;
1744                       - key:
1745                           name: DeleteSubscriptionRequestTask
1746                           version: 0.0.1
1747                         value:
1748                           key:
1749                             name: DeleteSubscriptionRequestTask
1750                             version: 0.0.1
1751                           inputFields:
1752                             entry:
1753                               - key: albumID
1754                                 value:
1755                                   key: albumID
1756                                   fieldSchemaKey:
1757                                     name: UUIDType
1758                                     version: 0.0.1
1759                                   optional: false
1760                               - key: payload
1761                                 value:
1762                                   key: payload
1763                                   fieldSchemaKey:
1764                                     name: CDSDeleteSubscriptionPayloadType
1765                                     version: 0.0.1
1766                                   optional: false
1767                           outputFields:
1768                             entry:
1769                               - key: actionIdentifiers
1770                                 value:
1771                                   key: actionIdentifiers
1772                                   fieldSchemaKey:
1773                                     name: CDSActionIdentifiersType
1774                                     version: 0.0.1
1775                                   optional: false
1776                               - key: commonHeader
1777                                 value:
1778                                   key: commonHeader
1779                                   fieldSchemaKey:
1780                                     name: CDSRequestCommonHeaderType
1781                                     version: 0.0.1
1782                                   optional: false
1783                               - key: payload
1784                                 value:
1785                                   key: payload
1786                                   fieldSchemaKey:
1787                                     name: CDSDeleteSubscriptionPayloadType
1788                                     version: 0.0.1
1789                                   optional: false
1790                           taskParameters:
1791                             entry: []
1792                           contextAlbumReference:
1793                             - name: PMSubscriptionAlbum
1794                               version: 0.0.1
1795                           taskLogic:
1796                             key: TaskLogic
1797                             logicFlavour: JAVASCRIPT
1798                             logic: |-
1799                               /*
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
1806                                *
1807                                *      http://www.apache.org/licenses/LICENSE-2.0
1808                                *
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.
1814                                *
1815                                * SPDX-License-Identifier: Apache-2.0
1816                                * ============LICENSE_END=========================================================
1817                                */
1818
1819                               executor.logger.info(executor.subject.id);
1820
1821                               var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
1822
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"
1828
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");
1833
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");
1839
1840                               executor.outFields.put("commonHeader", commonHeader);
1841                               executor.outFields.put("actionIdentifiers", actionIdentifiers);
1842                               executor.outFields.put("payload", payload);
1843
1844                               //var returnValue = executor.isTrue;
1845                               true;
1846                       - key:
1847                           name: ReceiveSubscriptionTask
1848                           version: 0.0.1
1849                         value:
1850                           key:
1851                             name: ReceiveSubscriptionTask
1852                             version: 0.0.1
1853                           inputFields:
1854                             entry:
1855                               - key: blueprintName
1856                                 value:
1857                                   key: blueprintName
1858                                   fieldSchemaKey:
1859                                     name: SimpleStringType
1860                                     version: 0.0.1
1861                                   optional: false
1862                               - key: blueprintVersion
1863                                 value:
1864                                   key: blueprintVersion
1865                                   fieldSchemaKey:
1866                                     name: SimpleStringType
1867                                     version: 0.0.1
1868                                   optional: false
1869                               - key: changeType
1870                                 value:
1871                                   key: changeType
1872                                   fieldSchemaKey:
1873                                     name: SimpleStringType
1874                                     version: 0.0.1
1875                                   optional: false
1876                               - key: closedLoopControlName
1877                                 value:
1878                                   key: closedLoopControlName
1879                                   fieldSchemaKey:
1880                                     name: SimpleStringType
1881                                     version: 0.0.1
1882                                   optional: false
1883                               - key: nfName
1884                                 value:
1885                                   key: nfName
1886                                   fieldSchemaKey:
1887                                     name: SimpleStringType
1888                                     version: 0.0.1
1889                                   optional: false
1890                               - key: policyName
1891                                 value:
1892                                   key: policyName
1893                                   fieldSchemaKey:
1894                                     name: SimpleStringType
1895                                     version: 0.0.1
1896                                   optional: false
1897                               - key: subscription
1898                                 value:
1899                                   key: subscription
1900                                   fieldSchemaKey:
1901                                     name: SubscriptionType
1902                                     version: 0.0.1
1903                                   optional: false
1904                           outputFields:
1905                             entry:
1906                               - key: albumID
1907                                 value:
1908                                   key: albumID
1909                                   fieldSchemaKey:
1910                                     name: UUIDType
1911                                     version: 0.0.1
1912                                   optional: false
1913                           taskParameters:
1914                             entry: []
1915                           contextAlbumReference:
1916                             - name: PMSubscriptionAlbum
1917                               version: 0.0.1
1918                           taskLogic:
1919                             key: TaskLogic
1920                             logicFlavour: JAVASCRIPT
1921                             logic: |-
1922                               /*
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
1929                                *
1930                                *      http://www.apache.org/licenses/LICENSE-2.0
1931                                *
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.
1937                                *
1938                                * SPDX-License-Identifier: Apache-2.0
1939                                * ============LICENSE_END=========================================================
1940                                */
1941                               var uuidType = java.util.UUID;
1942
1943                               executor.logger.info(executor.subject.id);
1944
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;
1949
1950                               if(executor.inFields.get("policyName") != null) {
1951                                   executor.logger.info("nfName in receive sub event " + executor.inFields.get("nfName"));
1952
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")
1960
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)
1968
1969
1970                                   executor.getContextAlbum("PMSubscriptionAlbum").put(albumID.toString(), pmSubscriptionInfo);
1971
1972                                   executor.outFields.put("albumID", albumID)
1973                               } else {
1974                                   executor.message = "Received invalid event"
1975                                   returnValue = false;
1976                               }
1977
1978                               returnValue;
1979                 events:
1980                   key:
1981                     name: PMControlPolicy_Events
1982                     version: 0.0.1
1983                   eventMap:
1984                     entry:
1985                       - key:
1986                           name: CDSCreateResponseEvent
1987                           version: 0.0.1
1988                         value:
1989                           key:
1990                             name: CDSCreateResponseEvent
1991                             version: 0.0.1
1992                           nameSpace: org.onap.policy.apex.onap.pmcontrol
1993                           source: CDS
1994                           target: APEX
1995                           parameter:
1996                             entry:
1997                               - key: actionIdentifiers
1998                                 value:
1999                                   key: actionIdentifiers
2000                                   fieldSchemaKey:
2001                                     name: CDSActionIdentifiersType
2002                                     version: 0.0.1
2003                                   optional: false
2004                               - key: commonHeader
2005                                 value:
2006                                   key: commonHeader
2007                                   fieldSchemaKey:
2008                                     name: CDSResponseCommonHeaderType
2009                                     version: 0.0.1
2010                                   optional: false
2011                               - key: payload
2012                                 value:
2013                                   key: payload
2014                                   fieldSchemaKey:
2015                                     name: CDSCreateResponsePayloadType
2016                                     version: 0.0.1
2017                                   optional: false
2018                               - key: status
2019                                 value:
2020                                   key: status
2021                                   fieldSchemaKey:
2022                                     name: CDSResponseStatusType
2023                                     version: 0.0.1
2024                                   optional: false
2025                       - key:
2026                           name: CDSCreateSubscriptionRequestEvent
2027                           version: 0.0.1
2028                         value:
2029                           key:
2030                             name: CDSCreateSubscriptionRequestEvent
2031                             version: 0.0.1
2032                           nameSpace: org.onap.policy.apex.onap.pmcontrol
2033                           source: APEX
2034                           target: APEX
2035                           parameter:
2036                             entry:
2037                               - key: actionIdentifiers
2038                                 value:
2039                                   key: actionIdentifiers
2040                                   fieldSchemaKey:
2041                                     name: CDSActionIdentifiersType
2042                                     version: 0.0.1
2043                                   optional: false
2044                               - key: commonHeader
2045                                 value:
2046                                   key: commonHeader
2047                                   fieldSchemaKey:
2048                                     name: CDSRequestCommonHeaderType
2049                                     version: 0.0.1
2050                                   optional: false
2051                               - key: payload
2052                                 value:
2053                                   key: payload
2054                                   fieldSchemaKey:
2055                                     name: CDSCreateSubscriptionPayloadType
2056                                     version: 0.0.1
2057                                   optional: false
2058                       - key:
2059                           name: CDSDeleteResponseEvent
2060                           version: 0.0.1
2061                         value:
2062                           key:
2063                             name: CDSDeleteResponseEvent
2064                             version: 0.0.1
2065                           nameSpace: org.onap.policy.apex.onap.pmcontrol
2066                           source: CDS
2067                           target: APEX
2068                           parameter:
2069                             entry:
2070                               - key: actionIdentifiers
2071                                 value:
2072                                   key: actionIdentifiers
2073                                   fieldSchemaKey:
2074                                     name: CDSActionIdentifiersType
2075                                     version: 0.0.1
2076                                   optional: false
2077                               - key: commonHeader
2078                                 value:
2079                                   key: commonHeader
2080                                   fieldSchemaKey:
2081                                     name: CDSResponseCommonHeaderType
2082                                     version: 0.0.1
2083                                   optional: false
2084                               - key: payload
2085                                 value:
2086                                   key: payload
2087                                   fieldSchemaKey:
2088                                     name: CDSDeleteResponsePayloadType
2089                                     version: 0.0.1
2090                                   optional: false
2091                               - key: status
2092                                 value:
2093                                   key: status
2094                                   fieldSchemaKey:
2095                                     name: CDSResponseStatusType
2096                                     version: 0.0.1
2097                                   optional: false
2098                       - key:
2099                           name: CDSDeleteSubscriptionRequestEvent
2100                           version: 0.0.1
2101                         value:
2102                           key:
2103                             name: CDSDeleteSubscriptionRequestEvent
2104                             version: 0.0.1
2105                           nameSpace: org.onap.policy.apex.onap.pmcontrol
2106                           source: APEX
2107                           target: APEX
2108                           parameter:
2109                             entry:
2110                               - key: actionIdentifiers
2111                                 value:
2112                                   key: actionIdentifiers
2113                                   fieldSchemaKey:
2114                                     name: CDSActionIdentifiersType
2115                                     version: 0.0.1
2116                                   optional: false
2117                               - key: commonHeader
2118                                 value:
2119                                   key: commonHeader
2120                                   fieldSchemaKey:
2121                                     name: CDSRequestCommonHeaderType
2122                                     version: 0.0.1
2123                                   optional: false
2124                               - key: payload
2125                                 value:
2126                                   key: payload
2127                                   fieldSchemaKey:
2128                                     name: CDSDeleteSubscriptionPayloadType
2129                                     version: 0.0.1
2130                                   optional: false
2131                       - key:
2132                           name: CDSResponseStatusEvent
2133                           version: 0.0.1
2134                         value:
2135                           key:
2136                             name: CDSResponseStatusEvent
2137                             version: 0.0.1
2138                           nameSpace: org.onap.policy.apex.onap.pmcontrol
2139                           source: APEX
2140                           target: DCAE
2141                           parameter:
2142                             entry:
2143                               - key: status
2144                                 value:
2145                                   key: status
2146                                   fieldSchemaKey:
2147                                     name: SubscriptionStatusType
2148                                     version: 0.0.1
2149                                   optional: false
2150                       - key:
2151                           name: CreateSubscriptionPayloadEvent
2152                           version: 0.0.1
2153                         value:
2154                           key:
2155                             name: CreateSubscriptionPayloadEvent
2156                             version: 0.0.1
2157                           nameSpace: org.onap.policy.apex.onap.pmcontrol
2158                           source: APEX
2159                           target: APEX
2160                           parameter:
2161                             entry:
2162                               - key: albumID
2163                                 value:
2164                                   key: albumID
2165                                   fieldSchemaKey:
2166                                     name: UUIDType
2167                                     version: 0.0.1
2168                                   optional: false
2169                               - key: payload
2170                                 value:
2171                                   key: payload
2172                                   fieldSchemaKey:
2173                                     name: CDSCreateSubscriptionPayloadType
2174                                     version: 0.0.1
2175                                   optional: false
2176                       - key:
2177                           name: DeleteSubscriptionPayloadEvent
2178                           version: 0.0.1
2179                         value:
2180                           key:
2181                             name: DeleteSubscriptionPayloadEvent
2182                             version: 0.0.1
2183                           nameSpace: org.onap.policy.apex.onap.pmcontrol
2184                           source: APEX
2185                           target: APEX
2186                           parameter:
2187                             entry:
2188                               - key: albumID
2189                                 value:
2190                                   key: albumID
2191                                   fieldSchemaKey:
2192                                     name: UUIDType
2193                                     version: 0.0.1
2194                                   optional: false
2195                               - key: payload
2196                                 value:
2197                                   key: payload
2198                                   fieldSchemaKey:
2199                                     name: CDSDeleteSubscriptionPayloadType
2200                                     version: 0.0.1
2201                                   optional: false
2202                       - key:
2203                           name: MRResponseEvent
2204                           version: 0.0.1
2205                         value:
2206                           key:
2207                             name: MRResponseEvent
2208                             version: 0.0.1
2209                           nameSpace: org.onap.policy.apex.onap.pmcontrol
2210                           source: DCAE
2211                           target: APEX
2212                           parameter:
2213                             entry:
2214                               - key: count
2215                                 value:
2216                                   key: count
2217                                   fieldSchemaKey:
2218                                     name: SimpleIntType
2219                                     version: 0.0.1
2220                                   optional: false
2221                               - key: serverTimeMs
2222                                 value:
2223                                   key: serverTimeMs
2224                                   fieldSchemaKey:
2225                                     name: SimpleIntType
2226                                     version: 0.0.1
2227                                   optional: false
2228                       - key:
2229                           name: PMSubscriptionOutputEvent
2230                           version: 0.0.1
2231                         value:
2232                           key:
2233                             name: PMSubscriptionOutputEvent
2234                             version: 0.0.1
2235                           nameSpace: org.onap.policy.apex.onap.pmcontrol
2236                           source: APEX
2237                           target: APEX
2238                           parameter:
2239                             entry:
2240                               - key: albumID
2241                                 value:
2242                                   key: albumID
2243                                   fieldSchemaKey:
2244                                     name: UUIDType
2245                                     version: 0.0.1
2246                                   optional: false
2247                       - key:
2248                           name: pmsh-operational-policy
2249                           version: 0.0.1
2250                         value:
2251                           key:
2252                             name: pmsh-operational-policy
2253                             version: 0.0.1
2254                           nameSpace: org.onap.policy.apex.onap.pmcontrol
2255                           source: DCAE
2256                           target: APEX
2257                           parameter:
2258                             entry:
2259                               - key: blueprintName
2260                                 value:
2261                                   key: blueprintName
2262                                   fieldSchemaKey:
2263                                     name: SimpleStringType
2264                                     version: 0.0.1
2265                                   optional: false
2266                               - key: blueprintVersion
2267                                 value:
2268                                   key: blueprintVersion
2269                                   fieldSchemaKey:
2270                                     name: SimpleStringType
2271                                     version: 0.0.1
2272                                   optional: false
2273                               - key: changeType
2274                                 value:
2275                                   key: changeType
2276                                   fieldSchemaKey:
2277                                     name: SimpleStringType
2278                                     version: 0.0.1
2279                                   optional: false
2280                               - key: closedLoopControlName
2281                                 value:
2282                                   key: closedLoopControlName
2283                                   fieldSchemaKey:
2284                                     name: SimpleStringType
2285                                     version: 0.0.1
2286                                   optional: false
2287                               - key: nfName
2288                                 value:
2289                                   key: nfName
2290                                   fieldSchemaKey:
2291                                     name: SimpleStringType
2292                                     version: 0.0.1
2293                                   optional: false
2294                               - key: policyName
2295                                 value:
2296                                   key: policyName
2297                                   fieldSchemaKey:
2298                                     name: SimpleStringType
2299                                     version: 0.0.1
2300                                   optional: false
2301                               - key: subscription
2302                                 value:
2303                                   key: subscription
2304                                   fieldSchemaKey:
2305                                     name: SubscriptionType
2306                                     version: 0.0.1
2307                                   optional: false
2308                 albums:
2309                   key:
2310                     name: PMControlPolicy_Albums
2311                     version: 0.0.1
2312                   albums:
2313                     entry:
2314                       - key:
2315                           name: PMSubscriptionAlbum
2316                           version: 0.0.1
2317                         value:
2318                           key:
2319                             name: PMSubscriptionAlbum
2320                             version: 0.0.1
2321                           scope: policy
2322                           isWritable: true
2323                           itemSchema:
2324                             name: PMSubscriptionType
2325                             version: 0.0.1
2326                 schemas:
2327                   key:
2328                     name: PMControlPolicy_Schemas
2329                     version: 0.0.1
2330                   schemas:
2331                     entry:
2332                       - key:
2333                           name: CDSActionIdentifiersType
2334                           version: 0.0.1
2335                         value:
2336                           key:
2337                             name: CDSActionIdentifiersType
2338                             version: 0.0.1
2339                           schemaFlavour: Avro
2340                           schemaDefinition: |-
2341                             {
2342                                 "type": "record",
2343                                 "name": "ActionIdentifiers_Type",
2344                                 "namespace": "org.onap.policy.apex.onap.helloworld",
2345                                 "fields": [
2346                                     {
2347                                         "name": "actionName",
2348                                         "type": "string"
2349                                     },
2350                                     {
2351                                         "name": "blueprintName",
2352                                         "type": "string"
2353                                     },
2354                                     {
2355                                         "name": "blueprintVersion",
2356                                         "type": "string"
2357                                     },
2358                                     {
2359                                         "name": "mode",
2360                                         "type": "string"
2361                                     }
2362                                 ]
2363                             }
2364                       - key:
2365                           name: CDSCreateResponsePayloadType
2366                           version: 0.0.1
2367                         value:
2368                           key:
2369                             name: CDSCreateResponsePayloadType
2370                             version: 0.0.1
2371                           schemaFlavour: Avro
2372                           schemaDefinition: |-
2373                             {
2374                               "name": "CreateResponsePayloadEntry",
2375                               "type": "record",
2376                               "namespace": "org.onap.policy.apex.onap.helloworld",
2377                               "fields": [
2378                                 {
2379                                   "name": "create_DasH_subscription_DasH_response",
2380                                   "type": {
2381                                     "name": "create_DasH_subscription_DasH_response",
2382                                     "type": "record",
2383                                     "fields": [
2384                                       {
2385                                         "name": "odl_DasH_response",
2386                                         "type": {
2387                                           "name": "odl_DasH_response",
2388                                           "type": "record",
2389                                           "fields": [
2390                                               {
2391                                                 "name": "status",
2392                                                 "type": "string"
2393                                               }
2394                                           ]
2395                                         }
2396                                       }
2397                                     ]
2398                                   }
2399                                 }
2400                               ]
2401                             }
2402                       - key:
2403                           name: CDSCreateSubscriptionPayloadType
2404                           version: 0.0.1
2405                         value:
2406                           key:
2407                             name: CDSCreateSubscriptionPayloadType
2408                             version: 0.0.1
2409                           schemaFlavour: Avro
2410                           schemaDefinition: |-
2411                             {
2412                               "type": "map",
2413                               "values": {
2414                                 "type": "record",
2415                                 "name": "CDSRequestPayloadEntry",
2416                                 "fields": [
2417                                   {
2418                                     "name": "create_DasH_subscription_DasH_properties",
2419                                     "type": {
2420                                       "name": "create_DasH_subscription_DasH_properties_record",
2421                                       "type": "record",
2422                                       "fields": [
2423                                         {
2424                                           "name": "nfName",
2425                                           "type": "string"
2426                                         },
2427                                         {
2428                                           "name": "subscriptionName",
2429                                           "type": "string"
2430                                         },
2431                                         {
2432                                           "name": "administrativeState",
2433                                           "type": "string"
2434                                         },
2435                                         {
2436                                           "name": "fileBasedGP",
2437                                           "type": "string"
2438                                         },
2439                                         {
2440                                           "name": "fileLocation",
2441                                           "type": "string"
2442                                         },
2443                                         {
2444                                           "name": "measurementGroups",
2445                                           "type": {
2446                                             "type": "array",
2447                                             "items": {
2448                                               "name": "measurementGroups_record",
2449                                               "type": "record",
2450                                               "fields": [
2451                                                 {
2452                                                   "name": "measurementGroup",
2453                                                   "type": {
2454                                                     "name": "measurementGroup",
2455                                                     "type": "record",
2456                                                     "fields": [
2457                                                       {
2458                                                         "name": "measurementTypes",
2459                                                         "type": {
2460                                                           "type": "array",
2461                                                           "items": {
2462                                                             "name": "measurementTypes_record",
2463                                                             "type": "record",
2464                                                             "fields": [
2465                                                               {
2466                                                                 "name": "measurementType",
2467                                                                 "type": "string"
2468                                                               }
2469                                                             ]
2470                                                           }
2471                                                         }
2472                                                       },
2473                                                       {
2474                                                         "name": "managedObjectDNsBasic",
2475                                                         "type": {
2476                                                           "type": "array",
2477                                                           "items": {
2478                                                             "name": "managedObjectDNsBasic_record",
2479                                                             "type": "record",
2480                                                             "fields": [
2481                                                               {
2482                                                                 "name": "DN",
2483                                                                 "type": "string"
2484                                                               }
2485                                                             ]
2486                                                           }
2487                                                         }
2488                                                       }
2489                                                     ]
2490                                                   }
2491                                                 }
2492                                               ]
2493                                             }
2494                                           }
2495                                         }
2496                                       ]
2497                                     }
2498                                   }
2499                                 ]
2500                               }
2501                             }
2502                       - key:
2503                           name: CDSDeleteResponsePayloadType
2504                           version: 0.0.1
2505                         value:
2506                           key:
2507                             name: CDSDeleteResponsePayloadType
2508                             version: 0.0.1
2509                           schemaFlavour: Avro
2510                           schemaDefinition: |-
2511                             {
2512                               "name": "DeleteResponsePayloadEntry",
2513                               "type": "record",
2514                               "namespace": "com.acme.avro",
2515                               "fields": [
2516                                 {
2517                                   "name": "delete_DasH_subscription_DasH_response",
2518                                   "type": {
2519                                     "name": "delete_DasH_subscription_DasH_response",
2520                                     "type": "record",
2521                                     "fields": [
2522                                       {
2523                                         "name": "odl_DasH_response",
2524                                         "type": {
2525                                           "name": "odl_DasH_response",
2526                                           "type": "record",
2527                                           "fields": [
2528                                               {
2529                                                 "name": "status",
2530                                                 "type": "string"
2531                                               }
2532                                           ]
2533                                         }
2534                                       }
2535                                     ]
2536                                   }
2537                                 }
2538                               ]
2539                             }
2540                       - key:
2541                           name: CDSDeleteSubscriptionPayloadType
2542                           version: 0.0.1
2543                         value:
2544                           key:
2545                             name: CDSDeleteSubscriptionPayloadType
2546                             version: 0.0.1
2547                           schemaFlavour: Avro
2548                           schemaDefinition: |-
2549                             {
2550                               "type": "map",
2551                               "values": {
2552                                 "type": "record",
2553                                 "name": "CDSRequestPayloadEntry",
2554                                 "fields": [
2555                                   {
2556                                     "name": "delete_DasH_subscription_DasH_properties",
2557                                     "type": {
2558                                       "name": "delete_DasH_subscription_DasH_properties_record",
2559                                       "type": "record",
2560                                       "fields": [
2561                                         {
2562                                           "name": "nfName",
2563                                           "type": "string"
2564                                         },
2565                                         {
2566                                           "name": "subscriptionName",
2567                                           "type": "string"
2568                                         },
2569                                         {
2570                                           "name": "administrativeState",
2571                                           "type": "string"
2572                                         },
2573                                         {
2574                                           "name": "fileBasedGP",
2575                                           "type": "string"
2576                                         },
2577                                         {
2578                                           "name": "fileLocation",
2579                                           "type": "string"
2580                                         },
2581                                         {
2582                                           "name": "measurementGroups",
2583                                           "type": {
2584                                             "type": "array",
2585                                             "items": {
2586                                               "name": "measurementGroups_record",
2587                                               "type": "record",
2588                                               "fields": [
2589                                                 {
2590                                                   "name": "measurementGroup",
2591                                                   "type": {
2592                                                     "name": "measurementGroup",
2593                                                     "type": "record",
2594                                                     "fields": [
2595                                                       {
2596                                                         "name": "measurementTypes",
2597                                                         "type": {
2598                                                           "type": "array",
2599                                                           "items": {
2600                                                             "name": "measurementTypes_record",
2601                                                             "type": "record",
2602                                                             "fields": [
2603                                                               {
2604                                                                 "name": "measurementType",
2605                                                                 "type": "string"
2606                                                               }
2607                                                             ]
2608                                                           }
2609                                                         }
2610                                                       },
2611                                                       {
2612                                                         "name": "managedObjectDNsBasic",
2613                                                         "type": {
2614                                                           "type": "array",
2615                                                           "items": {
2616                                                             "name": "managedObjectDNsBasic_record",
2617                                                             "type": "record",
2618                                                             "fields": [
2619                                                               {
2620                                                                 "name": "DN",
2621                                                                 "type": "string"
2622                                                               }
2623                                                             ]
2624                                                           }
2625                                                         }
2626                                                       }
2627                                                     ]
2628                                                   }
2629                                                 }
2630                                               ]
2631                                             }
2632                                           }
2633                                         }
2634                                       ]
2635                                     }
2636                                   }
2637                                 ]
2638                               }
2639                             }
2640                       - key:
2641                           name: CDSRequestCommonHeaderType
2642                           version: 0.0.1
2643                         value:
2644                           key:
2645                             name: CDSRequestCommonHeaderType
2646                             version: 0.0.1
2647                           schemaFlavour: Avro
2648                           schemaDefinition: |-
2649                             {
2650                                 "type": "record",
2651                                 "name": "RequestCommonHeader_Type",
2652                                 "namespace": "org.onap.policy.apex.onap.helloworld",
2653                                 "fields": [
2654                                     {
2655                                         "name": "originatorId",
2656                                         "type": "string"
2657                                     },
2658                                     {
2659                                         "name": "requestId",
2660                                         "type": "string"
2661                                     },
2662                                     {
2663                                         "name": "subRequestId",
2664                                         "type": "string"
2665                                     }
2666                                 ]
2667                             }
2668                       - key:
2669                           name: CDSResponseCommonHeaderType
2670                           version: 0.0.1
2671                         value:
2672                           key:
2673                             name: CDSResponseCommonHeaderType
2674                             version: 0.0.1
2675                           schemaFlavour: Avro
2676                           schemaDefinition: |-
2677                             {
2678                                 "type": "record",
2679                                 "name": "ResponseCommonHeader_Type",
2680                                 "namespace": "org.onap.policy.apex.onap.helloworld",
2681                                 "fields": [
2682                                     {
2683                                         "name": "originatorId",
2684                                         "type": "string"
2685                                     },
2686                                     {
2687                                         "name": "requestId",
2688                                         "type": "string"
2689                                     },
2690                                     {
2691                                         "name": "subRequestId",
2692                                         "type": "string"
2693                                     },
2694                                     {
2695                                         "name": "timestamp",
2696                                         "type": "string"
2697                                     },
2698                                     {
2699                                         "name": "flags",
2700                                         "type": ["null", "string"]
2701                                     }
2702                                 ]
2703                             }
2704                       - key:
2705                           name: CDSResponseStatusType
2706                           version: 0.0.1
2707                         value:
2708                           key:
2709                             name: CDSResponseStatusType
2710                             version: 0.0.1
2711                           schemaFlavour: Avro
2712                           schemaDefinition: |-
2713                             {
2714                                 "type": "record",
2715                                 "name": "ResponseStatus_Type",
2716                                 "namespace": "org.onap.policy.apex.onap.helloworld",
2717                                 "fields": [
2718                                     {
2719                                         "name": "code",
2720                                         "type": "int"
2721                                     },
2722                                     {
2723                                         "name": "eventType",
2724                                         "type": "string"
2725                                     },
2726                                     {
2727                                         "name": "timestamp",
2728                                         "type": "string"
2729                                     },
2730                                     {
2731                                         "name": "message",
2732                                         "type": "string"
2733                                     }
2734                                 ]
2735                             }
2736                       - key:
2737                           name: PMSubscriptionType
2738                           version: 0.0.1
2739                         value:
2740                           key:
2741                             name: PMSubscriptionType
2742                             version: 0.0.1
2743                           schemaFlavour: Avro
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\
2774                         \t}\n\t]\n}"
2775                       - key:
2776                           name: SimpleIntType
2777                           version: 0.0.1
2778                         value:
2779                           key:
2780                             name: SimpleIntType
2781                             version: 0.0.1
2782                           schemaFlavour: Java
2783                           schemaDefinition: java.lang.Integer
2784                       - key:
2785                           name: SimpleStringType
2786                           version: 0.0.1
2787                         value:
2788                           key:
2789                             name: SimpleStringType
2790                             version: 0.0.1
2791                           schemaFlavour: Java
2792                           schemaDefinition: java.lang.String
2793                       - key:
2794                           name: SubscriptionStatusType
2795                           version: 0.0.1
2796                         value:
2797                           key:
2798                             name: SubscriptionStatusType
2799                             version: 0.0.1
2800                           schemaFlavour: Avro
2801                           schemaDefinition: |-
2802                             {
2803                                 "type": "record",
2804                                 "name": "ActivateSubscriptionStatus_Type",
2805                                 "namespace": "org.onap.policy.apex.onap.helloworld",
2806                                 "fields": [
2807                                     {
2808                                         "name": "subscriptionName",
2809                                         "type": "string"
2810                                     },
2811                                     {
2812                                         "name": "nfName",
2813                                         "type": "string"
2814                                     },
2815                                     {
2816                                         "name": "changeType",
2817                                         "type": "string"
2818                                     },
2819                                     {
2820                                         "name": "message",
2821                                         "type": "string"
2822                                     }
2823                                 ]
2824                             }
2825                       - key:
2826                           name: SubscriptionType
2827                           version: 0.0.1
2828                         value:
2829                           key:
2830                             name: SubscriptionType
2831                             version: 0.0.1
2832                           schemaFlavour: Avro
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}"
2853                       - key:
2854                           name: UUIDType
2855                           version: 0.0.1
2856                         value:
2857                           key:
2858                             name: UUIDType
2859                             version: 0.0.1
2860                           schemaFlavour: Java
2861                           schemaDefinition: java.util.UUID
2862             engineParameters:
2863               executorParameters:
2864                 JAVASCRIPT:
2865                   parameterClassName: org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters
2866               contextParameters:
2867                 parameterClassName: org.onap.policy.apex.context.parameters.ContextParameters
2868                 schemaParameters:
2869                   Avro:
2870                     parameterClassName: org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters
2871                   Java:
2872                     parameterClassName: org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters
2873                     jsonAdapters:
2874                       Instant:
2875                         adaptedClass: java.time.Instant
2876                         adaptorClass: org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter
2877           eventInputParameters:
2878             DCAEConsumer:
2879               carrierTechnologyParameters:
2880                 carrierTechnology: RESTCLIENT
2881                 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
2882                 parameters:
2883                   consumerPollTime: '50'
2884                   url: https://message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT/cg1/sg1
2885               eventProtocolParameters:
2886                 eventProtocol: JSON
2887                 parameters:
2888                   nameAlias: policyName
2889               eventName: pmsh-operational-policy
2890               eventNameFilter: pmsh-operational-policy
2891             CDSRequestConsumer:
2892               carrierTechnologyParameters:
2893                 carrierTechnology: RESTREQUESTOR
2894                 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2895                 parameters:
2896                   url: http://10.10.10.184:30254/api/v1/execution-service/process
2897                   httpMethod: POST
2898                   restRequestTimeout: 2000
2899                   httpHeaders:
2900                     - - Authorization
2901                       - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==
2902               eventProtocolParameters:
2903                 eventProtocol: JSON
2904               eventName: CDSCreateResponseEvent
2905               eventNameFilter: CDSCreateResponseEvent
2906               requestorMode: true
2907               requestorPeer: CDSRequestProducer
2908               requestorTimeout: 500
2909             CDSDeleteRequestConsumer:
2910               carrierTechnologyParameters:
2911                 carrierTechnology: RESTREQUESTOR
2912                 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2913                 parameters:
2914                   url: http://10.10.10.184:30254/api/v1/execution-service/process
2915                   httpMethod: POST
2916                   restRequestTimeout: 2000
2917                   httpHeaders:
2918                     - - Authorization
2919                       - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==
2920               eventProtocolParameters:
2921                 eventProtocol: JSON
2922               eventName: CDSDeleteResponseEvent
2923               eventNameFilter: CDSDeleteResponseEvent
2924               requestorMode: true
2925               requestorPeer: CDSDeleteRequestProducer
2926               requestorTimeout: 500
2927             CDSReplyConsumer:
2928               carrierTechnologyParameters:
2929                 carrierTechnology: RESTREQUESTOR
2930                 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2931                 parameters:
2932                   url: https://message-router:3905/events/unauthenticated.PMSH_CL_INPUT
2933                   httpMethod: POST
2934                   restRequestTimeout: 2000
2935               eventProtocolParameters:
2936                 eventProtocol: JSON
2937               eventName: MRResponseEvent
2938               eventNameFilter: MRResponseEvent
2939               requestorMode: true
2940               requestorPeer: CDSReplyProducer
2941               requestorTimeout: 500
2942           eventOutputParameters:
2943             logOutputter:
2944               carrierTechnologyParameters:
2945                 carrierTechnology: FILE
2946                 parameters:
2947                   fileName: /tmp/outputevents.log
2948               eventProtocolParameters:
2949                 eventProtocol: JSON
2950             StdOutOutputter:
2951               carrierTechnologyParameters:
2952                 carrierTechnology: FILE
2953                 parameters:
2954                   standardIo: true
2955               eventProtocolParameters:
2956                 eventProtocol: JSON
2957             CDSRequestProducer:
2958               carrierTechnologyParameters:
2959                 carrierTechnology: RESTREQUESTOR
2960                 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2961               eventProtocolParameters:
2962                 eventProtocol: JSON
2963               eventNameFilter: CDSCreateSubscriptionRequestEvent
2964               requestorMode: true
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:
2972                 eventProtocol: JSON
2973               eventNameFilter: CDSDeleteSubscriptionRequestEvent
2974               requestorMode: true
2975               requestorPeer: CDSDeleteRequestConsumer
2976               requestorTimeout: 500
2977             CDSReplyProducer:
2978               carrierTechnologyParameters:
2979                 carrierTechnology: RESTREQUESTOR
2980                 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
2981               eventProtocolParameters:
2982                 eventProtocol: JSON
2983               eventNameFilter: CDSResponseStatusEvent
2984               requestorMode: true
2985               requestorPeer: CDSReplyConsumer
2986               requestorTimeout: 500