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