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