aboutsummaryrefslogtreecommitdiffstats
path: root/csit/resources/tests/data
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2023-02-17 15:14:07 +0000
committerAdheli Tavares <adheli.tavares@est.tech>2023-02-22 13:22:48 +0000
commit1f339f886d01c6d6ac5cfd6467850c61fee4f675 (patch)
tree9c59715170d07c951421f5cf8f4d7d939e289c8b /csit/resources/tests/data
parenta6664dc5c767210a78f140b9fa149c2a8261b428 (diff)
Restructure of csit files to be used both by docker and k8s config
Issue-ID: POLICY-4125 Change-Id: Id63b3badb1b451b36e3226970dcafaa5a62d860f Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/resources/tests/data')
-rw-r--r--csit/resources/tests/data/AutomationComposition.json64
-rw-r--r--csit/resources/tests/data/InstantiateAC.json51
-rw-r--r--csit/resources/tests/data/PMSHMultipleACTosca.yaml932
-rw-r--r--csit/resources/tests/data/PassivateAC.json9
-rw-r--r--csit/resources/tests/data/PassiveCommand.json5
-rw-r--r--csit/resources/tests/data/RunningCommand.json5
-rw-r--r--csit/resources/tests/data/StateChangeRunningAC.json9
-rw-r--r--csit/resources/tests/data/VesEventForPnfPolicy.json28
-rw-r--r--csit/resources/tests/data/VesEventForVnfPolicy.json30
-rw-r--r--csit/resources/tests/data/apex.policy.decisionmaker.input.tosca.json184
-rw-r--r--csit/resources/tests/data/create.group.request.json49
-rw-r--r--csit/resources/tests/data/csar/sample_csar_with_apex_policy.csarbin0 -> 96868 bytes
-rw-r--r--csit/resources/tests/data/deploy.drools.policies.json27
-rw-r--r--csit/resources/tests/data/deploy.group.request.json29
-rw-r--r--csit/resources/tests/data/deploy.xacml.policies.json27
-rw-r--r--csit/resources/tests/data/event.json11
-rw-r--r--csit/resources/tests/data/functional-pmsh-usecase.yaml3404
-rw-r--r--csit/resources/tests/data/http-usecase.yaml312
-rwxr-xr-xcsit/resources/tests/data/make_topic.sh34
-rw-r--r--csit/resources/tests/data/onap.pnf.metadataSet.Test.json2755
-rw-r--r--csit/resources/tests/data/onap.policies.apex.pnf.Test.json2896
-rw-r--r--csit/resources/tests/data/onap.policies.apex.pnf.metadataSet.Test.json165
-rw-r--r--csit/resources/tests/data/onap.policies.apex.vnf.Test.json3198
-rw-r--r--csit/resources/tests/data/onap.policies.native.apex.Sampledomain.json7436
-rw-r--r--csit/resources/tests/data/onap.policy.guard.decision.request.json16
-rw-r--r--csit/resources/tests/data/onap.policy.monitoring.decision.request.json9
-rw-r--r--csit/resources/tests/data/onap.policy.monitoring.tcagen2.v1.json211
-rw-r--r--csit/resources/tests/data/onap.policy.monitoring.tcagen2.v2.json206
-rw-r--r--csit/resources/tests/data/onap.policy.monitoring.tcagen2.v3.json206
-rw-r--r--csit/resources/tests/data/onap.policy.naming.decision.request.json13
-rw-r--r--csit/resources/tests/data/onap.policy.optimization.decision.request.json15
-rwxr-xr-xcsit/resources/tests/data/onset.sh33
-rw-r--r--csit/resources/tests/data/policy_deploy.json17
-rw-r--r--csit/resources/tests/data/vCPE.policy.input.tosca.deploy.json5
-rw-r--r--csit/resources/tests/data/vcpeOnset.json16
-rw-r--r--csit/resources/tests/data/vdnsOnset.json16
-rw-r--r--csit/resources/tests/data/vfwOnset.json17
-rwxr-xr-xcsit/resources/tests/data/wait_topic.sh62
38 files changed, 22502 insertions, 0 deletions
diff --git a/csit/resources/tests/data/AutomationComposition.json b/csit/resources/tests/data/AutomationComposition.json
new file mode 100644
index 00000000..b58d6118
--- /dev/null
+++ b/csit/resources/tests/data/AutomationComposition.json
@@ -0,0 +1,64 @@
+{
+ "name": "PMSHInstance0",
+ "version": "1.0.1",
+ "compositionId": "COMPOSITIONIDPLACEHOLDER",
+ "state": "UNINITIALISED",
+ "orderedState": "UNINITIALISED",
+ "description": "PMSH automation composition instance 0",
+ "elements": {
+ "709c62b3-8918-41b9-a747-d21eb79c6c20": {
+ "id": "709c62b3-8918-41b9-a747-d21eb79c6c20",
+ "definition": {
+ "name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement",
+ "version": "1.2.3"
+ },
+ "participantId": {
+ "name": "K8sParticipant0",
+ "version": "1.0.0"
+ },
+ "participantType": {
+ "name": "org.onap.policy.clamp.acm.KubernetesParticipant",
+ "version": "2.3.4"
+ },
+ "state": "UNINITIALISED",
+ "orderedState": "UNINITIALISED",
+ "description": "Automation composition element for the K8S microservice for PMSH"
+ },
+ "709c62b3-8918-41b9-a747-d21eb79c6c21": {
+ "id": "709c62b3-8918-41b9-a747-d21eb79c6c21",
+ "definition": {
+ "name": "org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement",
+ "version": "1.2.3"
+ },
+ "participantId": {
+ "name": "HttpParticipant0",
+ "version": "1.0.0"
+ },
+ "participantType": {
+ "name": "org.onap.policy.clamp.acm.HttpParticipant",
+ "version": "2.3.4"
+ },
+ "state": "UNINITIALISED",
+ "orderedState": "UNINITIALISED",
+ "description": "Automation composition element for the http requests of PMSH microservice"
+ },
+ "709c62b3-8918-41b9-a747-d21eb79c6c22": {
+ "id": "709c62b3-8918-41b9-a747-d21eb79c6c22",
+ "definition": {
+ "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement",
+ "version": "1.2.3"
+ },
+ "participantId": {
+ "name": "org.onap.PM_Policy",
+ "version": "1.0.0"
+ },
+ "participantType": {
+ "name": "org.onap.policy.clamp.acm.PolicyParticipant",
+ "version": "2.3.1"
+ },
+ "state": "UNINITIALISED",
+ "orderedState": "UNINITIALISED",
+ "description": "Automation composition element for the operational policy for Performance Management Subscription Handling"
+ }
+ }
+}
diff --git a/csit/resources/tests/data/InstantiateAC.json b/csit/resources/tests/data/InstantiateAC.json
new file mode 100644
index 00000000..4e93c032
--- /dev/null
+++ b/csit/resources/tests/data/InstantiateAC.json
@@ -0,0 +1,51 @@
+{
+ "automationCompositionList": [
+ {
+ "name": "PMSHInstance0",
+ "version": "1.0.1",
+ "compositionId": "COMPOSITIONIDPLACEHOLDER",
+ "state": "UNINITIALISED",
+ "orderedState": "UNINITIALISED",
+ "description": "PMSH automation composition instance 0",
+ "elements": {
+ "709c62b3-8918-41b9-a747-d21eb79c6c21": {
+ "id": "709c62b3-8918-41b9-a747-d21eb79c6c21",
+ "definition": {
+ "name": "org.onap.domain.pmsh.PMSH_MonitoringPolicyAutomationCompositionElement",
+ "version": "1.2.3"
+ },
+ "participantId": {
+ "name": "org.onap.PM_Policy",
+ "version": "1.0.0"
+ },
+ "participantType": {
+ "name": "org.onap.policy.clamp.acm.PolicyParticipant",
+ "version": "2.3.1"
+ },
+ "state": "UNINITIALISED",
+ "orderedState": "UNINITIALISED",
+ "description": "Monitoring Policy Automation Composition Element for the PMSH instance 0 automation composition"
+ },
+ "709c62b3-8918-41b9-a747-d21eb79c6c22": {
+ "id": "709c62b3-8918-41b9-a747-d21eb79c6c22",
+ "definition": {
+ "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement",
+ "version": "1.2.3"
+ },
+ "participantId": {
+ "name": "org.onap.PM_Policy",
+ "version": "1.0.0"
+ },
+ "participantType": {
+ "name": "org.onap.policy.clamp.acm.PolicyParticipant",
+ "version": "2.3.1"
+ },
+ "state": "UNINITIALISED",
+ "orderedState": "UNINITIALISED",
+ "description": "Operational Policy Automation Composition Element for the PMSH instance 0 automation composition"
+ }
+ }
+ }
+ ]
+}
+
diff --git a/csit/resources/tests/data/PMSHMultipleACTosca.yaml b/csit/resources/tests/data/PMSHMultipleACTosca.yaml
new file mode 100644
index 00000000..c6f61e72
--- /dev/null
+++ b/csit/resources/tests/data/PMSHMultipleACTosca.yaml
@@ -0,0 +1,932 @@
+tosca_definitions_version: tosca_simple_yaml_1_3
+data_types:
+ onap.datatypes.ToscaConceptIdentifier:
+ derived_from: tosca.datatypes.Root
+ properties:
+ name:
+ type: string
+ required: true
+ version:
+ type: string
+ required: true
+ onap.datatype.acm.Target:
+ derived_from: tosca.datatypes.Root
+ description: >-
+ Definition for a entity in A&AI to perform an Automation Composition
+ operation on
+ properties:
+ targetType:
+ type: string
+ description: Category for the target type
+ required: true
+ constraints:
+ - valid_values:
+ - VNF
+ - VM
+ - VFMODULE
+ - PNF
+ entityIds:
+ type: map
+ description: >
+ Map of values that identify the resource. If none are provided, it is
+ assumed that the
+
+ entity that generated the ONSET event will be the target.
+ required: false
+ metadata:
+ clamp_possible_values: 'ClampExecution:CSAR_RESOURCES'
+ entry_schema:
+ type: string
+ onap.datatype.acm.Actor:
+ derived_from: tosca.datatypes.Root
+ description: An actor/operation/target definition
+ properties:
+ actor:
+ type: string
+ description: The actor performing the operation.
+ required: true
+ metadata:
+ clamp_possible_values: 'Dictionary:DefaultActors,ClampExecution:CDS/actor'
+ operation:
+ type: string
+ description: The operation the actor is performing.
+ metadata:
+ clamp_possible_values: 'Dictionary:DefaultOperations,ClampExecution:CDS/operation'
+ required: true
+ target:
+ type: onap.datatype.acm.Target
+ description: The resource the operation should be performed on.
+ required: true
+ payload:
+ type: map
+ description: Name/value pairs of payload information passed by Policy to the actor
+ required: false
+ metadata:
+ clamp_possible_values: 'ClampExecution:CDS/payload'
+ entry_schema:
+ type: string
+ onap.datatype.acm.Operation:
+ derived_from: tosca.datatypes.Root
+ description: An operation supported by an actor
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the operation
+ required: true
+ description:
+ type: string
+ description: A user-friendly description of the intent for the operation
+ required: false
+ operation:
+ type: onap.datatype.acm.Actor
+ description: The definition of the operation to be performed.
+ required: true
+ timeout:
+ type: integer
+ description: The amount of time for the actor to perform the operation.
+ required: true
+ retries:
+ type: integer
+ description: >-
+ The number of retries the actor should attempt to perform the
+ operation.
+ required: true
+ default: 0
+ success:
+ type: string
+ description: >-
+ Points to the operation to invoke on success. A value of
+ "final_success" indicates and end to the operation.
+ required: false
+ default: final_success
+ failure:
+ type: string
+ description: Points to the operation to invoke on Actor operation failure.
+ required: false
+ default: final_failure
+ failure_timeout:
+ type: string
+ description: >-
+ Points to the operation to invoke when the time out for the operation
+ occurs.
+ required: false
+ default: final_failure_timeout
+ failure_retries:
+ type: string
+ description: >-
+ Points to the operation to invoke when the current operation has
+ exceeded its max retries.
+ required: false
+ default: final_failure_retries
+ failure_exception:
+ type: string
+ description: >-
+ Points to the operation to invoke when the current operation causes an
+ exception.
+ required: false
+ default: final_failure_exception
+ failure_guard:
+ type: string
+ description: >-
+ Points to the operation to invoke when the current operation is
+ blocked due to guard policy enforcement.
+ required: false
+ default: final_failure_guard
+ onap.datatypes.monitoring.managedObjectDNsBasic:
+ constraints: []
+ properties:
+ DN:
+ name: DN
+ type: string
+ typeVersion: 0.0.0
+ description: Managed object distinguished name
+ required: true
+ constraints: []
+ metadata: {}
+ name: onap.datatypes.monitoring.managedObjectDNsBasic
+ version: 0.0.0
+ derived_from: tosca.datatypes.Root
+ metadata: {}
+ onap.datatypes.monitoring.managedObjectDNsBasics:
+ constraints: []
+ properties:
+ managedObjectDNsBasic:
+ name: managedObjectDNsBasic
+ type: map
+ typeVersion: 0.0.0
+ description: Managed object distinguished name object
+ required: true
+ constraints: []
+ entry_schema:
+ type: onap.datatypes.monitoring.managedObjectDNsBasic
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ name: onap.datatypes.monitoring.managedObjectDNsBasics
+ version: 0.0.0
+ derived_from: tosca.datatypes.Root
+ metadata: {}
+ onap.datatypes.monitoring.measurementGroup:
+ constraints: []
+ properties:
+ measurementTypes:
+ name: measurementTypes
+ type: list
+ typeVersion: 0.0.0
+ description: List of measurement types
+ required: true
+ constraints: []
+ entry_schema:
+ type: onap.datatypes.monitoring.measurementTypes
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ managedObjectDNsBasic:
+ name: managedObjectDNsBasic
+ type: list
+ typeVersion: 0.0.0
+ description: List of managed object distinguished names
+ required: true
+ constraints: []
+ entry_schema:
+ type: onap.datatypes.monitoring.managedObjectDNsBasics
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ name: onap.datatypes.monitoring.measurementGroup
+ version: 0.0.0
+ derived_from: tosca.datatypes.Root
+ metadata: {}
+ onap.datatypes.monitoring.measurementGroups:
+ constraints: []
+ properties:
+ measurementGroup:
+ name: measurementGroup
+ type: map
+ typeVersion: 0.0.0
+ description: Measurement Group
+ required: true
+ constraints: []
+ entry_schema:
+ type: onap.datatypes.monitoring.measurementGroup
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ name: onap.datatypes.monitoring.measurementGroups
+ version: 0.0.0
+ derived_from: tosca.datatypes.Root
+ metadata: {}
+ onap.datatypes.monitoring.measurementType:
+ constraints: []
+ properties:
+ measurementType:
+ name: measurementType
+ type: string
+ typeVersion: 0.0.0
+ description: Measurement type
+ required: true
+ constraints: []
+ metadata: {}
+ name: onap.datatypes.monitoring.measurementType
+ version: 0.0.0
+ derived_from: tosca.datatypes.Root
+ metadata: {}
+ onap.datatypes.monitoring.measurementTypes:
+ constraints: []
+ properties:
+ measurementType:
+ name: measurementType
+ type: map
+ typeVersion: 0.0.0
+ description: Measurement type object
+ required: true
+ constraints: []
+ entry_schema:
+ type: onap.datatypes.monitoring.measurementType
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ name: onap.datatypes.monitoring.measurementTypes
+ version: 0.0.0
+ derived_from: tosca.datatypes.Root
+ metadata: {}
+ onap.datatypes.monitoring.nfFilter:
+ constraints: []
+ properties:
+ modelNames:
+ name: modelNames
+ type: list
+ typeVersion: 0.0.0
+ description: List of model names
+ required: true
+ constraints: []
+ entry_schema:
+ type: string
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ modelInvariantIDs:
+ name: modelInvariantIDs
+ type: list
+ typeVersion: 0.0.0
+ description: List of model invariant IDs
+ required: true
+ constraints: []
+ entry_schema:
+ type: string
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ modelVersionIDs:
+ name: modelVersionIDs
+ type: list
+ typeVersion: 0.0.0
+ description: List of model version IDs
+ required: true
+ constraints: []
+ entry_schema:
+ type: string
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ nfNames:
+ name: nfNames
+ type: list
+ typeVersion: 0.0.0
+ description: List of network functions
+ required: true
+ constraints: []
+ entry_schema:
+ type: string
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ name: onap.datatypes.monitoring.nfFilter
+ version: 0.0.0
+ derived_from: tosca.datatypes.Root
+ metadata: {}
+ onap.datatypes.monitoring.subscription:
+ constraints: []
+ properties:
+ measurementGroups:
+ name: measurementGroups
+ type: list
+ typeVersion: 0.0.0
+ description: Measurement Groups
+ required: true
+ constraints: []
+ entry_schema:
+ type: onap.datatypes.monitoring.measurementGroups
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ fileBasedGP:
+ name: fileBasedGP
+ type: integer
+ typeVersion: 0.0.0
+ description: File based granularity period
+ required: true
+ constraints: []
+ metadata: {}
+ fileLocation:
+ name: fileLocation
+ type: string
+ typeVersion: 0.0.0
+ description: ROP file location
+ required: true
+ constraints: []
+ metadata: {}
+ subscriptionName:
+ name: subscriptionName
+ type: string
+ typeVersion: 0.0.0
+ description: Name of the subscription
+ required: true
+ constraints: []
+ metadata: {}
+ administrativeState:
+ name: administrativeState
+ type: string
+ typeVersion: 0.0.0
+ description: State of the subscription
+ required: true
+ constraints:
+ - valid_values:
+ - LOCKED
+ - UNLOCKED
+ metadata: {}
+ nfFilter:
+ name: nfFilter
+ type: map
+ typeVersion: 0.0.0
+ description: Network function filter
+ required: true
+ constraints: []
+ entry_schema:
+ type: onap.datatypes.monitoring.nfFilter
+ typeVersion: 0.0.0
+ constraints: []
+ metadata: {}
+ name: onap.datatypes.monitoring.subscription
+ version: 0.0.0
+ derived_from: tosca.datatypes.Root
+ metadata: {}
+ org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest:
+ version: 1.0.0
+ derived_from: tosca.datatypes.Root
+ properties:
+ restRequestId:
+ type: onap.datatypes.ToscaConceptIdentifier
+ typeVersion: 1.0.0
+ required: true
+ description: The name and version of a REST request to be sent to a REST endpoint
+ httpMethod:
+ type: string
+ required: true
+ constraints:
+ - valid_values:
+ - POST
+ - PUT
+ - GET
+ - DELETE
+ description: The REST method to use
+ path:
+ type: string
+ required: true
+ description: The path of the REST request relative to the base URL
+ body:
+ type: string
+ required: false
+ description: The body of the REST request for PUT and POST requests
+ expectedResponse:
+ type: integer
+ required: true
+ constraints: []
+ description: THe expected HTTP status code for the REST request
+ org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity:
+ version: 1.0.0
+ derived_from: tosca.datatypes.Root
+ properties:
+ configurationEntityId:
+ type: onap.datatypes.ToscaConceptIdentifier
+ typeVersion: 1.0.0
+ required: true
+ description: >-
+ The name and version of a Configuration Entity to be handled by the
+ HTTP Automation Composition Element
+ restSequence:
+ type: list
+ entry_schema:
+ type: >-
+ org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest
+ typeVersion: 1.0.0
+ description: A sequence of REST commands to send to the REST endpoint
+ org.onap.datatypes.policy.clamp.acm.a1PmsAutomationCompositionElement.A1PolicyServiceEntity:
+ version: 1.0.0
+ derived_from: tosca.datatypes.Root
+ properties:
+ a1PolicyServiceEntityId:
+ type: onap.datatypes.ToscaConceptIdentifier
+ typeVersion: 1.0.0
+ required: true
+ description: The name and version of a Configuration Entity to be handled by the A1 PMS Automation Composition Element
+ clientId:
+ type: string
+ required: true
+ description: Client Id to be created
+ callbackUrl:
+ type: string
+ required: true
+ description: The callback URL to get registered
+ keepAliveIntervalSeconds:
+ type: integer
+ required: true
+ description: Keep alive interval time for the callback URL
+policy_types:
+ onap.policies.Monitoring:
+ derived_from: tosca.policies.Root
+ description: a base policy type for all policies that govern monitoring provisioning
+ version: 1.0.0
+ name: onap.policies.Monitoring
+ onap.policies.Sirisha:
+ derived_from: tosca.policies.Root
+ description: a base policy type for all policies that govern monitoring provisioning
+ version: 1.0.0
+ name: onap.policies.Sirisha
+ onap.policies.monitoring.dcae-pm-subscription-handler:
+ properties:
+ pmsh_policy:
+ name: pmsh_policy
+ type: onap.datatypes.monitoring.subscription
+ typeVersion: 0.0.0
+ description: PMSH Policy JSON
+ required: false
+ constraints: []
+ metadata: {}
+ name: onap.policies.monitoring.dcae-pm-subscription-handler
+ version: 1.0.0
+ derived_from: onap.policies.Monitoring
+ metadata: {}
+ onap.policies.acm.operational.Common:
+ derived_from: tosca.policies.Root
+ version: 1.0.0
+ name: onap.policies.acm.operational.Common
+ description: >
+ Operational Policy for Automation Composition execution. Originated in
+ Frankfurt to support TOSCA Compliant
+
+ Policy Types. This does NOT support the legacy Policy YAML policy type.
+ properties:
+ id:
+ type: string
+ description: The unique Automation Composition id.
+ required: true
+ timeout:
+ type: integer
+ description: >
+ Overall timeout for executing all the operations. This timeout should
+ equal or exceed the total
+
+ timeout for each operation listed.
+ required: true
+ abatement:
+ type: boolean
+ description: >-
+ Whether an abatement event message will be expected for the Automation
+ Composition from DCAE.
+ required: true
+ default: false
+ trigger:
+ type: string
+ description: >-
+ Initial operation to execute upon receiving an Onset event message for
+ the Automation Composition.
+ required: true
+ operations:
+ type: list
+ description: >-
+ List of operations to be performed when Automation Composition is
+ triggered.
+ required: true
+ entry_schema:
+ type: onap.datatype.acm.Operation
+ onap.policies.acm.operational.common.Apex:
+ derived_from: onap.policies.acm.operational.Common
+ type_version: 1.0.0
+ version: 1.0.0
+ name: onap.policies.acm.operational.common.Apex
+ description: Operational policies for Apex PDP
+ properties:
+ engineServiceParameters:
+ type: string
+ description: >-
+ The engine parameters like name, instanceCount, policy implementation,
+ parameters etc.
+ required: true
+ eventInputParameters:
+ type: string
+ description: The event input parameters.
+ required: true
+ eventOutputParameters:
+ type: string
+ description: The event output parameters.
+ required: true
+ javaProperties:
+ type: string
+ description: Name/value pairs of properties to be set for APEX if needed.
+ required: false
+node_types:
+ org.onap.policy.clamp.acm.Participant:
+ version: 1.0.1
+ derived_from: tosca.nodetypes.Root
+ properties:
+ provider:
+ type: string
+ requred: false
+ org.onap.policy.clamp.acm.AutomationCompositionElement:
+ version: 1.0.1
+ derived_from: tosca.nodetypes.Root
+ properties:
+ provider:
+ type: string
+ required: false
+ metadata:
+ common: true
+ description: >-
+ Specifies the organization that provides the automation composition
+ element
+ participant_id:
+ type: onap.datatypes.ToscaConceptIdentifier
+ requred: true
+ metadata:
+ common: true
+ participantType:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ metadata:
+ common: true
+ description: >-
+ The identity of the participant type that hosts this type of
+ Automation Composition Element
+ startPhase:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ metadata:
+ common: true
+ description: >-
+ A value indicating the start phase in which this automation
+ composition element will be started, the first start phase is zero.
+ Automation Composition Elements are started in their start_phase order
+ and stopped in reverse start phase order. Automation Composition
+ Elements with the same start phase are started and stopped
+ simultaneously
+ uninitializedToPassiveTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: >-
+ The maximum time in seconds to wait for a state chage from
+ uninitialized to passive
+ passiveToRunningTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: >-
+ The maximum time in seconds to wait for a state chage from passive to
+ running
+ runningToPassiveTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: >-
+ The maximum time in seconds to wait for a state chage from running to
+ passive
+ passiveToUninitializedTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: >-
+ The maximum time in seconds to wait for a state chage from passive to
+ uninitialized
+ org.onap.policy.clamp.acm.AutomationComposition:
+ version: 1.0.1
+ derived_from: tosca.nodetypes.Root
+ properties:
+ provider:
+ type: string
+ required: false
+ metadata:
+ common: true
+ description: >-
+ Specifies the organization that provides the automation composition
+ element
+ elements:
+ type: list
+ required: true
+ metadata:
+ common: true
+ entry_schema:
+ type: onap.datatypes.ToscaConceptIdentifier
+ description: >-
+ Specifies a list of automation composition element definitions that
+ make up this automation composition definition
+ org.onap.policy.clamp.acm.PolicyAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ policy_type_id:
+ type: onap.datatypes.ToscaConceptIdentifier
+ requred: true
+ policy_id:
+ type: onap.datatypes.ToscaConceptIdentifier
+ requred: false
+ org.onap.policy.clamp.acm.CDSAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ cds_blueprint_id:
+ type: onap.datatypes.ToscaConceptIdentifier
+ requred: true
+ org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ chart:
+ type: string
+ required: true
+ configs:
+ type: list
+ required: false
+ requirements:
+ type: string
+ requred: false
+ templates:
+ type: list
+ required: false
+ entry_schema: null
+ values:
+ type: string
+ requred: true
+ org.onap.policy.clamp.acm.HttpAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ baseUrl:
+ type: string
+ required: true
+ description: >-
+ The base URL to be prepended to each path, identifies the host for the
+ REST endpoints.
+ httpHeaders:
+ type: map
+ required: false
+ entry_schema:
+ type: string
+ description: HTTP headers to send on REST requests
+ configurationEntities:
+ type: map
+ required: true
+ entry_schema:
+ type: >-
+ org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity
+ typeVersion: 1.0.0
+ description: >-
+ The connfiguration entities the Automation Composition Element is
+ managing and their associated REST requests
+ org.onap.policy.clamp.acm.A1PMSAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ policyServiceEntities:
+ type: list
+ required: true
+ entry_schema:
+ type: org.onap.datatypes.policy.clamp.acm.a1pmsAutomationCompositionElement.A1PolicyServiceEntity
+ typeVersion: 1.0.0
+ description: The configuration entities of A1 PMS policy services
+topology_template:
+ inputs:
+ pmsh_monitoring_policy:
+ type: onap.datatypes.ToscaConceptIdentifier
+ description: The ID of the PMSH monitoring policy to use
+ default:
+ name: >-
+ MICROSERVICE_vLoadBalancerMS_v1_0_dcae-pm-subscription-handler_1_0_0test
+ version: 1.0.0
+ pmsh_operational_policy:
+ type: onap.datatypes.ToscaConceptIdentifier
+ description: The ID of the PMSH operational policy to use
+ default:
+ name: operational.apex.pmcontrol
+ version: 1.0.0
+ node_templates:
+ org.onap.policy.clamp.acm.PolicyParticipant:
+ version: 2.3.1
+ type: org.onap.policy.clamp.acm.Participant
+ type_version: 1.0.1
+ description: Participant for DCAE microservices
+ properties:
+ provider: ONAP
+ org.onap.domain.pmsh.PMSH_MonitoringPolicyAutomationCompositionElement:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement
+ type_version: 1.0.0
+ description: >-
+ Automation composition element for the monitoring policy for Performance
+ Management Subscription Handling
+ properties:
+ provider: Ericsson
+ participant_id:
+ name: org.onap.PM_Policy
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.PolicyParticipant
+ version: 2.3.1
+ policy_type_id:
+ name: onap.policies.monitoring.pm-subscription-handler
+ version: 1.0.0
+ policy_id:
+ get_input: pmsh_monitoring_policy
+ org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement
+ type_version: 1.0.0
+ description: >-
+ Automation composition element for the operational policy for
+ Performance Management Subscription Handling
+ properties:
+ provider: Ericsson
+ participant_id:
+ name: org.onap.PM_Policy
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.PolicyParticipant
+ version: 2.3.1
+ policy_type_id:
+ name: onap.policies.operational.pm-subscription-handler
+ version: 1.0.0
+ policy_id:
+ get_input: pmsh_operational_policy
+ org.onap.policy.clamp.acm.KubernetesParticipant:
+ version: 2.3.4
+ type: org.onap.policy.clamp.acm.Participant
+ type_version: 1.0.1
+ description: Participant for K8S
+ properties:
+ provider: ONAP
+ org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement
+ type_version: 1.0.0
+ description: Automation composition element for the K8S microservice for PMSH
+ properties:
+ provider: ONAP
+ participant_id:
+ name: K8sParticipant0
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.KubernetesParticipant
+ version: 2.3.4
+ chart:
+ chartId:
+ name: dcae-pmsh
+ version: 10.0.0
+ namespace: onap
+ releaseName: onap-dcae-pmsh
+ repository:
+ repoName: chartmuseum
+ address: 'http://chart-museum:80'
+ userName: onapinitializer
+ password: demo123456!
+ overrideParams:
+ global.masterPassword: test
+ org.onap.policy.clamp.acm.HttpParticipant:
+ version: 2.3.4
+ type: org.onap.policy.clamp.acm.Participant
+ type_version: 1.0.1
+ description: Participant for Http requests
+ properties:
+ provider: ONAP
+ org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
+ type_version: 1.0.1
+ description: >-
+ Automation composition element for the http requests of PMSH
+ microservice
+ properties:
+ provider: ONAP
+ participant_id:
+ name: HttpParticipant0
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.HttpParticipant
+ version: 2.3.4
+ uninitializedToPassiveTimeout: 180
+ startPhase: 1
+ baseUrl: 'https://dcae-pmsh:8443'
+ httpHeaders:
+ Content-Type: application/json
+ configurationEntities:
+ - configurationEntityId:
+ name: entity1
+ version: 1.0.1
+ restSequence:
+ - restRequestId:
+ name: request1
+ version: 1.0.1
+ httpMethod: POST
+ path: subscription
+ body: >-
+ { "subscription":{ "subscriptionName":"new_sub_01",
+ "operationalPolicyName":"pmsh-operational-policy",
+ "controlLoopName":"controlLoop-name", "nfFilter":{ "nfNames":[
+ "^pnf*" ], "modelInvariantIDs":[
+ "7129e420-d396-4efb-af02-6b83499b12f5" ], "modelVersionIDs":[
+ "e80a6ae3-cafd-4d24-850d-e14c084a5ca7" ], "modelNames":[
+ "pnf_134" ] }, "measurementGroups":[ { "measurementGroup":{
+ "measurementGroupName":"msgroup_01",
+ "administrativeState":"UNLOCKED", "fileBasedGP":15,
+ "fileLocation":"/pm/pm.xml", "measurementTypes":[ {
+ "measurementType":"EutranCell.*" }, {
+ "measurementType":"EutranCellRelation.pmCounter1" }, {
+ "measurementType":"EutranCellRelation.pmCounter2" } ],
+ "managedObjectDNsBasic":[ {
+ "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1"
+ }, {
+ "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1,
+ EUtranCellRelation=CityCenter2" }, {
+ "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1,
+ EUtranCellRelation=CityCenter3" } ] } } ] } }
+ expectedResponse: 201
+ org.onap.k8s.acm.A1PMSAutomationCompositionParticipant:
+ version: 2.3.4
+ type: org.onap.policy.clamp.acm.Participant
+ type_version: 1.0.1
+ description: Participant for A1 PMS requests
+ properties:
+ provider: ONAP
+ org.onap.domain.database.PMSH_A1PMSAutomationCompositionElement:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.A1PMSAutomationCompositionElement
+ type_version: 1.0.1
+ description: Automation composition element for the A1 PMS Requests
+ properties:
+ provider: ONAP
+ participantType:
+ name: org.onap.policy.clamp.acm.A1PMSParticipant
+ version: 2.3.4
+ policyServiceEntities:
+ - a1PolicyServiceEntityId:
+ name: entity1
+ version: 1.0.1
+ clientId: firstService
+ callbackUrl: http://localhost
+ keepAliveIntervalSeconds: 0
+ - a1PolicyServiceEntityId:
+ name: entity2
+ version: 1.0.1
+ clientId: secondService
+ callbackUrl: http://127.0.0.1
+ keepAliveIntervalSeconds: 0
+ org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.AutomationComposition
+ type_version: 1.0.0
+ description: Automation composition for Hello World
+ properties:
+ provider: ONAP
+ elements:
+ - name: >-
+ org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement
+ version: 1.2.3
+ - name: >-
+ org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement
+ version: 1.2.3
+ - name: >-
+ org.onap.domain.database.PMSH_A1PMSAutomationCompositionElement
+ version: 1.2.3
+ - name: >-
+ org.onap.domain.pmsh.PMSH_MonitoringPolicyAutomationCompositionElement
+ version: 1.2.3
+ - name: >-
+ org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement
+ version: 1.2.3
diff --git a/csit/resources/tests/data/PassivateAC.json b/csit/resources/tests/data/PassivateAC.json
new file mode 100644
index 00000000..bd4c4a21
--- /dev/null
+++ b/csit/resources/tests/data/PassivateAC.json
@@ -0,0 +1,9 @@
+{
+ "orderedState": "PASSIVE",
+ "automationCompositionIdentifierList": [
+ {
+ "name": "PMSHInstance0",
+ "version": "1.0.1"
+ }
+ ]
+}
diff --git a/csit/resources/tests/data/PassiveCommand.json b/csit/resources/tests/data/PassiveCommand.json
new file mode 100644
index 00000000..48422d7e
--- /dev/null
+++ b/csit/resources/tests/data/PassiveCommand.json
@@ -0,0 +1,5 @@
+{
+ "instantiationCommand": {
+ "orderedState": "PASSIVE"
+ }
+}
diff --git a/csit/resources/tests/data/RunningCommand.json b/csit/resources/tests/data/RunningCommand.json
new file mode 100644
index 00000000..56980e64
--- /dev/null
+++ b/csit/resources/tests/data/RunningCommand.json
@@ -0,0 +1,5 @@
+{
+ "instantiationCommand": {
+ "orderedState": "RUNNING"
+ }
+}
diff --git a/csit/resources/tests/data/StateChangeRunningAC.json b/csit/resources/tests/data/StateChangeRunningAC.json
new file mode 100644
index 00000000..494f6fd7
--- /dev/null
+++ b/csit/resources/tests/data/StateChangeRunningAC.json
@@ -0,0 +1,9 @@
+{
+ "orderedState": "RUNNING",
+ "automationCompositionIdentifierList": [
+ {
+ "name": "PMSHInstance0",
+ "version": "1.0.1"
+ }
+ ]
+}
diff --git a/csit/resources/tests/data/VesEventForPnfPolicy.json b/csit/resources/tests/data/VesEventForPnfPolicy.json
new file mode 100644
index 00000000..9998fc6f
--- /dev/null
+++ b/csit/resources/tests/data/VesEventForPnfPolicy.json
@@ -0,0 +1,28 @@
+{
+ "event" : {
+ "commonEventHeader" : {
+ "startEpochMicrosec" : 1597953057126,
+ "sourceId" : "927b2580-36d9-4f13-8421-3c9d43b7a57e",
+ "eventId" : "8c7935a4-79d8-4ec0-b661-dcca3cd68006",
+ "lastEpochMicrosec" : 1597952499468,
+ "eventName" : "Report hostname & IP",
+ "sourceName" : "demo-pnf",
+ "reportingEntityName" : "DCAE",
+ "vesEventListenerVersion" : "7.1",
+ "internalHeaderFields" : { },
+ "version" : "4.0.1",
+ "priority" : "Normal",
+ "sequence" : 1,
+ "domain" : "other"
+ },
+ "otherFields" : {
+ "hashMap" : {
+ "hostname" : "UNDEFINED",
+ "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e",
+ "pnfName": "demo-pnf",
+ "ip" : "10.101.200.10"
+ },
+ "otherFieldsVersion" : "3.0"
+ }
+ }
+}
diff --git a/csit/resources/tests/data/VesEventForVnfPolicy.json b/csit/resources/tests/data/VesEventForVnfPolicy.json
new file mode 100644
index 00000000..0fc8481d
--- /dev/null
+++ b/csit/resources/tests/data/VesEventForVnfPolicy.json
@@ -0,0 +1,30 @@
+{
+ "event": {
+ "commonEventHeader": {
+ "domain": "fault",
+ "eventId": "fault0000245",
+ "eventName": "Fault_Vscf:PilotNumberPoolExhaustion",
+ "lastEpochMicrosec": 1413378172000000,
+ "priority": "High",
+ "reportingEntityName": "ibcx0001vm002oam001",
+ "sequence": 1,
+ "sourceId": "de305d54-75b4-431b-adb2-eb6b9e5460141",
+ "sourceName": "vfw-cnf-cds-test-1-vnf",
+ "startEpochMicrosec": 1413378172000000,
+ "timeZoneOffset": "UTC-05:30",
+ "version": "4.0.1",
+ "vesEventListenerVersion": "7.0.1"
+ },
+ "faultFields": {
+ "alarmAdditionalInformation": {
+ "PilotNumberPoolSize": "1000"
+ },
+ "alarmCondition": "PilotNumberPoolExhaustion",
+ "eventSeverity": "CRITICAL",
+ "eventSourceType": "other",
+ "faultFieldsVersion": 4,
+ "specificProblem": "Calls cannot complete - pilot numbers are unavailable",
+ "vfStatus": "Active"
+ }
+ }
+}
diff --git a/csit/resources/tests/data/apex.policy.decisionmaker.input.tosca.json b/csit/resources/tests/data/apex.policy.decisionmaker.input.tosca.json
new file mode 100644
index 00000000..5d84c294
--- /dev/null
+++ b/csit/resources/tests/data/apex.policy.decisionmaker.input.tosca.json
@@ -0,0 +1,184 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "topology_template": {
+ "policies": [
+ {
+ "operational.apex.decisionMaker": {
+ "type": "onap.policies.native.Apex",
+ "type_version": "1.0.0",
+ "name": "operational.apex.decisionMaker",
+ "version": "1.0.0",
+ "metadata": {
+ "metadataSetName": "apexMetadata_decisionMaker",
+ "metadataSetVersion": "1.0.0"
+ },
+ "properties": {
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ },
+ "contextParameters": {
+ "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
+ "schemaParameters": {
+ "Avro": {
+ "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
+ },
+ "Java": {
+ "parameterClassName": "org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters",
+ "jsonAdapters": {
+ "Instant": {
+ "adaptedClass": "java.time.Instant",
+ "adaptorClass": "org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter"
+ }
+ }
+ }
+ }
+ },
+ "taskParameters": [
+ {
+ "key": "ParameterKey1",
+ "value": "ParameterValue1"
+ },
+ {
+ "taskId": "AAILookupTask:0.0.1",
+ "key": "SomeKeyForThisTask",
+ "value": "Value"
+ }
+ ]
+ }
+ },
+ "eventInputParameters": {
+ "GuardRequestorConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://111.222.333.444:5555/pdp/api/getDecision",
+ "httpMethod": "POST",
+ "restRequestTimeout": 2000,
+ "httpHeader": "Authorization:aaaaaaaaa== ClientAuth:bbbbbbbbb="
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "GuardResponseEvent",
+ "eventNameFilter": "GuardResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "GuardRequestorProducer",
+ "requestorTimeout": 500
+ },
+ "DCAEConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/APEX/1?timeout=60000"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON",
+ "parameters": {
+ "nameAlias": "closedLoopControlName",
+ "versionAlias": "version",
+ "sourceAlias": "from",
+ "pojoField": "VirtualControlLoopEvent"
+ }
+ },
+ "eventName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e"
+ },
+ "APPCConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://message-router:3904/events/APPC-LCM-WRITE/APEX/1?timeout=60000"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON",
+ "parameters": {
+ "versionAlias": "version",
+ "pojoField": "APPCLCMResponseEvent"
+ }
+ },
+ "eventName": "APPCRestartVNFResponseEvent",
+ "eventNameFilter": "APPCRestartVNFResponseEvent"
+ }
+ },
+ "eventOutputParameters": {
+ "logProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "/tmp/VCPEEventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "GuardRequestorProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "GuardRequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "GuardRequestorConsumer",
+ "requestorTimeout": 500
+ },
+ "APPCProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://message-router:3904/events/APPC-LCM-READ"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON",
+ "parameters": {
+ "versionAlias": "version",
+ "sourceAlias": "from",
+ "pojoField": "APPCLCMRequestEvent"
+ }
+ },
+ "eventNameFilter": "APPCRestartVNFRequestEvent"
+ },
+ "PolicyLogProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://message-router:3904/events/POLICY-CL-MGT"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON",
+ "parameters": {
+ "versionAlias": "version",
+ "sourceAlias": "from",
+ "pojoField": "VirtualControlLoopNotification"
+ }
+ },
+ "eventNameFilter": "ControlLoopLogEvent"
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/csit/resources/tests/data/create.group.request.json b/csit/resources/tests/data/create.group.request.json
new file mode 100644
index 00000000..1e37583c
--- /dev/null
+++ b/csit/resources/tests/data/create.group.request.json
@@ -0,0 +1,49 @@
+{
+ "groups": [
+ {
+ "name": "testGroup",
+ "pdpGroupState": "PASSIVE",
+ "properties": {
+ "hello": "world"
+ },
+ "pdpSubgroups": [
+ {
+ "pdpType": "pdpTypeA",
+ "desiredInstanceCount": 2,
+ "properties": {},
+ "supportedPolicyTypes": [
+ {
+ "name": "onap.policies.monitoring.tcagen2",
+ "version": "1.0.0"
+ }
+ ],
+ "policies": []
+ },
+ {
+ "pdpType": "pdpTypeB",
+ "desiredInstanceCount": 1,
+ "properties": {},
+ "supportedPolicyTypes": [
+ {
+ "name": "onap.policies.monitoring.tcagen2",
+ "version": "1.0.0"
+ }
+ ],
+ "policies": []
+ },
+ {
+ "pdpType": "pdpTypeC",
+ "desiredInstanceCount": 1,
+ "properties": {},
+ "supportedPolicyTypes": [
+ {
+ "name": "onap.policies.native.Apex",
+ "version": "1.0.0"
+ }
+ ],
+ "policies": []
+ }
+ ]
+ }
+ ]
+}
diff --git a/csit/resources/tests/data/csar/sample_csar_with_apex_policy.csar b/csit/resources/tests/data/csar/sample_csar_with_apex_policy.csar
new file mode 100644
index 00000000..4d293e42
--- /dev/null
+++ b/csit/resources/tests/data/csar/sample_csar_with_apex_policy.csar
Binary files differ
diff --git a/csit/resources/tests/data/deploy.drools.policies.json b/csit/resources/tests/data/deploy.drools.policies.json
new file mode 100644
index 00000000..24c90d0d
--- /dev/null
+++ b/csit/resources/tests/data/deploy.drools.policies.json
@@ -0,0 +1,27 @@
+{
+ "groups": [
+ {
+ "name": "defaultGroup",
+ "deploymentSubgroups": [
+ {
+ "pdpType": "drools",
+ "action": "POST",
+ "policies": [
+ {
+ "name": "operational.restart",
+ "version": "1.0.0"
+ },
+ {
+ "name": "operational.scaleout",
+ "version": "1.0.0"
+ },
+ {
+ "name": "operational.modifyconfig",
+ "version": "1.0.0"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/csit/resources/tests/data/deploy.group.request.json b/csit/resources/tests/data/deploy.group.request.json
new file mode 100644
index 00000000..cfd86d1e
--- /dev/null
+++ b/csit/resources/tests/data/deploy.group.request.json
@@ -0,0 +1,29 @@
+{
+ "groups": [
+ {
+ "name": "testGroup",
+ "deploymentSubgroups": [
+ {
+ "pdpType": "pdpTypeA",
+ "action": "POST",
+ "policies": [
+ {
+ "name": "onap.restart.tca",
+ "version": "1.0.0"
+ }
+ ]
+ },
+ {
+ "pdpType": "pdpTypeC",
+ "action": "POST",
+ "policies": [
+ {
+ "name": "operational.apex.decisionMaker",
+ "version": "1.0.0"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/csit/resources/tests/data/deploy.xacml.policies.json b/csit/resources/tests/data/deploy.xacml.policies.json
new file mode 100644
index 00000000..46da9021
--- /dev/null
+++ b/csit/resources/tests/data/deploy.xacml.policies.json
@@ -0,0 +1,27 @@
+{
+ "groups": [
+ {
+ "name": "defaultGroup",
+ "deploymentSubgroups": [
+ {
+ "pdpType": "xacml",
+ "action": "POST",
+ "policies": [
+ {
+ "name": "onap.restart.tca",
+ "version": "1.0.0"
+ },
+ {
+ "name": "onap.scaleout.tca",
+ "version": "1.0.0"
+ },
+ {
+ "name": "onap.vfirewall.tca",
+ "version": "1.0.0"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/csit/resources/tests/data/event.json b/csit/resources/tests/data/event.json
new file mode 100644
index 00000000..9dbf2790
--- /dev/null
+++ b/csit/resources/tests/data/event.json
@@ -0,0 +1,11 @@
+{
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "name": "Event0000",
+ "version": "0.0.1",
+ "source": "REST_0",
+ "target": "apex",
+ "TestSlogan": "Test slogan for External Event0",
+ "TestMatchCase": 3,
+ "TestTimestamp": 1536363522018,
+ "TestTemperature": 9080.866
+}
diff --git a/csit/resources/tests/data/functional-pmsh-usecase.yaml b/csit/resources/tests/data/functional-pmsh-usecase.yaml
new file mode 100644
index 00000000..f0da6f35
--- /dev/null
+++ b/csit/resources/tests/data/functional-pmsh-usecase.yaml
@@ -0,0 +1,3404 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 2022 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+tosca_definitions_version: tosca_simple_yaml_1_3
+data_types:
+ onap.datatypes.ToscaConceptIdentifier:
+ derived_from: tosca.datatypes.Root
+ properties:
+ name:
+ type: string
+ required: true
+ version:
+ type: string
+ required: true
+ onap.datatype.controlloop.Target:
+ derived_from: tosca.datatypes.Root
+ description: Definition for a entity in A&AI to perform a control loop operation
+ on
+ properties:
+ targetType:
+ type: string
+ description: Category for the target type
+ required: true
+ constraints:
+ - valid_values:
+ - VNF
+ - VM
+ - VFMODULE
+ - PNF
+ entityIds:
+ type: map
+ description: |
+ Map of values that identify the resource. If none are provided, it is assumed that the
+ entity that generated the ONSET event will be the target.
+ required: false
+ metadata:
+ clamp_possible_values: ClampExecution:CSAR_RESOURCES
+ entry_schema:
+ type: string
+ onap.datatype.controlloop.Actor:
+ derived_from: tosca.datatypes.Root
+ description: An actor/operation/target definition
+ properties:
+ actor:
+ type: string
+ description: The actor performing the operation.
+ required: true
+ metadata:
+ clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor
+ operation:
+ type: string
+ description: The operation the actor is performing.
+ metadata:
+ clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation
+ required: true
+ target:
+ type: onap.datatype.controlloop.Target
+ description: The resource the operation should be performed on.
+ required: true
+ payload:
+ type: map
+ description: Name/value pairs of payload information passed by Policy to the
+ actor
+ required: false
+ metadata:
+ clamp_possible_values: ClampExecution:CDS/payload
+ entry_schema:
+ type: string
+ onap.datatype.controlloop.Operation:
+ derived_from: tosca.datatypes.Root
+ description: An operation supported by an actor
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the operation
+ required: true
+ description:
+ type: string
+ description: A user-friendly description of the intent for the operation
+ required: false
+ operation:
+ type: onap.datatype.controlloop.Actor
+ description: The definition of the operation to be performed.
+ required: true
+ timeout:
+ type: integer
+ description: The amount of time for the actor to perform the operation.
+ required: true
+ retries:
+ type: integer
+ description: The number of retries the actor should attempt to perform the
+ operation.
+ required: true
+ default: 0
+ success:
+ type: string
+ description: Points to the operation to invoke on success. A value of "final_success"
+ indicates and end to the operation.
+ required: false
+ default: final_success
+ failure:
+ type: string
+ description: Points to the operation to invoke on Actor operation failure.
+ required: false
+ default: final_failure
+ failure_timeout:
+ type: string
+ description: Points to the operation to invoke when the time out for the operation
+ occurs.
+ required: false
+ default: final_failure_timeout
+ failure_retries:
+ type: string
+ description: Points to the operation to invoke when the current operation
+ has exceeded its max retries.
+ required: false
+ default: final_failure_retries
+ failure_exception:
+ type: string
+ description: Points to the operation to invoke when the current operation
+ causes an exception.
+ required: false
+ default: final_failure_exception
+ failure_guard:
+ type: string
+ description: Points to the operation to invoke when the current operation
+ is blocked due to guard policy enforcement.
+ required: false
+ default: final_failure_guard
+ org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest:
+ version: 1.0.0
+ derived_from: tosca.datatypes.Root
+ properties:
+ restRequestId:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ description: The name and version of a REST request to be sent to a REST endpoint
+ httpMethod:
+ type: string
+ required: true
+ constraints:
+ - valid_values:
+ - POST
+ - PUT
+ - GET
+ - DELETE
+ description: The REST method to use
+ path:
+ type: string
+ required: true
+ description: The path of the REST request relative to the base URL
+ body:
+ type: string
+ required: false
+ description: The body of the REST request for PUT and POST requests
+ expectedResponse:
+ type: integer
+ required: true
+ constraints: []
+ description: THe expected HTTP status code for the REST request
+ org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity:
+ version: 1.0.0
+ derived_from: tosca.datatypes.Root
+ properties:
+ configurationEntityId:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ description: The name and version of a Configuration Entity to be handled
+ by the HTTP Automation Composition Element
+ restSequence:
+ type: list
+ entry_schema:
+ type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest
+ type_version: 1.0.0
+ description: A sequence of REST commands to send to the REST endpoint
+policy_types:
+ onap.policies.Monitoring:
+ derived_from: tosca.policies.Root
+ description: a base policy type for all policies that govern monitoring provisioning
+ version: 1.0.0
+ name: onap.policies.Monitoring
+ onap.policies.customPolicyType:
+ derived_from: tosca.policies.Root
+ description: a base policy type for all policies that govern monitoring provisioning
+ version: 1.0.0
+ name: onap.policies.customPolicyType
+ onap.policies.controlloop.operational.Common:
+ derived_from: tosca.policies.Root
+ version: 1.0.0
+ name: onap.policies.controlloop.operational.Common
+ description: |
+ Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
+ Policy Types. This does NOT support the legacy Policy YAML policy type.
+ properties:
+ id:
+ type: string
+ description: The unique control loop id.
+ required: true
+ timeout:
+ type: integer
+ description: |
+ Overall timeout for executing all the operations. This timeout should equal or exceed the total
+ timeout for each operation listed.
+ required: true
+ abatement:
+ type: boolean
+ description: Whether an abatement event message will be expected for the control
+ loop from DCAE.
+ required: true
+ default: false
+ trigger:
+ type: string
+ description: Initial operation to execute upon receiving an Onset event message
+ for the Control Loop.
+ required: true
+ operations:
+ type: list
+ description: List of operations to be performed when Control Loop is triggered.
+ required: true
+ entry_schema:
+ type: onap.datatype.controlloop.Operation
+ onap.policies.controlloop.operational.common.Apex:
+ derived_from: onap.policies.controlloop.operational.Common
+ type_version: 1.0.0
+ version: 1.0.0
+ name: onap.policies.controlloop.operational.common.Apex
+ description: Operational policies for Apex PDP
+ properties:
+ engineServiceParameters:
+ type: string
+ description: The engine parameters like name, instanceCount, policy implementation,
+ parameters etc.
+ required: true
+ eventInputParameters:
+ type: string
+ description: The event input parameters.
+ required: true
+ eventOutputParameters:
+ type: string
+ description: The event output parameters.
+ required: true
+ javaProperties:
+ type: string
+ description: Name/value pairs of properties to be set for APEX if needed.
+ required: false
+
+node_types:
+ org.onap.policy.clamp.acm.Participant:
+ version: 1.0.1
+ derived_from: tosca.nodetypes.Root
+ properties:
+ provider:
+ type: string
+ required: false
+ org.onap.policy.clamp.acm.AutomationCompositionElement:
+ version: 1.0.1
+ derived_from: tosca.nodetypes.Root
+ properties:
+ provider:
+ type: string
+ required: false
+ metadata:
+ common: true
+ description: Specifies the organization that provides the automation composition element
+ participant_id:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ metadata:
+ common: true
+ participantType:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ metadata:
+ common: true
+ description: The identity of the participant type that hosts this type of Automation Composition Element
+ startPhase:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ metadata:
+ common: true
+ description: A value indicating the start phase in which this automation composition element will be started, the
+ first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped
+ in reverse start phase order. Automation Composition Elements with the same start phase are started and
+ stopped simultaneously
+ uninitializedToPassiveTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: The maximum time in seconds to wait for a state chage from uninitialized to passive
+ passiveToRunningTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: The maximum time in seconds to wait for a state chage from passive to running
+ runningToPassiveTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: The maximum time in seconds to wait for a state chage from running to passive
+ passiveToUninitializedTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: The maximum time in seconds to wait for a state chage from passive to uninitialized
+ org.onap.policy.clamp.acm.AutomationComposition:
+ version: 1.0.1
+ derived_from: tosca.nodetypes.Root
+ properties:
+ provider:
+ type: string
+ required: false
+ metadata:
+ common: true
+ description: Specifies the organization that provides the automation composition element
+ elements:
+ type: list
+ required: true
+ metadata:
+ common: true
+ entry_schema:
+ type: onap.datatypes.ToscaConceptIdentifier
+ description: Specifies a list of automation composition element definitions that make up this automation composition definition
+ org.onap.policy.clamp.acm.PolicyAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ policy_type_id:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ policy_id:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: false
+ org.onap.policy.clamp.acm.CDSAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ cds_blueprint_id:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ chart:
+ type: string
+ required: true
+ configs:
+ type: list
+ required: false
+ requirements:
+ type: string
+ required: false
+ templates:
+ type: list
+ required: false
+ entry_schema:
+ values:
+ type: string
+ required: true
+ org.onap.policy.clamp.acm.HttpAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ baseUrl:
+ type: string
+ required: true
+ description: The base URL to be prepended to each path, identifies the host for the REST endpoints.
+ httpHeaders:
+ type: map
+ required: false
+ entry_schema:
+ type: string
+ description: HTTP headers to send on REST requests
+ configurationEntities:
+ type: map
+ required: true
+ entry_schema:
+ type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity
+ type_version: 1.0.0
+ description: The connfiguration entities the Automation Composition Element is managing and their associated REST requests
+
+topology_template:
+ inputs:
+ pmsh_operational_policy:
+ type: onap.datatypes.ToscaConceptIdentifier
+ description: The ID of the PMSH operational policy to use
+ default:
+ name: operational.apex.pmcontrol
+ version: 1.0.0
+ node_templates:
+ org.onap.policy.clamp.acm.PolicyParticipant:
+ version: 2.3.1
+ type: org.onap.policy.clamp.acm.Participant
+ type_version: 1.0.1
+ description: Participant for DCAE microservices
+ properties:
+ provider: ONAP
+ org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement
+ type_version: 1.0.1
+ description: Automation composition element for the operational policy for Performance Management Subscription Handling
+ properties:
+ provider: Ericsson
+ participant_id:
+ name: org.onap.PM_Policy
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.PolicyParticipant
+ version: 2.3.1
+ policy_type_id:
+ name: onap.policies.operational.pm-subscription-handler
+ version: 1.0.0
+ policy_id:
+ get_input: pmsh_operational_policy
+
+
+ org.onap.policy.clamp.acm.KubernetesParticipant:
+ version: 2.3.4
+ type: org.onap.policy.clamp.acm.Participant
+ type_version: 1.0.1
+ description: Participant for K8S
+ properties:
+ provider: ONAP
+ org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement:
+ # Chart from new repository
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement
+ type_version: 1.0.1
+ description: Automation composition element for the K8S microservice for PMSH
+ properties:
+ provider: ONAP
+ participant_id:
+ name: K8sParticipant0
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.KubernetesParticipant
+ version: 2.3.4
+ chart:
+ chartId:
+ name: dcae-pmsh
+ version: 10.0.0
+ namespace: onap
+ releaseName: dcae-pmsh
+ repository:
+ repoName: chartmuseum
+ address: http://chart-museum:80
+ userName: onapinitializer
+ password: demo123456!
+ overrideParams:
+ global.masterPassword: test
+ global.centralizedLoggingEnabled: false
+ org.onap.policy.clamp.acm.HttpParticipant:
+ version: 2.3.4
+ type: org.onap.policy.clamp.acm.Participant
+ type_version: 1.0.1
+ description: Participant for Http requests
+ properties:
+ provider: ONAP
+ org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement:
+ # Http config for PMSH.
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
+ type_version: 1.0.1
+ description: Automation composition element for the http requests of PMSH microservice
+ properties:
+ provider: ONAP
+ participant_id:
+ name: HttpParticipant0
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.HttpParticipant
+ version: 2.3.4
+ uninitializedToPassiveTimeout: 180
+ startPhase: 1
+ baseUrl: https://dcae-pmsh:8443
+ httpHeaders:
+ Content-Type: application/json
+ configurationEntities:
+ - configurationEntityId:
+ name: entity1
+ version: 1.0.1
+ restSequence:
+ - restRequestId:
+ name: request1
+ version: 1.0.1
+ httpMethod: POST
+ path: subscription
+ body: '{
+ "subscription":{
+ "subscriptionName":"new_sub_01",
+ "operationalPolicyName":"pmsh-operational-policy",
+ "controlLoopName":"controlLoop-name",
+ "nfFilter":{
+ "nfNames":[
+ "^pnf*"
+ ],
+ "modelInvariantIDs":[
+ "7129e420-d396-4efb-af02-6b83499b12f5"
+ ],
+ "modelVersionIDs":[
+ "e80a6ae3-cafd-4d24-850d-e14c084a5ca7"
+ ],
+ "modelNames":[
+ "pnf_134"
+ ]
+ },
+ "measurementGroups":[
+ {
+ "measurementGroup":{
+ "measurementGroupName":"msgroup_01",
+ "administrativeState":"UNLOCKED",
+ "fileBasedGP":15,
+ "fileLocation":"/pm/pm.xml",
+ "measurementTypes":[
+ {
+ "measurementType":"EutranCell.*"
+ },
+ {
+ "measurementType":"EutranCellRelation.pmCounter1"
+ },
+ {
+ "measurementType":"EutranCellRelation.pmCounter2"
+ }
+ ],
+ "managedObjectDNsBasic":[
+ {
+ "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1"
+ },
+ {
+ "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter2"
+ },
+ {
+ "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }'
+ expectedResponse: 201
+
+
+ org.onap.domain.pmsh.PMSHAutomationCompositionDefinition:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.AutomationComposition
+ type_version: 1.0.1
+ description: Automation composition for PMSH
+ properties:
+ provider: ONAP
+ elements:
+ - name: org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement
+ version: 1.2.3
+ - name: org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement
+ version: 1.2.3
+ - name: org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement
+ version: 1.2.3
+ policies:
+ - operational.apex.pmcontrol:
+ type: onap.policies.controlloop.operational.common.Apex
+ type_version: 1.0.0
+ version: 1.0.0
+ properties:
+ engineServiceParameters:
+ name: MyApexEngine
+ version: 0.0.1
+ id: 45
+ instanceCount: 2
+ deploymentPort: 12561
+ engineParameters:
+ executorParameters:
+ JAVASCRIPT:
+ parameterClassName: org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters
+ contextParameters:
+ parameterClassName: org.onap.policy.apex.context.parameters.ContextParameters
+ schemaParameters:
+ Avro:
+ parameterClassName: org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters
+ Java:
+ parameterClassName: org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters
+ jsonAdapters:
+ Instant:
+ adaptedClass: java.time.Instant
+ adaptorClass: org.onap.policy.common.gson.InstantAsMillisTypeAdapter
+ policy_type_impl:
+ apexPolicyModel:
+ key:
+ name: PMControlPolicy
+ version: 0.0.1
+ keyInformation:
+ key:
+ name: PMControlPolicy_KeyInfo
+ version: 0.0.1
+ keyInfoMap:
+ entry:
+ - key:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ UUID: 6e5fa19b-14df-37e3-a4ae-8c537e861a82
+ description: Generated description for concept referred to by
+ key "CDSActionIdentifiersType:0.0.1"
+ - key:
+ name: CDSCreateResponseEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateResponseEvent
+ version: 0.0.1
+ UUID: 14b29e38-ac75-3273-aa4e-8583c0aa7dad
+ description: Generated description for concept referred to by
+ key "CDSCreateResponseEvent:0.0.1"
+ - key:
+ name: CDSCreateResponsePayloadType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateResponsePayloadType
+ version: 0.0.1
+ UUID: 04573f8f-e772-30a5-b1d9-d7318d4a1e13
+ description: Generated description for concept referred to by
+ key "CDSCreateResponsePayloadType:0.0.1"
+ - key:
+ name: CDSCreateResponsePolicy
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateResponsePolicy
+ version: 0.0.1
+ UUID: e126c965-fc09-3bfe-8f55-70f380a4a49c
+ description: Generated description for concept referred to by
+ key "CDSCreateResponsePolicy:0.0.1"
+ - key:
+ name: CDSCreateResponseTask
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateResponseTask
+ version: 0.0.1
+ UUID: 6165ee82-afd2-3aab-a517-f00b3f2461d2
+ description: Generated description for concept referred to by
+ key "CDSCreateResponseTask:0.0.1"
+ - key:
+ name: CDSCreateSubscriptionPayloadType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateSubscriptionPayloadType
+ version: 0.0.1
+ UUID: 8350ac5e-c157-38b9-9614-a0f93a830e60
+ description: Generated description for concept referred to by
+ key "CDSCreateSubscriptionPayloadType:0.0.1"
+ - key:
+ name: CDSCreateSubscriptionRequestEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateSubscriptionRequestEvent
+ version: 0.0.1
+ UUID: cfa325ba-226b-3a31-9183-ec43e2b6e9a2
+ description: Generated description for concept referred to by
+ key "CDSCreateSubscriptionRequestEvent:0.0.1"
+ - key:
+ name: CDSDeleteResponseEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteResponseEvent
+ version: 0.0.1
+ UUID: 8be9c0fa-7437-3841-aff2-b3cec6ae3bd8
+ description: Generated description for concept referred to by
+ key "CDSDeleteResponseEvent:0.0.1"
+ - key:
+ name: CDSDeleteResponsePayloadType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteResponsePayloadType
+ version: 0.0.1
+ UUID: 3fbfe0c9-152e-34d3-a504-09cd13c058d0
+ description: Generated description for concept referred to by
+ key "CDSDeleteResponsePayloadType:0.0.1"
+ - key:
+ name: CDSDeleteResponsePolicy
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteResponsePolicy
+ version: 0.0.1
+ UUID: a780251c-edd5-3132-b865-04313246b43c
+ description: Generated description for concept referred to by
+ key "CDSDeleteResponsePolicy:0.0.1"
+ - key:
+ name: CDSDeleteResponseTask
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteResponseTask
+ version: 0.0.1
+ UUID: afce4555-3aa3-3521-a7d8-ee8cdf0d3efc
+ description: Generated description for concept referred to by
+ key "CDSDeleteResponseTask:0.0.1"
+ - key:
+ name: CDSDeleteSubscriptionPayloadType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteSubscriptionPayloadType
+ version: 0.0.1
+ UUID: 12658406-9147-3c9d-a38c-5ad5e30b092b
+ description: Generated description for concept referred to by
+ key "CDSDeleteSubscriptionPayloadType:0.0.1"
+ - key:
+ name: CDSDeleteSubscriptionRequestEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteSubscriptionRequestEvent
+ version: 0.0.1
+ UUID: 24380c95-9289-36e6-8cbf-0edefa15ccd9
+ description: Generated description for concept referred to by
+ key "CDSDeleteSubscriptionRequestEvent:0.0.1"
+ - key:
+ name: CDSRequestCommonHeaderType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSRequestCommonHeaderType
+ version: 0.0.1
+ UUID: 35590ac0-062c-39f1-8786-b4ff716e30b1
+ description: Generated description for concept referred to by
+ key "CDSRequestCommonHeaderType:0.0.1"
+ - key:
+ name: CDSResponseCommonHeaderType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSResponseCommonHeaderType
+ version: 0.0.1
+ UUID: dd7e1805-885a-350b-aaf9-ed541321ae3c
+ description: Generated description for concept referred to by
+ key "CDSResponseCommonHeaderType:0.0.1"
+ - key:
+ name: CDSResponseStatusEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSResponseStatusEvent
+ version: 0.0.1
+ UUID: 7986e21b-32f7-302e-9554-31f21b673493
+ description: Generated description for concept referred to by
+ key "CDSResponseStatusEvent:0.0.1"
+ - key:
+ name: CDSResponseStatusType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSResponseStatusType
+ version: 0.0.1
+ UUID: 92b8a2cf-344e-3ce1-8cc0-2b7d3cb695fa
+ description: Generated description for concept referred to by
+ key "CDSResponseStatusType:0.0.1"
+ - key:
+ name: CreateSubscriptionPayloadEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CreateSubscriptionPayloadEvent
+ version: 0.0.1
+ UUID: 92162397-1a8e-3a3f-a469-d2af7700af4a
+ description: Generated description for concept referred to by
+ key "CreateSubscriptionPayloadEvent:0.0.1"
+ - key:
+ name: CreateSubscriptionPayloadTask
+ version: 0.0.1
+ value:
+ key:
+ name: CreateSubscriptionPayloadTask
+ version: 0.0.1
+ UUID: bc0c69f0-52ed-38ea-b468-ae4a6fd1730d
+ description: Generated description for concept referred to by
+ key "CreateSubscriptionPayloadTask:0.0.1"
+ - key:
+ name: CreateSubscriptionRequestTask
+ version: 0.0.1
+ value:
+ key:
+ name: CreateSubscriptionRequestTask
+ version: 0.0.1
+ UUID: 89cb75e9-f06c-30d3-b4ff-698d45f63869
+ description: Generated description for concept referred to by
+ key "CreateSubscriptionRequestTask:0.0.1"
+ - key:
+ name: DeleteSubscriptionPayloadEvent
+ version: 0.0.1
+ value:
+ key:
+ name: DeleteSubscriptionPayloadEvent
+ version: 0.0.1
+ UUID: 994fa441-04ab-33bb-832d-1cd12ab5d074
+ description: Generated description for concept referred to by
+ key "DeleteSubscriptionPayloadEvent:0.0.1"
+ - key:
+ name: DeleteSubscriptionPayloadTask
+ version: 0.0.1
+ value:
+ key:
+ name: DeleteSubscriptionPayloadTask
+ version: 0.0.1
+ UUID: 0f519117-5fea-3e4b-941f-8f778100465f
+ description: Generated description for concept referred to by
+ key "DeleteSubscriptionPayloadTask:0.0.1"
+ - key:
+ name: DeleteSubscriptionRequestTask
+ version: 0.0.1
+ value:
+ key:
+ name: DeleteSubscriptionRequestTask
+ version: 0.0.1
+ UUID: acb772fe-d442-39e3-98f9-b1080caf4150
+ description: Generated description for concept referred to by
+ key "DeleteSubscriptionRequestTask:0.0.1"
+ - key:
+ name: MRResponseEvent
+ version: 0.0.1
+ value:
+ key:
+ name: MRResponseEvent
+ version: 0.0.1
+ UUID: 13c747a3-6bae-3bcf-9c80-b152e01dc194
+ description: Generated description for concept referred to by
+ key "MRResponseEvent:0.0.1"
+ - key:
+ name: PMControlPolicy
+ version: 0.0.1
+ value:
+ key:
+ name: PMControlPolicy
+ version: 0.0.1
+ UUID: acf1e55c-7bc5-3bd5-975a-0ca54afcd8a4
+ description: Generated description for concept referred to by
+ key "PMControlPolicy:0.0.1"
+ - key:
+ name: PMControlPolicy_Albums
+ version: 0.0.1
+ value:
+ key:
+ name: PMControlPolicy_Albums
+ version: 0.0.1
+ UUID: b38ad204-c2c8-32f4-9b5a-dda0aeb0145b
+ description: Generated description for concept referred to by
+ key "PMControlPolicy_Albums:0.0.1"
+ - key:
+ name: PMControlPolicy_Events
+ version: 0.0.1
+ value:
+ key:
+ name: PMControlPolicy_Events
+ version: 0.0.1
+ UUID: be3871a0-c42a-3113-a066-82d192840eca
+ description: Generated description for concept referred to by
+ key "PMControlPolicy_Events:0.0.1"
+ - key:
+ name: PMControlPolicy_KeyInfo
+ version: 0.0.1
+ value:
+ key:
+ name: PMControlPolicy_KeyInfo
+ version: 0.0.1
+ UUID: ced37634-28a4-3178-b7f6-2980794927b0
+ description: Generated description for concept referred to by
+ key "PMControlPolicy_KeyInfo:0.0.1"
+ - key:
+ name: PMControlPolicy_Policies
+ version: 0.0.1
+ value:
+ key:
+ name: PMControlPolicy_Policies
+ version: 0.0.1
+ UUID: be3d180d-ef9c-3a75-8e9c-84271a038bed
+ description: Generated description for concept referred to by
+ key "PMControlPolicy_Policies:0.0.1"
+ - key:
+ name: PMControlPolicy_Schemas
+ version: 0.0.1
+ value:
+ key:
+ name: PMControlPolicy_Schemas
+ version: 0.0.1
+ UUID: e61973f1-189c-39e5-82f6-0d3afe298a20
+ description: Generated description for concept referred to by
+ key "PMControlPolicy_Schemas:0.0.1"
+ - key:
+ name: PMControlPolicy_Tasks
+ version: 0.0.1
+ value:
+ key:
+ name: PMControlPolicy_Tasks
+ version: 0.0.1
+ UUID: 5658adb3-2962-30a3-a241-fae75bb8eb4a
+ description: Generated description for concept referred to by
+ key "PMControlPolicy_Tasks:0.0.1"
+ - key:
+ name: PMSubscriptionAlbum
+ version: 0.0.1
+ value:
+ key:
+ name: PMSubscriptionAlbum
+ version: 0.0.1
+ UUID: c2bd6f0d-6854-317a-9be2-97c08338428c
+ description: Generated description for concept referred to by
+ key "PMSubscriptionAlbum:0.0.1"
+ - key:
+ name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ value:
+ key:
+ name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ UUID: 992b7819-9f69-3aa0-bb0f-6e45ea15ce05
+ description: Generated description for concept referred to by
+ key "PMSubscriptionOutputEvent:0.0.1"
+ - key:
+ name: PMSubscriptionType
+ version: 0.0.1
+ value:
+ key:
+ name: PMSubscriptionType
+ version: 0.0.1
+ UUID: 73c1c397-4fc3-357f-93b6-a8ad707fbaae
+ description: Generated description for concept referred to by
+ key "PMSubscriptionType:0.0.1"
+ - key:
+ name: ReceiveEventPolicy
+ version: 0.0.1
+ value:
+ key:
+ name: ReceiveEventPolicy
+ version: 0.0.1
+ UUID: 568b7345-9de1-36d3-b6a3-9b857e6809a1
+ description: Generated description for concept referred to by
+ key "ReceiveEventPolicy:0.0.1"
+ - key:
+ name: ReceiveSubscriptionTask
+ version: 0.0.1
+ value:
+ key:
+ name: ReceiveSubscriptionTask
+ version: 0.0.1
+ UUID: f596afc8-100c-35eb-92c8-352355ea457d
+ description: Generated description for concept referred to by
+ key "ReceiveSubscriptionTask:0.0.1"
+ - key:
+ name: SimpleIntType
+ version: 0.0.1
+ value:
+ key:
+ name: SimpleIntType
+ version: 0.0.1
+ UUID: 153791fd-ae0a-36a7-88a5-309a7936415d
+ description: Generated description for concept referred to by
+ key "SimpleIntType:0.0.1"
+ - key:
+ name: SimpleStringType
+ version: 0.0.1
+ value:
+ key:
+ name: SimpleStringType
+ version: 0.0.1
+ UUID: 8a4957cf-9493-3a76-8c22-a208e23259af
+ description: Generated description for concept referred to by
+ key "SimpleStringType:0.0.1"
+ - key:
+ name: SubscriptionStatusType
+ version: 0.0.1
+ value:
+ key:
+ name: SubscriptionStatusType
+ version: 0.0.1
+ UUID: 597643b1-9db1-31ce-85d0-e1c63c43b30b
+ description: Generated description for concept referred to by
+ key "SubscriptionStatusType:0.0.1"
+ - key:
+ name: SubscriptionType
+ version: 0.0.1
+ value:
+ key:
+ name: SubscriptionType
+ version: 0.0.1
+ UUID: 184547bb-7d64-3cb2-a273-d7185102c5ce
+ description: Generated description for concept referred to by
+ key "SubscriptionType:0.0.1"
+ - key:
+ name: UUIDType
+ version: 0.0.1
+ value:
+ key:
+ name: UUIDType
+ version: 0.0.1
+ UUID: 6a8cc68e-dfc8-3403-9c6d-071c886b319c
+ description: Generated description for concept referred to by
+ key "UUIDType:0.0.1"
+ - key:
+ name: pmsh-operational-policy
+ version: 0.0.1
+ value:
+ key:
+ name: pmsh-operational-policy
+ version: 0.0.1
+ UUID: fdf2c9ff-6422-3ea6-b6b6-49b12116265d
+ description: Generated description for concept referred to by
+ key "pmsh-operational-policy:0.0.1"
+ policies:
+ key:
+ name: PMControlPolicy_Policies
+ version: 0.0.1
+ policyMap:
+ entry:
+ - key:
+ name: CDSCreateResponsePolicy
+ version: 0.0.1
+ value:
+ policyKey:
+ name: CDSCreateResponsePolicy
+ version: 0.0.1
+ template: Freestyle
+ state:
+ entry:
+ - key: CDSCreateResponseState
+ value:
+ stateKey:
+ parentKeyName: CDSCreateResponsePolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: 'NULL'
+ localName: CDSCreateResponseState
+ trigger:
+ name: CDSCreateResponseEvent
+ version: 0.0.1
+ stateOutputs:
+ entry:
+ - key: ResponseOutput
+ value:
+ key:
+ parentKeyName: CDSCreateResponsePolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CDSCreateResponseState
+ localName: ResponseOutput
+ outgoingEvent:
+ name: CDSResponseStatusEvent
+ version: 0.0.1
+ outgoingEventReference:
+ - name: CDSResponseStatusEvent
+ version: 0.0.1
+ nextState:
+ parentKeyName: 'NULL'
+ parentKeyVersion: 0.0.0
+ parentLocalName: 'NULL'
+ localName: 'NULL'
+ contextAlbumReference: [ ]
+ taskSelectionLogic:
+ key: 'NULL'
+ logicFlavour: UNDEFINED
+ logic: ''
+ stateFinalizerLogicMap:
+ entry: [ ]
+ defaultTask:
+ name: CDSCreateResponseTask
+ version: 0.0.1
+ taskReferences:
+ entry:
+ - key:
+ name: CDSCreateResponseTask
+ version: 0.0.1
+ value:
+ key:
+ parentKeyName: CDSCreateResponsePolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CDSCreateResponseState
+ localName: CDSCreateResponsePolicy
+ outputType: DIRECT
+ output:
+ parentKeyName: CDSCreateResponsePolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CDSCreateResponseState
+ localName: ResponseOutput
+ firstState: CDSCreateResponseState
+ - key:
+ name: CDSDeleteResponsePolicy
+ version: 0.0.1
+ value:
+ policyKey:
+ name: CDSDeleteResponsePolicy
+ version: 0.0.1
+ template: Freestyle
+ state:
+ entry:
+ - key: CDSDeleteResponseState
+ value:
+ stateKey:
+ parentKeyName: CDSDeleteResponsePolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: 'NULL'
+ localName: CDSDeleteResponseState
+ trigger:
+ name: CDSDeleteResponseEvent
+ version: 0.0.1
+ stateOutputs:
+ entry:
+ - key: ResponseOutput
+ value:
+ key:
+ parentKeyName: CDSDeleteResponsePolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CDSDeleteResponseState
+ localName: ResponseOutput
+ outgoingEvent:
+ name: CDSResponseStatusEvent
+ version: 0.0.1
+ outgoingEventReference:
+ - name: CDSResponseStatusEvent
+ version: 0.0.1
+ nextState:
+ parentKeyName: 'NULL'
+ parentKeyVersion: 0.0.0
+ parentLocalName: 'NULL'
+ localName: 'NULL'
+ contextAlbumReference: [ ]
+ taskSelectionLogic:
+ key: 'NULL'
+ logicFlavour: UNDEFINED
+ logic: ''
+ stateFinalizerLogicMap:
+ entry: [ ]
+ defaultTask:
+ name: CDSDeleteResponseTask
+ version: 0.0.1
+ taskReferences:
+ entry:
+ - key:
+ name: CDSDeleteResponseTask
+ version: 0.0.1
+ value:
+ key:
+ parentKeyName: CDSDeleteResponsePolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CDSDeleteResponseState
+ localName: CDSDeleteResponsePolicy
+ outputType: DIRECT
+ output:
+ parentKeyName: CDSDeleteResponsePolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CDSDeleteResponseState
+ localName: ResponseOutput
+ firstState: CDSDeleteResponseState
+ - key:
+ name: ReceiveEventPolicy
+ version: 0.0.1
+ value:
+ policyKey:
+ name: ReceiveEventPolicy
+ version: 0.0.1
+ template: Freestyle
+ state:
+ entry:
+ - key: CreateOrDeleteState
+ value:
+ stateKey:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: 'NULL'
+ localName: CreateOrDeleteState
+ trigger:
+ name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ stateOutputs:
+ entry:
+ - key: CreateSubscriptionPayload
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CreateOrDeleteState
+ localName: CreateSubscriptionPayload
+ outgoingEvent:
+ name: CreateSubscriptionPayloadEvent
+ version: 0.0.1
+ outgoingEventReference:
+ - name: CreateSubscriptionPayloadEvent
+ version: 0.0.1
+ nextState:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: 'NULL'
+ localName: CreateSubscription
+ - key: DeleteSubscriptionPayload
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CreateOrDeleteState
+ localName: DeleteSubscriptionPayload
+ outgoingEvent:
+ name: DeleteSubscriptionPayloadEvent
+ version: 0.0.1
+ outgoingEventReference:
+ - name: DeleteSubscriptionPayloadEvent
+ version: 0.0.1
+ nextState:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: 'NULL'
+ localName: DeleteSubscription
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskSelectionLogic:
+ key: TaskSelectionLogic
+ logicFlavour: JAVASCRIPT
+ logic: |-
+ /*
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Nordix. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+ executor.logger.info(executor.subject.id);
+ var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
+ var changeType = pmSubscriptionInfo.get("changeType").toString()
+ executor.logger.info("Change Type is " + changeType)
+ if ("CREATE".equals(changeType)) {
+ executor.logger.info("Choosing to create a subscription")
+ executor.subject.getTaskKey("CreateSubscriptionPayloadTask").copyTo(executor.selectedTask);
+ }
+ else if ("DELETE".equals(changeType)) {
+ executor.logger.info("Choosing to delete a subscription")
+ executor.subject.getTaskKey("DeleteSubscriptionPayloadTask").copyTo(executor.selectedTask);
+ }
+ returnValue = executor.isTrue;
+ true;
+ stateFinalizerLogicMap:
+ entry: [ ]
+ defaultTask:
+ name: CreateSubscriptionPayloadTask
+ version: 0.0.1
+ taskReferences:
+ entry:
+ - key:
+ name: CreateSubscriptionPayloadTask
+ version: 0.0.1
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CreateOrDeleteState
+ localName: ReceiveEventPolicy
+ outputType: DIRECT
+ output:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CreateOrDeleteState
+ localName: CreateSubscriptionPayload
+ - key:
+ name: DeleteSubscriptionPayloadTask
+ version: 0.0.1
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CreateOrDeleteState
+ localName: ReceiveEventPolicy
+ outputType: DIRECT
+ output:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CreateOrDeleteState
+ localName: DeleteSubscriptionPayload
+ - key: CreateSubscription
+ value:
+ stateKey:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: 'NULL'
+ localName: CreateSubscription
+ trigger:
+ name: CreateSubscriptionPayloadEvent
+ version: 0.0.1
+ stateOutputs:
+ entry:
+ - key: IssueCreateSubscriptionRequestOutput
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CreateSubscription
+ localName: IssueCreateSubscriptionRequestOutput
+ outgoingEvent:
+ name: CDSCreateSubscriptionRequestEvent
+ version: 0.0.1
+ outgoingEventReference:
+ - name: CDSCreateSubscriptionRequestEvent
+ version: 0.0.1
+ nextState:
+ parentKeyName: 'NULL'
+ parentKeyVersion: 0.0.0
+ parentLocalName: 'NULL'
+ localName: 'NULL'
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskSelectionLogic:
+ key: 'NULL'
+ logicFlavour: UNDEFINED
+ logic: ''
+ stateFinalizerLogicMap:
+ entry: [ ]
+ defaultTask:
+ name: CreateSubscriptionRequestTask
+ version: 0.0.1
+ taskReferences:
+ entry:
+ - key:
+ name: CreateSubscriptionRequestTask
+ version: 0.0.1
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CreateSubscription
+ localName: ReceiveEventPolicy
+ outputType: DIRECT
+ output:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: CreateSubscription
+ localName: IssueCreateSubscriptionRequestOutput
+ - key: DeleteSubscription
+ value:
+ stateKey:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: 'NULL'
+ localName: DeleteSubscription
+ trigger:
+ name: DeleteSubscriptionPayloadEvent
+ version: 0.0.1
+ stateOutputs:
+ entry:
+ - key: IssueDeleteSubscriptionRequestOutput
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: DeleteSubscription
+ localName: IssueDeleteSubscriptionRequestOutput
+ outgoingEvent:
+ name: CDSDeleteSubscriptionRequestEvent
+ version: 0.0.1
+ outgoingEventReference:
+ - name: CDSDeleteSubscriptionRequestEvent
+ version: 0.0.1
+ nextState:
+ parentKeyName: 'NULL'
+ parentKeyVersion: 0.0.0
+ parentLocalName: 'NULL'
+ localName: 'NULL'
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskSelectionLogic:
+ key: 'NULL'
+ logicFlavour: UNDEFINED
+ logic: ''
+ stateFinalizerLogicMap:
+ entry: [ ]
+ defaultTask:
+ name: DeleteSubscriptionRequestTask
+ version: 0.0.1
+ taskReferences:
+ entry:
+ - key:
+ name: DeleteSubscriptionRequestTask
+ version: 0.0.1
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: DeleteSubscription
+ localName: ReceiveEventPolicy
+ outputType: DIRECT
+ output:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: DeleteSubscription
+ localName: IssueDeleteSubscriptionRequestOutput
+ - key: ReceiveSubscriptionState
+ value:
+ stateKey:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: 'NULL'
+ localName: ReceiveSubscriptionState
+ trigger:
+ name: pmsh-operational-policy
+ version: 0.0.1
+ stateOutputs:
+ entry:
+ - key: ReceivePMSubscriptionOutput
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: ReceiveSubscriptionState
+ localName: ReceivePMSubscriptionOutput
+ outgoingEvent:
+ name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ outgoingEventReference:
+ - name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ nextState:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: 'NULL'
+ localName: CreateOrDeleteState
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskSelectionLogic:
+ key: 'NULL'
+ logicFlavour: UNDEFINED
+ logic: ''
+ stateFinalizerLogicMap:
+ entry: [ ]
+ defaultTask:
+ name: ReceiveSubscriptionTask
+ version: 0.0.1
+ taskReferences:
+ entry:
+ - key:
+ name: ReceiveSubscriptionTask
+ version: 0.0.1
+ value:
+ key:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: ReceiveSubscriptionState
+ localName: ReceiveEventPolicy
+ outputType: DIRECT
+ output:
+ parentKeyName: ReceiveEventPolicy
+ parentKeyVersion: 0.0.1
+ parentLocalName: ReceiveSubscriptionState
+ localName: ReceivePMSubscriptionOutput
+ firstState: ReceiveSubscriptionState
+ tasks:
+ key:
+ name: PMControlPolicy_Tasks
+ version: 0.0.1
+ taskMap:
+ entry:
+ - key:
+ name: CDSCreateResponseTask
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateResponseTask
+ version: 0.0.1
+ inputEvent:
+ key:
+ name: CDSCreateResponseEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: CDS
+ target: APEX
+ parameter:
+ entry:
+ - key: actionIdentifiers
+ value:
+ key: actionIdentifiers
+ fieldSchemaKey:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ optional: false
+ - key: commonHeader
+ value:
+ key: commonHeader
+ fieldSchemaKey:
+ name: CDSResponseCommonHeaderType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSCreateResponsePayloadType
+ version: 0.0.1
+ optional: false
+ - key: status
+ value:
+ key: status
+ fieldSchemaKey:
+ name: CDSResponseStatusType
+ version: 0.0.1
+ optional: false
+ outputEvents:
+ entry:
+ - key: CDSResponseStatusEvent
+ value:
+ key:
+ name: CDSResponseStatusEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: DCAE
+ parameter:
+ entry:
+ - key: status
+ value:
+ key: status
+ fieldSchemaKey:
+ name: SubscriptionStatusType
+ version: 0.0.1
+ optional: false
+ taskParameters:
+ entry: [ ]
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskLogic:
+ key: TaskLogic
+ logicFlavour: JAVASCRIPT
+ logic: |-
+ /*
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Nordix. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+ executor.logger.info(executor.subject.id);
+ var commonHeader = executor.inFields.get("commonHeader")
+ var response = executor.inFields.get("payload")
+ var albumID = commonHeader.get("requestId")
+ var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString());
+ var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance();
+ var changeType = pmSubscriptionInfo.get("changeType").toUpperCase()
+ responseStatus.put("nfName", pmSubscriptionInfo.get("nfName"))
+ responseStatus.put("changeType", pmSubscriptionInfo.get("changeType"))
+ if ("CREATE".equals(changeType)) {
+ responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
+ responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("subscription").get("measurementGroup").get("measurementGroupName"))
+ }
+ else if ("DELETE".equals(changeType)) {
+ responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName"))
+ responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName"))
+ }
+ var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status")
+ executor.logger.info("RESPONSE STATUS = " + status)
+ if(status == "success") {
+ responseStatus.put("message", "success")
+ } else {
+ responseStatus.put("message", "failed")
+ }
+ executor.outFields.put("status", responseStatus)
+ returnValue = executor.isTrue;
+ true;
+ - key:
+ name: CDSDeleteResponseTask
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteResponseTask
+ version: 0.0.1
+ inputEvent:
+ key:
+ name: CDSDeleteResponseEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: CDS
+ target: APEX
+ parameter:
+ entry:
+ - key: actionIdentifiers
+ value:
+ key: actionIdentifiers
+ fieldSchemaKey:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ optional: false
+ - key: commonHeader
+ value:
+ key: commonHeader
+ fieldSchemaKey:
+ name: CDSResponseCommonHeaderType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSDeleteResponsePayloadType
+ version: 0.0.1
+ optional: false
+ - key: status
+ value:
+ key: status
+ fieldSchemaKey:
+ name: CDSResponseStatusType
+ version: 0.0.1
+ optional: false
+ outputEvents:
+ entry:
+ - key: CDSResponseStatusEvent
+ value:
+ key:
+ name: CDSResponseStatusEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: DCAE
+ parameter:
+ entry:
+ - key: status
+ value:
+ key: status
+ fieldSchemaKey:
+ name: SubscriptionStatusType
+ version: 0.0.1
+ optional: false
+ taskParameters:
+ entry: [ ]
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskLogic:
+ key: TaskLogic
+ logicFlavour: JAVASCRIPT
+ logic: |-
+ /*
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Nordix. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+ executor.logger.info(executor.subject.id);
+ var commonHeader = executor.inFields.get("commonHeader")
+ var response = executor.inFields.get("payload")
+ var albumID = commonHeader.get("requestId")
+ var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString());
+ var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance();
+ var changeType = pmSubscriptionInfo.get("changeType").toUpperCase()
+ responseStatus.put("nfName", pmSubscriptionInfo.get("nfName"))
+ responseStatus.put("changeType", pmSubscriptionInfo.get("changeType"))
+ if ("CREATE".equals(changeType)) {
+ responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
+ responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("subscription").get("measurementGroup").get("measurementGroupName"))
+ }
+ else if ("DELETE".equals(changeType)) {
+ responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName"))
+ responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName"))
+ }
+ var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status")
+ executor.logger.info("RESPONSE STATUS = " + status)
+ if(status == "success") {
+ responseStatus.put("message", "success")
+ } else {
+ responseStatus.put("message", "failed")
+ }
+ executor.outFields.put("status", responseStatus)
+ returnValue = executor.isTrue;
+ true;
+ - key:
+ name: CreateSubscriptionPayloadTask
+ version: 0.0.1
+ value:
+ key:
+ name: CreateSubscriptionPayloadTask
+ version: 0.0.1
+ inputEvent:
+ key:
+ name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ outputEvents:
+ entry:
+ - key: CreateSubscriptionPayloadEvent
+ value:
+ key:
+ name: CreateSubscriptionPayloadEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSCreateSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ taskParameters:
+ entry: [ ]
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskLogic:
+ key: TaskLogic
+ logicFlavour: JAVASCRIPT
+ logic: |-
+ /*
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Nordix. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+ executor.logger.info(executor.subject.id);
+ var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
+ var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
+ var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record");
+ payloadProperties.put("nfName", pmSubscriptionInfo.get("nfName"))
+ payloadProperties.put("ipAddress", pmSubscriptionInfo.get("ipAddress"))
+ if ("create".equals(changeType)) {
+ payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
+ payloadProperties.put("fileBasedGP", pmSubscriptionInfo.get("subscription").get("fileBasedGP").toString())
+ payloadProperties.put("fileLocation", pmSubscriptionInfo.get("subscription").get("fileLocation"))
+ payloadProperties.put("measurementGroup", pmSubscriptionInfo.get("subscription").get("measurementGroup"))
+ }
+ else if ("delete".equals(changeType)) {
+ payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName"))
+ payloadProperties.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName"))
+ }
+ var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry");
+ payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties)
+ var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance();
+ payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry);
+ executor.outFields.put("albumID", executor.inFields.get("albumID"))
+ executor.outFields.put("payload", payload);
+ returnValue = executor.isTrue;
+ true;
+ - key:
+ name: CreateSubscriptionRequestTask
+ version: 0.0.1
+ value:
+ key:
+ name: CreateSubscriptionRequestTask
+ version: 0.0.1
+ inputEvent:
+ key:
+ name: CreateSubscriptionPayloadEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSCreateSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ outputEvents:
+ entry:
+ - key: CDSCreateSubscriptionRequestEvent
+ value:
+ key:
+ name: CDSCreateSubscriptionRequestEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: actionIdentifiers
+ value:
+ key: actionIdentifiers
+ fieldSchemaKey:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ optional: false
+ - key: commonHeader
+ value:
+ key: commonHeader
+ fieldSchemaKey:
+ name: CDSRequestCommonHeaderType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSCreateSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ taskParameters:
+ entry: [ ]
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskLogic:
+ key: TaskLogic
+ logicFlavour: JAVASCRIPT
+ logic: |-
+ /*
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Nordix. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+ executor.logger.info(executor.subject.id);
+ var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
+ executor.logger.info(pmSubscriptionInfo)
+ var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
+ var blueprintName = pmSubscriptionInfo.get("blueprintName").toLowerCase()
+ var blueprintVersion = pmSubscriptionInfo.get("blueprintVersion").toLowerCase()
+ var payload = executor.inFields.get("payload")
+ var actionName = changeType + "-subscription"
+ var commonHeader = executor.subject.getOutFieldSchemaHelper("commonHeader").createNewInstance();
+ commonHeader.put("originatorId", "sdnc");
+ commonHeader.put("requestId", executor.inFields.get("albumID").toString());
+ commonHeader.put("subRequestId", "sub-123456-1000");
+ var actionIdentifiers = executor.subject.getOutFieldSchemaHelper("actionIdentifiers").createNewInstance();
+ actionIdentifiers.put("actionName", actionName);
+ actionIdentifiers.put("blueprintName", blueprintName);
+ actionIdentifiers.put("blueprintVersion", blueprintVersion);
+ actionIdentifiers.put("mode", "sync");
+ executor.outFields.put("commonHeader", commonHeader);
+ executor.outFields.put("actionIdentifiers", actionIdentifiers);
+ executor.outFields.put("payload", payload);
+ returnValue = executor.isTrue;
+ true;
+ - key:
+ name: DeleteSubscriptionPayloadTask
+ version: 0.0.1
+ value:
+ key:
+ name: DeleteSubscriptionPayloadTask
+ version: 0.0.1
+ inputEvent:
+ key:
+ name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ outputEvents:
+ entry:
+ - key: DeleteSubscriptionPayloadEvent
+ value:
+ key:
+ name: DeleteSubscriptionPayloadEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSDeleteSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ taskParameters:
+ entry: [ ]
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskLogic:
+ key: TaskLogic
+ logicFlavour: JAVASCRIPT
+ logic: |-
+ /*
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Nordix. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+ executor.logger.info(executor.subject.id);
+ var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
+ var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
+ var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record");
+ payloadProperties.put("nfName", pmSubscriptionInfo.get("nfName"))
+ payloadProperties.put("ipAddress", pmSubscriptionInfo.get("ipAddress"))
+ if ("create".equals(changeType)) {
+ payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName"))
+ payloadProperties.put("fileBasedGP", pmSubscriptionInfo.get("subscription").get("fileBasedGP").toString())
+ payloadProperties.put("fileLocation", pmSubscriptionInfo.get("subscription").get("fileLocation"))
+ payloadProperties.put("measurementGroup", pmSubscriptionInfo.get("subscription").get("measurementGroup"))
+ }
+ else if ("delete".equals(changeType)) {
+ payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName"))
+ payloadProperties.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName"))
+ }
+ var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry");
+ payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties)
+ var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance();
+ payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry);
+ executor.outFields.put("albumID", executor.inFields.get("albumID"))
+ executor.outFields.put("payload", payload);
+ returnValue = executor.isTrue;
+ true;
+ - key:
+ name: DeleteSubscriptionRequestTask
+ version: 0.0.1
+ value:
+ key:
+ name: DeleteSubscriptionRequestTask
+ version: 0.0.1
+ inputEvent:
+ key:
+ name: DeleteSubscriptionPayloadEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSDeleteSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ outputEvents:
+ entry:
+ - key: CDSDeleteSubscriptionRequestEvent
+ value:
+ key:
+ name: CDSDeleteSubscriptionRequestEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: actionIdentifiers
+ value:
+ key: actionIdentifiers
+ fieldSchemaKey:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ optional: false
+ - key: commonHeader
+ value:
+ key: commonHeader
+ fieldSchemaKey:
+ name: CDSRequestCommonHeaderType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSDeleteSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ taskParameters:
+ entry: [ ]
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskLogic:
+ key: TaskLogic
+ logicFlavour: JAVASCRIPT
+ logic: |-
+ /*
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Nordix. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+ executor.logger.info(executor.subject.id);
+ var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString())
+ executor.logger.info(pmSubscriptionInfo)
+ var changeType = pmSubscriptionInfo.get("changeType").toLowerCase()
+ var blueprintName = pmSubscriptionInfo.get("blueprintName").toLowerCase()
+ var blueprintVersion = pmSubscriptionInfo.get("blueprintVersion").toLowerCase()
+ var payload = executor.inFields.get("payload")
+ var actionName = changeType + "-subscription"
+ var commonHeader = executor.subject.getOutFieldSchemaHelper("commonHeader").createNewInstance();
+ commonHeader.put("originatorId", "sdnc");
+ commonHeader.put("requestId", executor.inFields.get("albumID").toString());
+ commonHeader.put("subRequestId", "sub-123456-1000");
+ var actionIdentifiers = executor.subject.getOutFieldSchemaHelper("actionIdentifiers").createNewInstance();
+ actionIdentifiers.put("actionName", actionName);
+ actionIdentifiers.put("blueprintName", blueprintName);
+ actionIdentifiers.put("blueprintVersion", blueprintVersion);
+ actionIdentifiers.put("mode", "sync");
+ executor.outFields.put("commonHeader", commonHeader);
+ executor.outFields.put("actionIdentifiers", actionIdentifiers);
+ executor.outFields.put("payload", payload);
+ returnValue = executor.isTrue;
+ true;
+ - key:
+ name: ReceiveSubscriptionTask
+ version: 0.0.1
+ value:
+ key:
+ name: ReceiveSubscriptionTask
+ version: 0.0.1
+ inputEvent:
+ key:
+ name: pmsh-operational-policy
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: DCAE
+ target: APEX
+ parameter:
+ entry:
+ - key: blueprintName
+ value:
+ key: blueprintName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: blueprintVersion
+ value:
+ key: blueprintVersion
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: changeType
+ value:
+ key: changeType
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: controlLoopName
+ value:
+ key: controlLoopName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: ipAddress
+ value:
+ key: ipAddress
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: measurementGroupName
+ value:
+ key: measurementGroupName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: true
+ - key: nfName
+ value:
+ key: nfName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: operationalPolicyName
+ value:
+ key: operationalPolicyName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: subscription
+ value:
+ key: subscription
+ fieldSchemaKey:
+ name: SubscriptionType
+ version: 0.0.1
+ optional: true
+ - key: subscriptionName
+ value:
+ key: subscriptionName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: true
+ outputEvents:
+ entry:
+ - key: PMSubscriptionOutputEvent
+ value:
+ key:
+ name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ taskParameters:
+ entry: [ ]
+ contextAlbumReference:
+ - name: PMSubscriptionAlbum
+ version: 0.0.1
+ taskLogic:
+ key: TaskLogic
+ logicFlavour: JAVASCRIPT
+ logic: |-
+ /*
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Nordix. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+ var uuidType = java.util.UUID;
+ executor.logger.info(executor.subject.id);
+ //albumID will be used to fetch info from our album later
+ var albumID = uuidType.randomUUID();
+ var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").getSchemaHelper().createNewInstance();
+ var returnValue = true;
+ if(executor.inFields.get("operationalPolicyName") != null) {
+ executor.logger.info("nfName in receive sub event " + executor.inFields.get("nfName"));
+ var changeType = executor.inFields.get("changeType")
+ var nfName = executor.inFields.get("nfName")
+ var ipAddress = executor.inFields.get("ipAddress")
+ var operationalPolicyName = executor.inFields.get("operationalPolicyName")
+ var controlLoopName = executor.inFields.get("controlLoopName")
+ var subscription = executor.inFields.get("subscription")
+ var blueprintName = executor.inFields.get("blueprintName")
+ var blueprintVersion = executor.inFields.get("blueprintVersion")
+ pmSubscriptionInfo.put("nfName", executor.inFields.get("nfName"));
+ pmSubscriptionInfo.put("ipAddress", executor.inFields.get("ipAddress"));
+ pmSubscriptionInfo.put("changeType", executor.inFields.get("changeType"))
+ pmSubscriptionInfo.put("operationalPolicyName", executor.inFields.get("operationalPolicyName"))
+ pmSubscriptionInfo.put("controlLoopName", executor.inFields.get("controlLoopName"))
+ pmSubscriptionInfo.put("subscription", subscription)
+ pmSubscriptionInfo.put("blueprintName", blueprintName)
+ pmSubscriptionInfo.put("blueprintVersion", blueprintVersion)
+ if ("delete".equals(changeType.toLowerCase())) {
+ pmSubscriptionInfo.put("subscriptionName", executor.inFields.get("subscriptionName"))
+ pmSubscriptionInfo.put("measurementGroupName", executor.inFields.get("measurementGroupName"))
+ }
+ executor.getContextAlbum("PMSubscriptionAlbum").put(albumID.toString(), pmSubscriptionInfo);
+ executor.outFields.put("albumID", albumID)
+ } else {
+ executor.message = "Received invalid event"
+ returnValue = false;
+ }
+ returnValue;
+ events:
+ key:
+ name: PMControlPolicy_Events
+ version: 0.0.1
+ eventMap:
+ entry:
+ - key:
+ name: CDSCreateResponseEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateResponseEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: CDS
+ target: APEX
+ parameter:
+ entry:
+ - key: actionIdentifiers
+ value:
+ key: actionIdentifiers
+ fieldSchemaKey:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ optional: false
+ - key: commonHeader
+ value:
+ key: commonHeader
+ fieldSchemaKey:
+ name: CDSResponseCommonHeaderType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSCreateResponsePayloadType
+ version: 0.0.1
+ optional: false
+ - key: status
+ value:
+ key: status
+ fieldSchemaKey:
+ name: CDSResponseStatusType
+ version: 0.0.1
+ optional: false
+ - key:
+ name: CDSCreateSubscriptionRequestEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateSubscriptionRequestEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: actionIdentifiers
+ value:
+ key: actionIdentifiers
+ fieldSchemaKey:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ optional: false
+ - key: commonHeader
+ value:
+ key: commonHeader
+ fieldSchemaKey:
+ name: CDSRequestCommonHeaderType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSCreateSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ - key:
+ name: CDSDeleteResponseEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteResponseEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: CDS
+ target: APEX
+ parameter:
+ entry:
+ - key: actionIdentifiers
+ value:
+ key: actionIdentifiers
+ fieldSchemaKey:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ optional: false
+ - key: commonHeader
+ value:
+ key: commonHeader
+ fieldSchemaKey:
+ name: CDSResponseCommonHeaderType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSDeleteResponsePayloadType
+ version: 0.0.1
+ optional: false
+ - key: status
+ value:
+ key: status
+ fieldSchemaKey:
+ name: CDSResponseStatusType
+ version: 0.0.1
+ optional: false
+ - key:
+ name: CDSDeleteSubscriptionRequestEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteSubscriptionRequestEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: actionIdentifiers
+ value:
+ key: actionIdentifiers
+ fieldSchemaKey:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ optional: false
+ - key: commonHeader
+ value:
+ key: commonHeader
+ fieldSchemaKey:
+ name: CDSRequestCommonHeaderType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSDeleteSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ - key:
+ name: CDSResponseStatusEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CDSResponseStatusEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: DCAE
+ parameter:
+ entry:
+ - key: status
+ value:
+ key: status
+ fieldSchemaKey:
+ name: SubscriptionStatusType
+ version: 0.0.1
+ optional: false
+ - key:
+ name: CreateSubscriptionPayloadEvent
+ version: 0.0.1
+ value:
+ key:
+ name: CreateSubscriptionPayloadEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSCreateSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ - key:
+ name: DeleteSubscriptionPayloadEvent
+ version: 0.0.1
+ value:
+ key:
+ name: DeleteSubscriptionPayloadEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ - key: payload
+ value:
+ key: payload
+ fieldSchemaKey:
+ name: CDSDeleteSubscriptionPayloadType
+ version: 0.0.1
+ optional: false
+ - key:
+ name: MRResponseEvent
+ version: 0.0.1
+ value:
+ key:
+ name: MRResponseEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: DCAE
+ target: APEX
+ parameter:
+ entry:
+ - key: count
+ value:
+ key: count
+ fieldSchemaKey:
+ name: SimpleIntType
+ version: 0.0.1
+ optional: false
+ - key: serverTimeMs
+ value:
+ key: serverTimeMs
+ fieldSchemaKey:
+ name: SimpleIntType
+ version: 0.0.1
+ optional: false
+ - key:
+ name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ value:
+ key:
+ name: PMSubscriptionOutputEvent
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: APEX
+ target: APEX
+ parameter:
+ entry:
+ - key: albumID
+ value:
+ key: albumID
+ fieldSchemaKey:
+ name: UUIDType
+ version: 0.0.1
+ optional: false
+ - key:
+ name: pmsh-operational-policy
+ version: 0.0.1
+ value:
+ key:
+ name: pmsh-operational-policy
+ version: 0.0.1
+ nameSpace: org.onap.policy.apex.onap.pmcontrol
+ source: DCAE
+ target: APEX
+ parameter:
+ entry:
+ - key: blueprintName
+ value:
+ key: blueprintName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: blueprintVersion
+ value:
+ key: blueprintVersion
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: changeType
+ value:
+ key: changeType
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: controlLoopName
+ value:
+ key: controlLoopName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: ipAddress
+ value:
+ key: ipAddress
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: measurementGroupName
+ value:
+ key: measurementGroupName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: true
+ - key: nfName
+ value:
+ key: nfName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: operationalPolicyName
+ value:
+ key: operationalPolicyName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: false
+ - key: subscription
+ value:
+ key: subscription
+ fieldSchemaKey:
+ name: SubscriptionType
+ version: 0.0.1
+ optional: true
+ - key: subscriptionName
+ value:
+ key: subscriptionName
+ fieldSchemaKey:
+ name: SimpleStringType
+ version: 0.0.1
+ optional: true
+ albums:
+ key:
+ name: PMControlPolicy_Albums
+ version: 0.0.1
+ albums:
+ entry:
+ - key:
+ name: PMSubscriptionAlbum
+ version: 0.0.1
+ value:
+ key:
+ name: PMSubscriptionAlbum
+ version: 0.0.1
+ scope: policy
+ isWritable: true
+ itemSchema:
+ name: PMSubscriptionType
+ version: 0.0.1
+ schemas:
+ key:
+ name: PMControlPolicy_Schemas
+ version: 0.0.1
+ schemas:
+ entry:
+ - key:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSActionIdentifiersType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "type": "record",
+ "name": "ActionIdentifiers_Type",
+ "namespace": "org.onap.policy.apex.onap.helloworld",
+ "fields": [
+ {
+ "name": "actionName",
+ "type": "string"
+ },
+ {
+ "name": "blueprintName",
+ "type": "string"
+ },
+ {
+ "name": "blueprintVersion",
+ "type": "string"
+ },
+ {
+ "name": "mode",
+ "type": "string"
+ }
+ ]
+ }
+ - key:
+ name: CDSCreateResponsePayloadType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateResponsePayloadType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "name": "CreateResponsePayloadEntry",
+ "type": "record",
+ "namespace": "com.acme.avro",
+ "fields": [
+ {
+ "name": "create_DasH_subscription_DasH_response",
+ "type": {
+ "name": "create_DasH_subscription_DasH_response",
+ "type": "record",
+ "fields": [
+ {
+ "name": "odl_DasH_response",
+ "type": {
+ "name": "odl_DasH_response",
+ "type": "record",
+ "fields": [
+ {
+ "name": "status",
+ "type": "string"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ - key:
+ name: CDSCreateSubscriptionPayloadType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSCreateSubscriptionPayloadType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "type":"map",
+ "values":{
+ "type":"record",
+ "name":"CDSRequestPayloadEntry",
+ "fields":[
+ {
+ "name":"create_DasH_subscription_DasH_properties",
+ "type":{
+ "name":"create_DasH_subscription_DasH_properties_record",
+ "type":"record",
+ "fields":[
+ {
+ "name":"nfName",
+ "type":"string"
+ },
+ {
+ "name":"ipAddress",
+ "type":"string"
+ },
+ {
+ "name":"subscriptionName",
+ "type":"string"
+ },
+ {
+ "name":"fileBasedGP",
+ "type":"string"
+ },
+ {
+ "name":"fileLocation",
+ "type":"string"
+ },
+ {
+ "name":"measurementGroup",
+ "type":{
+ "name":"Measurement_Group_Type",
+ "type":"record",
+ "fields":[
+ {
+ "name":"measurementGroupName",
+ "type":"string"
+ },
+ {
+ "name":"measurementTypes",
+ "type":{
+ "type":"array",
+ "items":{
+ "name":"Measurement_Types_Type",
+ "type":"record",
+ "fields":[
+ {
+ "name":"measurementType",
+ "type":"string"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name":"managedObjectDNsBasic",
+ "type":{
+ "type":"array",
+ "items":{
+ "name":"Managed_Object_Dns_Basic_Type",
+ "type":"record",
+ "fields":[
+ {
+ "name":"DN",
+ "type":"string"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ - key:
+ name: CDSDeleteResponsePayloadType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteResponsePayloadType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "name": "DeleteResponsePayloadEntry",
+ "type": "record",
+ "namespace": "com.acme.avro",
+ "fields": [
+ {
+ "name": "delete_DasH_subscription_DasH_response",
+ "type": {
+ "name": "delete_DasH_subscription_DasH_response",
+ "type": "record",
+ "fields": [
+ {
+ "name": "odl_DasH_response",
+ "type": {
+ "name": "odl_DasH_response",
+ "type": "record",
+ "fields": [
+ {
+ "name": "status",
+ "type": "string"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ - key:
+ name: CDSDeleteSubscriptionPayloadType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSDeleteSubscriptionPayloadType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "type":"map",
+ "values":{
+ "type":"record",
+ "name":"CDSRequestPayloadEntry",
+ "fields":[
+ {
+ "name":"delete_DasH_subscription_DasH_properties",
+ "type":{
+ "name":"delete_DasH_subscription_DasH_properties_record",
+ "type":"record",
+ "fields":[
+ {
+ "name":"nfName",
+ "type":"string"
+ },
+ {
+ "name":"ipAddress",
+ "type":"string"
+ },
+ {
+ "name":"subscriptionName",
+ "type":"string"
+ },
+ {
+ "name":"measurementGroupName",
+ "type":"string"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ - key:
+ name: CDSRequestCommonHeaderType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSRequestCommonHeaderType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "type": "record",
+ "name": "RequestCommonHeader_Type",
+ "namespace": "org.onap.policy.apex.onap.helloworld",
+ "fields": [
+ {
+ "name": "originatorId",
+ "type": "string"
+ },
+ {
+ "name": "requestId",
+ "type": "string"
+ },
+ {
+ "name": "subRequestId",
+ "type": "string"
+ }
+ ]
+ }
+ - key:
+ name: CDSResponseCommonHeaderType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSResponseCommonHeaderType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "type": "record",
+ "name": "ResponseCommonHeader_Type",
+ "namespace": "org.onap.policy.apex.onap.helloworld",
+ "fields": [
+ {
+ "name": "originatorId",
+ "type": "string"
+ },
+ {
+ "name": "requestId",
+ "type": "string"
+ },
+ {
+ "name": "subRequestId",
+ "type": "string"
+ },
+ {
+ "name": "timestamp",
+ "type": "string"
+ },
+ {
+ "name": "flags",
+ "type": ["null", "string"]
+ }
+ ]
+ }
+ - key:
+ name: CDSResponseStatusType
+ version: 0.0.1
+ value:
+ key:
+ name: CDSResponseStatusType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "type": "record",
+ "name": "ResponseStatus_Type",
+ "namespace": "org.onap.policy.apex.onap.helloworld",
+ "fields": [
+ {
+ "name": "code",
+ "type": "int"
+ },
+ {
+ "name": "eventType",
+ "type": "string"
+ },
+ {
+ "name": "timestamp",
+ "type": "string"
+ },
+ {
+ "name": "message",
+ "type": "string"
+ }
+ ]
+ }
+ - key:
+ name: PMSubscriptionType
+ version: 0.0.1
+ value:
+ key:
+ name: PMSubscriptionType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "name": "PMSubscription",
+ "type": "record",
+ "namespace": "org.onap.policy.apex.onap.pmcontrol",
+ "fields": [
+ {
+ "name": "nfName",
+ "type": "string"
+ },
+ {
+ "name": "ipAddress",
+ "type": "string"
+ },
+ {
+ "name": "changeType",
+ "type": "string"
+ },
+ {
+ "name": "controlLoopName",
+ "type": "string"
+ },
+ {
+ "name": "operationalPolicyName",
+ "type": "string"
+ },
+ {
+ "name": "blueprintName",
+ "type": "string"
+ },
+ {
+ "name": "blueprintVersion",
+ "type": "string"
+ },
+ {
+ "name": "subscriptionName",
+ "type": "string"
+ },
+ {
+ "name": "measurementGroupName",
+ "type": "string"
+ },
+ {
+ "name": "subscription",
+ "type": {
+ "name": "subscription",
+ "type": "record",
+ "fields": [
+ {
+ "name": "subscriptionName",
+ "type": "string"
+ },
+ {
+ "name": "fileBasedGP",
+ "type": "int"
+ },
+ {
+ "name": "fileLocation",
+ "type": "string"
+ },
+ {
+ "name": "measurementGroup",
+ "type": {
+ "name": "Measurement_Group_Type",
+ "type": "record",
+ "fields": [
+ {
+ "name": "measurementGroupName",
+ "type": "string"
+ },
+ {
+ "name": "measurementTypes",
+ "type": {
+ "type": "array",
+ "items": {
+ "name": "Measurement_Types_Type",
+ "type": "record",
+ "fields": [
+ {
+ "name": "measurementType",
+ "type": "string"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "managedObjectDNsBasic",
+ "type": {
+ "type": "array",
+ "items": {
+ "name": "Managed_Object_Dns_Basic_Type",
+ "type": "record",
+ "fields": [
+ {
+ "name": "DN",
+ "type": "string"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ - key:
+ name: SimpleIntType
+ version: 0.0.1
+ value:
+ key:
+ name: SimpleIntType
+ version: 0.0.1
+ schemaFlavour: Java
+ schemaDefinition: java.lang.Integer
+ - key:
+ name: SimpleStringType
+ version: 0.0.1
+ value:
+ key:
+ name: SimpleStringType
+ version: 0.0.1
+ schemaFlavour: Java
+ schemaDefinition: java.lang.String
+ - key:
+ name: SubscriptionStatusType
+ version: 0.0.1
+ value:
+ key:
+ name: SubscriptionStatusType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "type": "record",
+ "name": "ActivateSubscriptionStatus_Type",
+ "namespace": "org.onap.policy.apex.onap.helloworld",
+ "fields": [
+ {
+ "name": "subscriptionName",
+ "type": "string"
+ },
+ {
+ "name": "measurementGroupName",
+ "type": "string"
+ },
+ {
+ "name": "nfName",
+ "type": "string"
+ },
+ {
+ "name": "changeType",
+ "type": "string"
+ },
+ {
+ "name": "message",
+ "type": "string"
+ }
+ ]
+ }
+ - key:
+ name: SubscriptionType
+ version: 0.0.1
+ value:
+ key:
+ name: SubscriptionType
+ version: 0.0.1
+ schemaFlavour: Avro
+ schemaDefinition: |-
+ {
+ "name": "subscription",
+ "type": "record",
+ "default": "null",
+ "fields": [
+ {
+ "name": "subscriptionName",
+ "type": "string"
+ },
+ {
+ "name": "fileBasedGP",
+ "type": "int"
+ },
+ {
+ "name": "fileLocation",
+ "type": "string"
+ },
+ {
+ "name": "measurementGroup",
+ "type": {
+ "name": "Measurement_Group_Type",
+ "type": "record",
+ "fields": [
+ {
+ "name": "measurementGroupName",
+ "type": "string"
+ },
+ {
+ "name": "measurementTypes",
+ "type": {
+ "type": "array",
+ "items": {
+ "name": "Measurement_Types_Type",
+ "type": "record",
+ "fields": [
+ {
+ "name": "measurementType",
+ "type": "string"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "managedObjectDNsBasic",
+ "type": {
+ "type": "array",
+ "items": {
+ "name": "Managed_Object_Dns_Basic_Type",
+ "type": "record",
+ "fields": [
+ {
+ "name": "DN",
+ "type": "string"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ - key:
+ name: UUIDType
+ version: 0.0.1
+ value:
+ key:
+ name: UUIDType
+ version: 0.0.1
+ schemaFlavour: Java
+ schemaDefinition: java.util.UUID
+ eventInputParameters:
+ DCAEConsumer:
+ carrierTechnologyParameters:
+ carrierTechnology: RESTCLIENT
+ parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
+ parameters:
+ consumerPollTime: '50'
+ url: https://message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT/cg1/sg1
+ eventProtocolParameters:
+ eventProtocol: JSON
+ parameters:
+ nameAlias: operationalPolicyName
+ eventName: pmsh-operational-policy
+ eventNameFilter: pmsh-operational-policy
+ CDSRequestConsumer:
+ carrierTechnologyParameters:
+ carrierTechnology: RESTREQUESTOR
+ parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
+ parameters:
+ url: http://cds-blueprints-processor-http:8080/api/v1/execution-service/process
+ httpMethod: POST
+ restRequestTimeout: 2000
+ httpHeaders:
+ - - Authorization
+ - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==
+ eventProtocolParameters:
+ eventProtocol: JSON
+ eventName: CDSCreateResponseEvent
+ eventNameFilter: CDSCreateResponseEvent
+ requestorMode: true
+ requestorPeer: CDSRequestProducer
+ requestorTimeout: 500
+ CDSDeleteRequestConsumer:
+ carrierTechnologyParameters:
+ carrierTechnology: RESTREQUESTOR
+ parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
+ parameters:
+ url: http://cds-blueprints-processor-http:8080/api/v1/execution-service/process
+ httpMethod: POST
+ restRequestTimeout: 2000
+ httpHeaders:
+ - - Authorization
+ - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==
+ eventProtocolParameters:
+ eventProtocol: JSON
+ eventName: CDSDeleteResponseEvent
+ eventNameFilter: CDSDeleteResponseEvent
+ requestorMode: true
+ requestorPeer: CDSDeleteRequestProducer
+ requestorTimeout: 500
+ eventOutputParameters:
+ logOutputter:
+ carrierTechnologyParameters:
+ carrierTechnology: FILE
+ parameters:
+ standardIo: true
+ eventProtocolParameters:
+ eventProtocol: JSON
+ StdOutOutputter:
+ carrierTechnologyParameters:
+ carrierTechnology: FILE
+ parameters:
+ standardIo: true
+ eventProtocolParameters:
+ eventProtocol: JSON
+ CDSRequestProducer:
+ carrierTechnologyParameters:
+ carrierTechnology: RESTREQUESTOR
+ parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
+ eventProtocolParameters:
+ eventProtocol: JSON
+ eventNameFilter: CDSCreateSubscriptionRequestEvent
+ requestorMode: true
+ requestorPeer: CDSRequestConsumer
+ requestorTimeout: 500
+ CDSDeleteRequestProducer:
+ carrierTechnologyParameters:
+ carrierTechnology: RESTREQUESTOR
+ parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
+ eventProtocolParameters:
+ eventProtocol: JSON
+ eventNameFilter: CDSDeleteSubscriptionRequestEvent
+ requestorMode: true
+ requestorPeer: CDSDeleteRequestConsumer
+ requestorTimeout: 500
+ CDSReplyProducer:
+ carrierTechnologyParameters:
+ carrierTechnology: RESTCLIENT
+ parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
+ parameters:
+ url: https://message-router:3905/events/unauthenticated.PMSH_CL_INPUT
+ httpMethod: POST
+ restRequestTimeout: 2000
+ eventProtocolParameters:
+ eventProtocol: JSON
+ eventNameFilter: CDSResponseStatusEvent
diff --git a/csit/resources/tests/data/http-usecase.yaml b/csit/resources/tests/data/http-usecase.yaml
new file mode 100644
index 00000000..cea74ab4
--- /dev/null
+++ b/csit/resources/tests/data/http-usecase.yaml
@@ -0,0 +1,312 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 2022 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+tosca_definitions_version: tosca_simple_yaml_1_3
+data_types:
+ onap.datatypes.ToscaConceptIdentifier:
+ derived_from: tosca.datatypes.Root
+ properties:
+ name:
+ type: string
+ required: true
+ version:
+ type: string
+ required: true
+
+ org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest:
+ version: 1.0.0
+ derived_from: tosca.datatypes.Root
+ properties:
+ restRequestId:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ description: The name and version of a REST request to be sent to a REST endpoint
+ httpMethod:
+ type: string
+ required: true
+ constraints:
+ - valid_values:
+ - POST
+ - PUT
+ - GET
+ - DELETE
+ description: The REST method to use
+ path:
+ type: string
+ required: true
+ description: The path of the REST request relative to the base URL
+ body:
+ type: string
+ required: false
+ description: The body of the REST request for PUT and POST requests
+ expectedResponse:
+ type: integer
+ required: true
+ constraints: []
+ description: THe expected HTTP status code for the REST request
+ org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity:
+ version: 1.0.0
+ derived_from: tosca.datatypes.Root
+ properties:
+ configurationEntityId:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ description: The name and version of a Configuration Entity to be handled
+ by the HTTP Automation Composition Element
+ restSequence:
+ type: list
+ entry_schema:
+ type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest
+ type_version: 1.0.0
+ description: A sequence of REST commands to send to the REST endpoint
+
+node_types:
+ org.onap.policy.clamp.acm.Participant:
+ version: 1.0.1
+ derived_from: tosca.nodetypes.Root
+ properties:
+ provider:
+ type: string
+ required: false
+ org.onap.policy.clamp.acm.AutomationCompositionElement:
+ version: 1.0.1
+ derived_from: tosca.nodetypes.Root
+ properties:
+ provider:
+ type: string
+ required: false
+ metadata:
+ common: true
+ description: Specifies the organization that provides the automation composition element
+ participant_id:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ metadata:
+ common: true
+ participantType:
+ type: onap.datatypes.ToscaConceptIdentifier
+ required: true
+ metadata:
+ common: true
+ description: The identity of the participant type that hosts this type of Automation Composition Element
+ startPhase:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ metadata:
+ common: true
+ description: A value indicating the start phase in which this automation composition element will be started, the
+ first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped
+ in reverse start phase order. Automation Composition Elements with the same start phase are started and
+ stopped simultaneously
+ uninitializedToPassiveTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: The maximum time in seconds to wait for a state chage from uninitialized to passive
+ passiveToRunningTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: The maximum time in seconds to wait for a state chage from passive to running
+ runningToPassiveTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: The maximum time in seconds to wait for a state chage from running to passive
+ passiveToUninitializedTimeout:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 60
+ metadata:
+ common: true
+ description: The maximum time in seconds to wait for a state chage from passive to uninitialized
+ org.onap.policy.clamp.acm.AutomationComposition:
+ version: 1.0.1
+ derived_from: tosca.nodetypes.Root
+ properties:
+ provider:
+ type: string
+ required: false
+ metadata:
+ common: true
+ description: Specifies the organization that provides the automation composition element
+ elements:
+ type: list
+ required: true
+ metadata:
+ common: true
+ entry_schema:
+ type: onap.datatypes.ToscaConceptIdentifier
+ description: Specifies a list of automation composition element definitions that make up this automation composition definition
+ org.onap.policy.clamp.acm.HttpAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ baseUrl:
+ type: string
+ required: true
+ description: The base URL to be prepended to each path, identifies the host for the REST endpoints.
+ httpHeaders:
+ type: map
+ required: false
+ entry_schema:
+ type: string
+ description: HTTP headers to send on REST requests
+ configurationEntities:
+ type: map
+ required: true
+ entry_schema:
+ type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity
+ type_version: 1.0.0
+ description: The connfiguration entities the Automation Composition Element is managing and their associated REST requests
+
+topology_template:
+ node_templates:
+ org.onap.policy.clamp.acm.HttpParticipant:
+ version: 2.3.4
+ type: org.onap.policy.clamp.acm.Participant
+ type_version: 1.0.1
+ description: Participant for Http requests
+ properties:
+ provider: ONAP
+ onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement:
+ # Http config for AC Element Starter.
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
+ type_version: 1.0.1
+ description: Automation composition element for the http requests of AC Element Starter microservice
+ properties:
+ provider: ONAP
+ participant_id:
+ name: HttpParticipant0
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.HttpParticipant
+ version: 2.3.4
+ uninitializedToPassiveTimeout: 180
+ startPhase: 0
+ baseUrl: http://acelement-starter:8084
+ httpHeaders:
+ Content-Type: application/json
+ Authorization: 'Basic cnVudGltZVVzZXI6emIhWHp0RzM0'
+ configurationEntities:
+ - configurationEntityId:
+ name: onap.policy.clamp.ac.starter
+ version: 1.0.0
+ restSequence:
+ - restRequestId:
+ name: request1
+ version: 1.0.1
+ httpMethod: POST
+ path: /activate
+ body: '{ "receiverId": { "name": "onap.policy.clamp.ac.bridge", "version": "1.0.0" }, "timerMs": 4000, "elementType": "STARTER", "topicParameterGroup": { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": "POLICY_UPDATE_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" } }'
+ expectedResponse: 201
+ onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement:
+ # Http config for AC Element Bridge.
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
+ type_version: 1.0.1
+ description: Automation composition element for the http requests of AC Element Bridge microservice
+ properties:
+ provider: ONAP
+ participant_id:
+ name: HttpParticipant0
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.HttpParticipant
+ version: 2.3.4
+ uninitializedToPassiveTimeout: 180
+ startPhase: 0
+ baseUrl: http://acelement-bridge:8084
+ httpHeaders:
+ Content-Type: application/json
+ Authorization: 'Basic cnVudGltZVVzZXI6emIhWHp0RzM0'
+ configurationEntities:
+ - configurationEntityId:
+ name: onap.policy.clamp.ac.bridge
+ version: 1.0.0
+ restSequence:
+ - restRequestId:
+ name: request2
+ version: 1.0.1
+ httpMethod: POST
+ path: /activate
+ body: '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": "1.0.0" }, "timerMs": 4000, "elementType": "BRIDGE", "topicParameterGroup": { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": "POLICY_UPDATE_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" } }'
+ expectedResponse: 201
+ onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement:
+ # Http config for AC Element Sink.
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
+ type_version: 1.0.1
+ description: Automation composition element for the http requests of AC Element Sink microservice
+ properties:
+ provider: ONAP
+ participant_id:
+ name: HttpParticipant0
+ version: 1.0.0
+ participantType:
+ name: org.onap.policy.clamp.acm.HttpParticipant
+ version: 2.3.4
+ uninitializedToPassiveTimeout: 180
+ startPhase: 0
+ baseUrl: http://acelement-sink:8084
+ httpHeaders:
+ Content-Type: application/json
+ Authorization: 'Basic cnVudGltZVVzZXI6emIhWHp0RzM0'
+ configurationEntities:
+ - configurationEntityId:
+ name: onap.policy.clamp.ac.sink
+ version: 1.0.0
+ restSequence:
+ - restRequestId:
+ name: request3
+ version: 1.0.1
+ httpMethod: POST
+ path: /activate
+ body: '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": "1.0.0" }, "timerMs": 4000, "elementType": "SINK", "topicParameterGroup": { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": "POLICY_UPDATE_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" } }'
+ expectedResponse: 201
+
+ onap.policy.clamp.ac.element.AutomationCompositionDefinition:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.AutomationComposition
+ type_version: 1.0.1
+ description: Automation composition for Demp
+ properties:
+ provider: ONAP
+ elements:
+ - name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement
+ version: 1.2.3
+ - name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement
+ version: 1.2.3
+ - name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement
+ version: 1.2.3
diff --git a/csit/resources/tests/data/make_topic.sh b/csit/resources/tests/data/make_topic.sh
new file mode 100755
index 00000000..c8af564e
--- /dev/null
+++ b/csit/resources/tests/data/make_topic.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+#
+# ===========LICENSE_START====================================================
+# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
+# Modifications Copyright (C) 2022-2023 Nordix Foundation.
+# ============================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=====================================================
+#
+
+#
+# Creates a topic, which happens as a side-effect of polling it.
+#
+
+if [ $# -ne 1 ]
+then
+ echo "arg(s): topic-name" >&2
+ exit 1
+fi
+
+topic="${1}"
+
+curl -s -k "http://${DMAAP_IP}/events/${topic}/script/1?limit=1&timeout=0"
+echo
diff --git a/csit/resources/tests/data/onap.pnf.metadataSet.Test.json b/csit/resources/tests/data/onap.pnf.metadataSet.Test.json
new file mode 100644
index 00000000..b59efc0a
--- /dev/null
+++ b/csit/resources/tests/data/onap.pnf.metadataSet.Test.json
@@ -0,0 +1,2755 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "node_types": {
+ "org.onap.nodetypes.policy.MetadataSet": {
+ "derived_from": "tosca.nodetypes.Root",
+ "version": "1.0.0"
+ }
+ },
+
+ "topology_template": {
+ "node_templates": {
+ "apex.metadata.pnf": {
+ "version": "1.0.0",
+ "type": "org.onap.nodetypes.policy.MetadataSet",
+ "type_version": "1.0.0",
+ "description": "Metadata set for apex pnf Policy",
+ "metadata": {
+ "apexPolicyModel": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2",
+ "version": "0.0.1"
+ },
+ "keyInformation": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_KeyInfo",
+ "version": "0.0.1"
+ },
+ "keyInfoMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "UUID": "7218fb2f-59e3-321d-9ae1-bc97b19eb4ae",
+ "description": "Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "c8a29e27-0a15-354a-84f9-4c7f207e5c81",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "UUID": "5e843cee-0180-39b9-8989-180b2ffe11c0",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "UUID": "90291c92-9b27-3cd9-8720-db572419c048",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "7b7e6751-4e0b-389d-98c0-5567bbc0294c",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "63d5680c-14ef-3505-8d34-ebb646bba07b",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "UUID": "a84ca97d-6e94-39a2-91f9-59a6c9aa435e",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "UUID": "0e2ee622-7fd3-3e49-82e2-539c4f5e9624",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "e84f8682-ea33-3ad0-8626-8bc4634581fc",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "UUID": "a252f835-2479-38ef-9ef4-20af62725752",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "UUID": "cfc46ea9-b8c1-38dd-ac9c-304c916daf34",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "1e7095d6-a455-3f89-acae-486e35d7e311",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "UUID": "d22ea83b-695d-3da9-b9f5-41f16ca433bf",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "UUID": "e9fe2e40-1f0d-30dd-8b9e-885695878693",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "5e04fa76-0a17-38a9-8524-23b2d1a23fa5",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "UUID": "15866380-40f5-3f8e-87d9-13747a36d352",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "UUID": "2c3d76ce-dd42-32ac-a397-ab418534e1cf",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "UUID": "b99c44da-dae7-3c96-b528-58852537d063",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "UUID": "1db688e2-3afe-3b03-9795-fdbfa80fa240",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "UUID": "31022456-e85b-3a9b-9ecb-a09691792d3e",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "UUID": "d6075720-622e-3a0d-827a-aa4580a2f5d7",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "UUID": "948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "UUID": "63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644",
+ "description": "Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "UUID": "a0407d0b-5719-38bf-9529-25ad62ace8c4",
+ "description": "Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "UUID": "28e894dc-4ab8-3469-aab7-d81bd05bb4c9",
+ "description": "Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "UUID": "073f1433-999e-3506-98ad-ef820d2fa7f0",
+ "description": "Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask2",
+ "version": "0.0.1"
+ },
+ "UUID": "afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74",
+ "description": "Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "317be184-a01a-3e2d-9ae4-cafaa405de70",
+ "description": "Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "UUID": "be7fc79b-9b73-381a-8e23-9dd6e6b1233d",
+ "description": "Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "UUID": "1a082851-49e3-3f4c-b023-c05236cc8389",
+ "description": "Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "UUID": "cab6cd51-ea7b-3241-a173-ea8a24e29737",
+ "description": "Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "0f57665a-f0a9-314e-ad0a-04c1f5758174",
+ "description": "Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEventHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEventHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "UUID": "ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b",
+ "description": "Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "UUID": "9fd7a967-57d4-36ef-81e9-c3396f3aa8d1",
+ "description": "Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "UUID": "2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574",
+ "description": "Generated description for concept referred to by key \"SimpleLongType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "UUID": "8a4957cf-9493-3a76-8c22-a208e23259af",
+ "description": "Generated description for concept referred to by key \"SimpleStringType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2",
+ "version": "0.0.1"
+ },
+ "UUID": "ecc97b87-f30b-344c-a476-d36501bf5cbd",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Albums",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Albums",
+ "version": "0.0.1"
+ },
+ "UUID": "1469671a-56dd-3a68-bf6c-77a5cf7a9487",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Albums:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Events",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Events",
+ "version": "0.0.1"
+ },
+ "UUID": "23c4eee4-aba5-36f6-96d6-46f40061bfed",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Events:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_KeyInfo",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_KeyInfo",
+ "version": "0.0.1"
+ },
+ "UUID": "ea9e73ff-483c-3827-896c-6eaa9d69bc6e",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_KeyInfo:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Policies",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Policies",
+ "version": "0.0.1"
+ },
+ "UUID": "38c068e5-bb9a-3997-9e50-ec77c66825c8",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Policies:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Schemas",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Schemas",
+ "version": "0.0.1"
+ },
+ "UUID": "38514b27-8b9b-3d06-844a-3aced27deb0a",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Schemas:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Tasks",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Tasks",
+ "version": "0.0.1"
+ },
+ "UUID": "0e0387b5-07fa-30e4-8554-eb51d2e18939",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Tasks:0.0.1\""
+ }
+ }
+ ]
+ }
+ },
+ "policies": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Policies",
+ "version": "0.0.1"
+ },
+ "policyMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_AAIFailureResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_ReceiveAAIFailureResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_ReceiveAAIFailureResponseState"
+ },
+ "trigger": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "AAIFailureStateOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
+ "localName": "AAIFailureStateOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
+ "localName": "SimpleCL_AAIFailureResponseHandlerPolicy2"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
+ "localName": "AAIFailureStateOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_ReceiveAAIFailureResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_AAISuccessResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_ReceiveAAISuccessResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_ReceiveAAISuccessResponseState"
+ },
+ "trigger": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "AAISuccessStateOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
+ "localName": "AAISuccessStateOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
+ "localName": "SimpleCL_AAISuccessResponseHandlerPolicy2"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
+ "localName": "AAISuccessStateOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_ReceiveAAISuccessResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_CDSConfigModifyFailureResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_CDSConfigModifyFailureResponseState"
+ },
+ "trigger": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ConfigModifyFailureResponseOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
+ "localName": "ConfigModifyFailureResponseOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
+ "localName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
+ "localName": "ConfigModifyFailureResponseOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_CDSConfigModifyFailureResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_CDSConfigModifySuccessResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_CDSConfigModifySuccessResponseState"
+ },
+ "trigger": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ConfigModifySuccessResponseOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
+ "localName": "ConfigModifySuccessResponseOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
+ "localName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
+ "localName": "ConfigModifySuccessResponseOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_CDSConfigModifySuccessResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEventHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_VesEventHandlerPolicy2",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_ReceiveVesState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_VesEventHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_ReceiveVesState"
+ },
+ "trigger": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "VesOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_VesEventHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveVesState",
+ "localName": "VesOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_HandleVesEventTask2",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_VesEventHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveVesState",
+ "localName": "SimpleCL_VesEventHandlerPolicy2"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_VesEventHandlerPolicy2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveVesState",
+ "localName": "VesOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_ReceiveVesState"
+ }
+ }
+ ]
+ }
+ },
+ "tasks": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Tasks",
+ "version": "0.0.1"
+ },
+ "taskMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_SUCCESS"
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask2",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "requestError",
+ "value": {
+ "key": "requestError",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask2",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "equip-model",
+ "value": {
+ "key": "equip-model",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "equip-type",
+ "value": {
+ "key": "equip-type",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "equip-vendor",
+ "value": {
+ "key": "equip-vendor",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "frame-id",
+ "value": {
+ "key": "frame-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "in-maint",
+ "value": {
+ "key": "in-maint",
+ "fieldSchemaKey": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "ipaddress-v4-oam",
+ "value": {
+ "key": "ipaddress-v4-oam",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "nf-role",
+ "value": {
+ "key": "nf-role",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "pnf-ipv4-address",
+ "value": {
+ "key": "pnf-ipv4-address",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "pnf-name",
+ "value": {
+ "key": "pnf-name",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "resource-version",
+ "value": {
+ "key": "resource-version",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_CDSConfigModifyRequestEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask2",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "DCAE",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "event",
+ "value": {
+ "key": "event",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "ENTRY"
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_AAIRequestEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "AAI",
+ "parameter": {
+ "entry": [
+ {
+ "key": "aaifield",
+ "value": {
+ "key": "aaifield",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "events": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Events",
+ "version": "0.0.1"
+ },
+ "eventMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "requestError",
+ "value": {
+ "key": "requestError",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "AAI",
+ "parameter": {
+ "entry": [
+ {
+ "key": "aaifield",
+ "value": {
+ "key": "aaifield",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "equip-model",
+ "value": {
+ "key": "equip-model",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "equip-type",
+ "value": {
+ "key": "equip-type",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "equip-vendor",
+ "value": {
+ "key": "equip-vendor",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "frame-id",
+ "value": {
+ "key": "frame-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "in-maint",
+ "value": {
+ "key": "in-maint",
+ "fieldSchemaKey": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "ipaddress-v4-oam",
+ "value": {
+ "key": "ipaddress-v4-oam",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "nf-role",
+ "value": {
+ "key": "nf-role",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "pnf-ipv4-address",
+ "value": {
+ "key": "pnf-ipv4-address",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "pnf-name",
+ "value": {
+ "key": "pnf-name",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "resource-version",
+ "value": {
+ "key": "resource-version",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_SUCCESS"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "DCAE",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "event",
+ "value": {
+ "key": "event",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "ENTRY"
+ }
+ }
+ ]
+ }
+ },
+ "albums": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Albums",
+ "version": "0.0.1"
+ },
+ "albums": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "scope": "policy",
+ "isWritable": true,
+ "itemSchema": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "schemas": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop2_Schemas",
+ "version": "0.0.1"
+ },
+ "schemas": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.Boolean"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.Long"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.String"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/csit/resources/tests/data/onap.policies.apex.pnf.Test.json b/csit/resources/tests/data/onap.policies.apex.pnf.Test.json
new file mode 100644
index 00000000..05522936
--- /dev/null
+++ b/csit/resources/tests/data/onap.policies.apex.pnf.Test.json
@@ -0,0 +1,2896 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "topology_template": {
+ "policies": [
+ {
+ "onap.policies.apex.pnf.Test": {
+ "type": "onap.policies.native.Apex",
+ "type_version": "1.0.0",
+ "name": "onap.policies.apex.pnf.Test",
+ "version": "1.0.0",
+ "properties": {
+ "engineServiceParameters": {
+ "name": "NSOApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ },
+ "contextParameters": {
+ "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
+ "schemaParameters": {
+ "Avro": {
+ "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
+ }
+ }
+ },
+ "taskParameters": [
+ {
+ "key": "logUrl",
+ "value": "http://message-router:3904/events/APEX-CL-MGT"
+ }
+ ]
+ },
+ "policy_type_impl": {
+ "apexPolicyModel": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop",
+ "version": "0.0.1"
+ },
+ "keyInformation": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_KeyInfo",
+ "version": "0.0.1"
+ },
+ "keyInfoMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "UUID": "7218fb2f-59e3-321d-9ae1-bc97b19eb4ae",
+ "description": "Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "c8a29e27-0a15-354a-84f9-4c7f207e5c81",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "5e843cee-0180-39b9-8989-180b2ffe11c0",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "UUID": "90291c92-9b27-3cd9-8720-db572419c048",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "7b7e6751-4e0b-389d-98c0-5567bbc0294c",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "63d5680c-14ef-3505-8d34-ebb646bba07b",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "a84ca97d-6e94-39a2-91f9-59a6c9aa435e",
+ "description": "Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "UUID": "0e2ee622-7fd3-3e49-82e2-539c4f5e9624",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "e84f8682-ea33-3ad0-8626-8bc4634581fc",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "a252f835-2479-38ef-9ef4-20af62725752",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "cfc46ea9-b8c1-38dd-ac9c-304c916daf34",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "1e7095d6-a455-3f89-acae-486e35d7e311",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "UUID": "d22ea83b-695d-3da9-b9f5-41f16ca433bf",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "UUID": "e9fe2e40-1f0d-30dd-8b9e-885695878693",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "5e04fa76-0a17-38a9-8524-23b2d1a23fa5",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "15866380-40f5-3f8e-87d9-13747a36d352",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "2c3d76ce-dd42-32ac-a397-ab418534e1cf",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "UUID": "b99c44da-dae7-3c96-b528-58852537d063",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "UUID": "1db688e2-3afe-3b03-9795-fdbfa80fa240",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "UUID": "31022456-e85b-3a9b-9ecb-a09691792d3e",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "UUID": "d6075720-622e-3a0d-827a-aa4580a2f5d7",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "UUID": "948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5",
+ "description": "Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "UUID": "63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644",
+ "description": "Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "UUID": "a0407d0b-5719-38bf-9529-25ad62ace8c4",
+ "description": "Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "28e894dc-4ab8-3469-aab7-d81bd05bb4c9",
+ "description": "Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "073f1433-999e-3506-98ad-ef820d2fa7f0",
+ "description": "Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "UUID": "afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74",
+ "description": "Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "317be184-a01a-3e2d-9ae4-cafaa405de70",
+ "description": "Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "UUID": "be7fc79b-9b73-381a-8e23-9dd6e6b1233d",
+ "description": "Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "UUID": "1a082851-49e3-3f4c-b023-c05236cc8389",
+ "description": "Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "UUID": "cab6cd51-ea7b-3241-a173-ea8a24e29737",
+ "description": "Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "0f57665a-f0a9-314e-ad0a-04c1f5758174",
+ "description": "Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEventHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEventHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b",
+ "description": "Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "UUID": "9fd7a967-57d4-36ef-81e9-c3396f3aa8d1",
+ "description": "Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "UUID": "2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574",
+ "description": "Generated description for concept referred to by key \"SimpleLongType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "UUID": "8a4957cf-9493-3a76-8c22-a208e23259af",
+ "description": "Generated description for concept referred to by key \"SimpleStringType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop",
+ "version": "0.0.1"
+ },
+ "UUID": "ecc97b87-f30b-344c-a476-d36501bf5cbd",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Albums",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Albums",
+ "version": "0.0.1"
+ },
+ "UUID": "1469671a-56dd-3a68-bf6c-77a5cf7a9487",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Albums:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Events",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Events",
+ "version": "0.0.1"
+ },
+ "UUID": "23c4eee4-aba5-36f6-96d6-46f40061bfed",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Events:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_KeyInfo",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_KeyInfo",
+ "version": "0.0.1"
+ },
+ "UUID": "ea9e73ff-483c-3827-896c-6eaa9d69bc6e",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_KeyInfo:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Policies",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Policies",
+ "version": "0.0.1"
+ },
+ "UUID": "38c068e5-bb9a-3997-9e50-ec77c66825c8",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Policies:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Schemas",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Schemas",
+ "version": "0.0.1"
+ },
+ "UUID": "38514b27-8b9b-3d06-844a-3aced27deb0a",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Schemas:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Tasks",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Tasks",
+ "version": "0.0.1"
+ },
+ "UUID": "0e0387b5-07fa-30e4-8554-eb51d2e18939",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Tasks:0.0.1\""
+ }
+ }
+ ]
+ }
+ },
+ "policies": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Policies",
+ "version": "0.0.1"
+ },
+ "policyMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_ReceiveAAIFailureResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_ReceiveAAIFailureResponseState"
+ },
+ "trigger": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "AAIFailureStateOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
+ "localName": "AAIFailureStateOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
+ "localName": "SimpleCL_AAIFailureResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
+ "localName": "AAIFailureStateOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_ReceiveAAIFailureResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_ReceiveAAISuccessResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_ReceiveAAISuccessResponseState"
+ },
+ "trigger": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "AAISuccessStateOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
+ "localName": "AAISuccessStateOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
+ "localName": "SimpleCL_AAISuccessResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
+ "localName": "AAISuccessStateOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_ReceiveAAISuccessResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_CDSConfigModifyFailureResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_CDSConfigModifyFailureResponseState"
+ },
+ "trigger": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ConfigModifyFailureResponseOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
+ "localName": "ConfigModifyFailureResponseOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
+ "localName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
+ "localName": "ConfigModifyFailureResponseOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_CDSConfigModifyFailureResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_CDSConfigModifySuccessResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_CDSConfigModifySuccessResponseState"
+ },
+ "trigger": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ConfigModifySuccessResponseOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
+ "localName": "ConfigModifySuccessResponseOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
+ "localName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
+ "localName": "ConfigModifySuccessResponseOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_CDSConfigModifySuccessResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEventHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "SimpleCL_VesEventHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "SimpleCL_ReceiveVesState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "SimpleCL_ReceiveVesState"
+ },
+ "trigger": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "VesOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveVesState",
+ "localName": "VesOutput"
+ },
+ "outgoingEvent": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "outgoingEventReference": [
+ {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ }
+ ],
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "SimpleCL_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveVesState",
+ "localName": "SimpleCL_VesEventHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "SimpleCL_ReceiveVesState",
+ "localName": "VesOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "SimpleCL_ReceiveVesState"
+ }
+ }
+ ]
+ }
+ },
+ "tasks": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Tasks",
+ "version": "0.0.1"
+ },
+ "taskMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_SUCCESS"
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "requestError",
+ "value": {
+ "key": "requestError",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "equip-model",
+ "value": {
+ "key": "equip-model",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "equip-type",
+ "value": {
+ "key": "equip-type",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "equip-vendor",
+ "value": {
+ "key": "equip-vendor",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "frame-id",
+ "value": {
+ "key": "frame-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "in-maint",
+ "value": {
+ "key": "in-maint",
+ "fieldSchemaKey": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "ipaddress-v4-oam",
+ "value": {
+ "key": "ipaddress-v4-oam",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "nf-role",
+ "value": {
+ "key": "nf-role",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "pnf-ipv4-address",
+ "value": {
+ "key": "pnf-ipv4-address",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "pnf-name",
+ "value": {
+ "key": "pnf-name",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "resource-version",
+ "value": {
+ "key": "resource-version",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_CDSConfigModifyRequestEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "inputEvent": {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "DCAE",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "event",
+ "value": {
+ "key": "event",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "ENTRY"
+ },
+ "outputEvents": {
+ "entry": [
+ {
+ "key": "SimpleCL_AAIRequestEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "AAI",
+ "parameter": {
+ "entry": [
+ {
+ "key": "aaifield",
+ "value": {
+ "key": "aaifield",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": "SimpleCL_LogEvent",
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "events": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Events",
+ "version": "0.0.1"
+ },
+ "eventMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "requestError",
+ "value": {
+ "key": "requestError",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "AAI",
+ "parameter": {
+ "entry": [
+ {
+ "key": "aaifield",
+ "value": {
+ "key": "aaifield",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "equip-model",
+ "value": {
+ "key": "equip-model",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "equip-type",
+ "value": {
+ "key": "equip-type",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "equip-vendor",
+ "value": {
+ "key": "equip-vendor",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "frame-id",
+ "value": {
+ "key": "frame-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "in-maint",
+ "value": {
+ "key": "in-maint",
+ "fieldSchemaKey": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "ipaddress-v4-oam",
+ "value": {
+ "key": "ipaddress-v4-oam",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "nf-role",
+ "value": {
+ "key": "nf-role",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "pnf-ipv4-address",
+ "value": {
+ "key": "pnf-ipv4-address",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "pnf-name",
+ "value": {
+ "key": "pnf-name",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "resource-version",
+ "value": {
+ "key": "resource-version",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_SUCCESS"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "component",
+ "value": {
+ "key": "component",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "id",
+ "value": {
+ "key": "id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "otherFields",
+ "value": {
+ "key": "otherFields",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "target",
+ "value": {
+ "key": "target",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.simplecontrolloop",
+ "source": "DCAE",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "event",
+ "value": {
+ "key": "event",
+ "fieldSchemaKey": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "ENTRY"
+ }
+ }
+ ]
+ }
+ },
+ "albums": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Albums",
+ "version": "0.0.1"
+ },
+ "albums": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "scope": "policy",
+ "isWritable": true,
+ "itemSchema": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "schemas": {
+ "key": {
+ "name": "onap.policies.apex.Simplecontrolloop_Schemas",
+ "version": "0.0.1"
+ },
+ "schemas": {
+ "entry": [
+ {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.Boolean"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventComponentType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventOtherFieldsType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_LogEventTargetType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleCL_VesEventType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.Long"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.String"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "SimpleCL_DCAEConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "SimpleCL_VesEvent"
+ },
+ "SimpleCL_AAIResponseConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}",
+ "httpMethod": "GET",
+ "httpCodeFilter": "[2-5][0-1][0-9]",
+ "httpHeaders": [
+ [
+ "Accept",
+ "application/json"
+ ],
+ [
+ "Content-Type",
+ "application/json"
+ ],
+ [
+ "X-FromAppId",
+ "dcae-curl"
+ ],
+ [
+ "x-transactionId",
+ "9998"
+ ],
+ [
+ "Authorization",
+ "Basic QUFJOkFBSQ=="
+ ]
+ ]
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "SimpleCL_AAIProducer",
+ "requestorTimeout": 2000
+ },
+ "SimpleCL_CDSConfigModifyResponseConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "GRPC",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "SimpleCL_CDSConfigModifyRequestProducer",
+ "requestorTimeout": 500
+ }
+ },
+ "eventOutputParameters": {
+ "SimpleCL_AAIProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "SimpleCL_AAIRequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "SimpleCL_AAIResponseConsumer",
+ "requestorTimeout": 2000
+ },
+ "SimpleCL_CDSConfigModifyRequestProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "GRPC",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
+ "parameters": {
+ "host": "grpc-sim",
+ "port": 6680,
+ "username": "ccsdkapps",
+ "password": "ccsdkapps",
+ "timeout": 60
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "SimpleCL_CDSConfigModifyRequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "SimpleCL_CDSConfigModifyResponseConsumer",
+ "requestorTimeout": 500
+ },
+ "SimpleCL_logOutputter": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://message-router:3904/events/APEX-CL-MGT"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "SimpleCL_LogEvent"
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/csit/resources/tests/data/onap.policies.apex.pnf.metadataSet.Test.json b/csit/resources/tests/data/onap.policies.apex.pnf.metadataSet.Test.json
new file mode 100644
index 00000000..20338fff
--- /dev/null
+++ b/csit/resources/tests/data/onap.policies.apex.pnf.metadataSet.Test.json
@@ -0,0 +1,165 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "topology_template": {
+ "policies": [
+ {
+ "onap.policies.apex.pnf.metadataSet.Test": {
+ "type": "onap.policies.native.Apex",
+ "type_version": "1.0.0",
+ "name": "onap.policies.apex.pnf.metadataSet.Test",
+ "version": "1.0.0",
+ "metadata": {
+ "metadataSetName": "apex.metadata.pnf",
+ "metadataSetVersion": "1.0.0"
+ },
+ "properties": {
+ "engineServiceParameters": {
+ "name": "NSOApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ },
+ "contextParameters": {
+ "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
+ "schemaParameters": {
+ "Avro": {
+ "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
+ }
+ }
+ },
+ "taskParameters": [
+ {
+ "key": "logUrl",
+ "value": "http://message-router:3904/events/APEX-CL-MGT2"
+ }
+ ]
+ }
+ },
+ "eventInputParameters": {
+ "SimpleCL_DCAEConsumer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "SimpleCL_VesEvent"
+ },
+ "SimpleCL_AAIResponseConsumer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}",
+ "httpMethod": "GET",
+ "httpCodeFilter": "[2-5][0-1][0-9]",
+ "httpHeaders": [
+ [
+ "Accept",
+ "application/json"
+ ],
+ [
+ "Content-Type",
+ "application/json"
+ ],
+ [
+ "X-FromAppId",
+ "dcae-curl"
+ ],
+ [
+ "x-transactionId",
+ "9998"
+ ],
+ [
+ "Authorization",
+ "Basic QUFJOkFBSQ=="
+ ]
+ ]
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "SimpleCL_AAIProducer2",
+ "requestorTimeout": 2000
+ },
+ "SimpleCL_CDSConfigModifyResponseConsumer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "GRPC",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "SimpleCL_CDSConfigModifyRequestProducer2",
+ "requestorTimeout": 500
+ }
+ },
+ "eventOutputParameters": {
+ "SimpleCL_AAIProducer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "SimpleCL_AAIRequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "SimpleCL_AAIResponseConsumer2",
+ "requestorTimeout": 2000
+ },
+ "SimpleCL_CDSConfigModifyRequestProducer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "GRPC",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
+ "parameters": {
+ "host": "grpc-sim",
+ "port": 6680,
+ "username": "ccsdkapps",
+ "password": "ccsdkapps",
+ "timeout": 60
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "SimpleCL_CDSConfigModifyRequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "SimpleCL_CDSConfigModifyResponseConsumer2",
+ "requestorTimeout": 500
+ },
+ "SimpleCL_logOutputter2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://message-router:3904/events/APEX-CL-MGT2"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "SimpleCL_LogEvent"
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/csit/resources/tests/data/onap.policies.apex.vnf.Test.json b/csit/resources/tests/data/onap.policies.apex.vnf.Test.json
new file mode 100644
index 00000000..7886f84b
--- /dev/null
+++ b/csit/resources/tests/data/onap.policies.apex.vnf.Test.json
@@ -0,0 +1,3198 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "topology_template": {
+ "policies": [
+ {
+ "onap.policies.apex.vnf.Test": {
+ "type": "onap.policies.native.Apex",
+ "type_version": "1.0.0",
+ "name": "onap.policies.apex.vnf.Test",
+ "version": "1.0.0",
+ "properties": {
+ "engineServiceParameters": {
+ "name": "NSOApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 5,
+ "deploymentPort": 12561,
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ },
+ "contextParameters": {
+ "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
+ "schemaParameters": {
+ "Avro": {
+ "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
+ }
+ }
+ },
+ "taskParameters": [
+ {
+ "key": "logUrl",
+ "value": "http://message-router:3904/events/APEX-CL-MGT"
+ }
+ ]
+ },
+ "policy_type_impl": {
+ "apexPolicyModel": {
+ "key": {
+ "name": "onap.policies.apex.Example",
+ "version": "0.0.1"
+ },
+ "keyInformation": {
+ "key": {
+ "name": "onap.policies.apex.Example_KeyInfo",
+ "version": "0.0.1"
+ },
+ "keyInfoMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "fc0c1892-a2ae-3678-818f-b9b23939b241",
+ "description": "Generated description for concept referred to by key \"ApexExample_AAIFailureResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_AAIFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAIFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "ba931e7e-aee9-3af8-98d8-16b92a909e8a",
+ "description": "Generated description for concept referred to by key \"ApexExample_AAIFailureResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "UUID": "b4dd59c5-0169-3810-800c-1396c2206de4",
+ "description": "Generated description for concept referred to by key \"ApexExample_AAIRequestErrorType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "599c297e-96c8-3b21-ad1c-e643bddeacbf",
+ "description": "Generated description for concept referred to by key \"ApexExample_AAIRequestEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "b5e3f122-2dcd-3cdf-a0ec-8210b3f80478",
+ "description": "Generated description for concept referred to by key \"ApexExample_AAISuccessResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_AAISuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAISuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "15504e23-78c5-305e-9fce-cf1f50e75013",
+ "description": "Generated description for concept referred to by key \"ApexExample_AAISuccessResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "UUID": "e2715e7d-835e-32c7-b433-a2e92bcad6ee",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSActionIdentifiersType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "b492e841-2c03-36a9-9ec2-dda5852152c3",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "ef4e45f4-1181-3121-a3b6-507126df25e7",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "91cb711a-0c73-3f51-83e6-fca9c547c71d",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "dda3c648-dc8b-38e0-855d-9cb72397f957",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyRequestEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "UUID": "96b306bd-6dee-3d47-981c-eaac316d5ae1",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifyResponsePayloadType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "1b65abfb-ce35-3765-9b9c-d2ee02bef28b",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "4dac3de7-3817-396f-91d6-ce701d162877",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "92dc9e6b-2082-3d90-ba5e-f2dba18b72b6",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "UUID": "a6801c93-f15b-3158-ba33-7760197d3609",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSFailureResponseCommonHeaderType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "UUID": "e2da0a15-c542-3e77-874d-4512e9b4162e",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSFailureResponseStatusType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "UUID": "f54edff0-532f-3142-8e65-a5c9d67888ef",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRequestCommonHeaderType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "UUID": "b967dc44-a156-32d3-a796-f03dbf74316c",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRequestPayloadType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "f2aa4552-069d-3db8-8638-2d1f59124e7a",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "c2e3b07f-2c09-3195-9527-6b3ab0666d61",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "a7c28cc1-9fe5-30b7-9dd8-5a4f7f7d811e",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartRequestEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "d01d1022-48ac-391d-904d-282ccb063f8a",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartRequestEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "UUID": "ad8cbd94-6eb5-3743-8a7d-42cbe49a5320",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartResponsePayloadType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "bbb06330-9161-392e-a0ca-a6bb5e3376af",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "70c6c6e5-00da-30cb-8ec0-14437d657f39",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "77f16151-80b5-304c-a448-19d8528feed1",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "UUID": "2f17aee2-fbdf-3c41-a779-f9c17b5bda5b",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseCommonHeaderType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "UUID": "8c554852-3ed6-3027-a0d3-fccd2db19875",
+ "description": "Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseStatusType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "UUID": "b402baca-915b-3952-97fc-d9899f9ca81c",
+ "description": "Generated description for concept referred to by key \"ApexExample_EventDetailsAlbum:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "UUID": "3626f32a-eee6-3254-b3d4-e4829518c381",
+ "description": "Generated description for concept referred to by key \"ApexExample_EventDetailsAlbumType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "87abb453-a919-3131-8ffb-3e5c910c6049",
+ "description": "Generated description for concept referred to by key \"ApexExample_HandleAAIFailureResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "UUID": "8881e644-3cca-3aec-8201-312ca6f719e0",
+ "description": "Generated description for concept referred to by key \"ApexExample_HandleAAISuccessResponseTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "UUID": "057f6ddd-d6aa-3ce2-a060-d344de16d7f3",
+ "description": "Generated description for concept referred to by key \"ApexExample_HandleVesEventTask:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_LogStatusEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_LogStatusEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "4867b1e7-a819-3b9f-be2b-a97fe6019827",
+ "description": "Generated description for concept referred to by key \"ApexExample_LogStatusEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_VesEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_VesEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "975b3071-b775-3617-a888-f831fe5a31db",
+ "description": "Generated description for concept referred to by key \"ApexExample_VesEvent:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_VesEventHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_VesEventHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "ad9efe17-a03e-3b64-8e8a-51e144f57d2c",
+ "description": "Generated description for concept referred to by key \"ApexExample_VesEventHandlerPolicy:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_VesEventType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_VesEventType",
+ "version": "0.0.1"
+ },
+ "UUID": "0054393c-10df-3214-af86-cb04a23325bf",
+ "description": "Generated description for concept referred to by key \"ApexExample_VesEventType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_VnfRelationShipListType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_VnfRelationShipListType",
+ "version": "0.0.1"
+ },
+ "UUID": "865a5903-201b-34ff-918b-2bfdde743576",
+ "description": "Generated description for concept referred to by key \"ApexExample_VnfRelationShipListType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "UUID": "7218fb2f-59e3-321d-9ae1-bc97b19eb4ae",
+ "description": "Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "UUID": "2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574",
+ "description": "Generated description for concept referred to by key \"SimpleLongType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "UUID": "8a4957cf-9493-3a76-8c22-a208e23259af",
+ "description": "Generated description for concept referred to by key \"SimpleStringType:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Example",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Example",
+ "version": "0.0.1"
+ },
+ "UUID": "b2501730-8870-3475-b22a-4a4d22792ebb",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Example:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Example_Albums",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Example_Albums",
+ "version": "0.0.1"
+ },
+ "UUID": "7dc5f49d-c291-38de-bcae-1db30d00581f",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Albums:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Example_Events",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Example_Events",
+ "version": "0.0.1"
+ },
+ "UUID": "06b3112b-ae8b-3f37-8aa6-f539c0250550",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Events:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Example_KeyInfo",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Example_KeyInfo",
+ "version": "0.0.1"
+ },
+ "UUID": "454848e1-43ac-3ce4-bfdc-b9b6271dc563",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_KeyInfo:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Example_Policies",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Example_Policies",
+ "version": "0.0.1"
+ },
+ "UUID": "24c3fca5-b0dd-398c-83ee-66a187296b32",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Policies:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Example_Schemas",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Example_Schemas",
+ "version": "0.0.1"
+ },
+ "UUID": "c6aff774-f50a-329d-a731-9c23a6e7e02e",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Schemas:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "onap.policies.apex.Example_Tasks",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "onap.policies.apex.Example_Tasks",
+ "version": "0.0.1"
+ },
+ "UUID": "f856a6df-6237-3acc-aa68-f55e64cc0ec9",
+ "description": "Generated description for concept referred to by key \"onap.policies.apex.Example_Tasks:0.0.1\""
+ }
+ }
+ ]
+ }
+ },
+ "policies": {
+ "key": {
+ "name": "onap.policies.apex.Example_Policies",
+ "version": "0.0.1"
+ },
+ "policyMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_AAIFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "ApexExample_AAIFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "ApexExample_ReceiveAAIFailureResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "ApexExample_ReceiveAAIFailureResponseState"
+ },
+ "trigger": {
+ "name": "ApexExample_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ApexExample_AAIFailureStateOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_ReceiveAAIFailureResponseState",
+ "localName": "ApexExample_AAIFailureStateOutput"
+ },
+ "outgoingEvent": {
+ "name": "ApexExample_LogStatusEvent",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "ApexExample_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_ReceiveAAIFailureResponseState",
+ "localName": "ApexExample_AAIFailureResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_ReceiveAAIFailureResponseState",
+ "localName": "ApexExample_AAIFailureStateOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "ApexExample_ReceiveAAIFailureResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_AAISuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "ApexExample_AAISuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "ApexExample_ReceiveAAISuccessResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "ApexExample_ReceiveAAISuccessResponseState"
+ },
+ "trigger": {
+ "name": "ApexExample_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ApexExample_AAISuccessStateOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_ReceiveAAISuccessResponseState",
+ "localName": "ApexExample_AAISuccessStateOutput"
+ },
+ "outgoingEvent": {
+ "name": "ApexExample_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "ApexExample_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_ReceiveAAISuccessResponseState",
+ "localName": "ApexExample_AAISuccessResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_ReceiveAAISuccessResponseState",
+ "localName": "ApexExample_AAISuccessStateOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "ApexExample_ReceiveAAISuccessResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "ApexExample_CDSConfigModifyFailureResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "ApexExample_CDSConfigModifyFailureResponseState"
+ },
+ "trigger": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ApexExample_ConfigModifyFailureResponseOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSConfigModifyFailureResponseState",
+ "localName": "ApexExample_ConfigModifyFailureResponseOutput"
+ },
+ "outgoingEvent": {
+ "name": "ApexExample_LogStatusEvent",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSConfigModifyFailureResponseState",
+ "localName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSConfigModifyFailureResponseState",
+ "localName": "ApexExample_ConfigModifyFailureResponseOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "ApexExample_CDSConfigModifyFailureResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "ApexExample_CDSConfigModifySuccessResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "ApexExample_CDSConfigModifySuccessResponseState"
+ },
+ "trigger": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ApexExample_ConfigModifySuccessResponseOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSConfigModifySuccessResponseState",
+ "localName": "ApexExample_ConfigModifySuccessResponseOutput"
+ },
+ "outgoingEvent": {
+ "name": "ApexExample_CDSRestartRequestEvent",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSConfigModifySuccessResponseState",
+ "localName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSConfigModifySuccessResponseState",
+ "localName": "ApexExample_ConfigModifySuccessResponseOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "ApexExample_CDSConfigModifySuccessResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "ApexExample_CDSRestartFailureResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "ApexExample_CDSRestartFailureResponseState"
+ },
+ "trigger": {
+ "name": "ApexExample_CDSRestartFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ApexExample_RestartFailureResponseOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSRestartFailureResponseState",
+ "localName": "ApexExample_RestartFailureResponseOutput"
+ },
+ "outgoingEvent": {
+ "name": "ApexExample_LogStatusEvent",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "ApexExample_CDSRestartFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSRestartFailureResponseState",
+ "localName": "ApexExample_CDSRestartFailureResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSRestartFailureResponseState",
+ "localName": "ApexExample_RestartFailureResponseOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "ApexExample_CDSRestartFailureResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "ApexExample_CDSRestartSuccessResponseState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "ApexExample_CDSRestartSuccessResponseState"
+ },
+ "trigger": {
+ "name": "ApexExample_CDSRestartSuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ApexExample_RestartSuccessResponseOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSRestartSuccessResponseState",
+ "localName": "ApexExample_RestartSuccessResponseOutput"
+ },
+ "outgoingEvent": {
+ "name": "ApexExample_LogStatusEvent",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "ApexExample_CDSRestartSuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSRestartSuccessResponseState",
+ "localName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_CDSRestartSuccessResponseState",
+ "localName": "ApexExample_RestartSuccessResponseOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "ApexExample_CDSRestartSuccessResponseState"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_VesEventHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "ApexExample_VesEventHandlerPolicy",
+ "version": "0.0.1"
+ },
+ "template": "Freestyle",
+ "state": {
+ "entry": [
+ {
+ "key": "ApexExample_ReceiveVesState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "ApexExample_VesEventHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "ApexExample_ReceiveVesState"
+ },
+ "trigger": {
+ "name": "ApexExample_VesEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "ApexExample_VesOutput",
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_VesEventHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_ReceiveVesState",
+ "localName": "ApexExample_VesOutput"
+ },
+ "outgoingEvent": {
+ "name": "ApexExample_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "ApexExample_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "ApexExample_VesEventHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_ReceiveVesState",
+ "localName": "ApexExample_VesEventHandlerPolicy"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "ApexExample_VesEventHandlerPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "ApexExample_ReceiveVesState",
+ "localName": "ApexExample_VesOutput"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "ApexExample_ReceiveVesState"
+ }
+ }
+ ]
+ }
+ },
+ "tasks": {
+ "key": {
+ "name": "onap.policies.apex.Example_Tasks",
+ "version": "0.0.1"
+ },
+ "taskMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "message",
+ "value": {
+ "key": "message",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nerrorMessage = errorMessage.replace(/\"/g, '\\\\\\\"')\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime());\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\nvar vnfDetails = eventDetailsAlbum.get(\"vnfDetails\");\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"restart\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-name\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"restart_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(+executor.outFields);\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"ConfigModify request is successful. Sending restart request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRestartResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "message",
+ "value": {
+ "key": "message",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRestartResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "message",
+ "value": {
+ "key": "message",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar timestamp = longType(new Date().getTime());\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_SUCCESS\", \"Successfully processed the VES Event. Restart is complete.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_HandleAAIFailureResponseTask",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "requestError",
+ "value": {
+ "key": "requestError",
+ "fieldSchemaKey": {
+ "name": "ApexExample_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "message",
+ "value": {
+ "key": "message",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\nvar timestamp = longType(new Date().getTime());\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_HandleAAISuccessResponseTask",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "in-maint",
+ "value": {
+ "key": "in-maint",
+ "fieldSchemaKey": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "is-closed-loop-disabled",
+ "value": {
+ "key": "is-closed-loop-disabled",
+ "fieldSchemaKey": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "model-customization-id",
+ "value": {
+ "key": "model-customization-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "model-invariant-id",
+ "value": {
+ "key": "model-invariant-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "model-version-id",
+ "value": {
+ "key": "model-version-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "orchestration-status",
+ "value": {
+ "key": "orchestration-status",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "prov-status",
+ "value": {
+ "key": "prov-status",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "relationship-list",
+ "value": {
+ "key": "relationship-list",
+ "fieldSchemaKey": {
+ "name": "ApexExample_VnfRelationShipListType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "resource-version",
+ "value": {
+ "key": "resource-version",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "service-id",
+ "value": {
+ "key": "service-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "vnf-id",
+ "value": {
+ "key": "vnf-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "vnf-name",
+ "value": {
+ "key": "vnf-name",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "vnf-type",
+ "value": {
+ "key": "vnf-type",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\n\nvar vnfDetails = executor.inFields;\nexecutor.logger.info(\"ApexExample_HandleAAISuccessResponseTask processing event - \" + vnfDetails);\neventDetailsAlbum.put(\"vnfDetails\", vnfDetails);\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"modify-config\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-id\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\nvar payloadSchemaHelper = executor.subject.getOutFieldSchemaHelper(\"payload\");\npayload.put(\"modify_DasH_config_DasH_request\", payloadEntry);\n\n//always use the executor.stringify2json method instead of JSON.strngify\nexecutor.logger.info(\"CDS modify config request payload - \" + executor.stringify2Json(payload, payloadSchemaHelper));\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\nvar timestamp = longType(new Date().getTime());\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"VNF details are received from AAI successfully. Sending ConfigModify request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_HandleVesEventTask",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "event",
+ "value": {
+ "key": "event",
+ "fieldSchemaKey": {
+ "name": "ApexExample_VesEventType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "aaifield",
+ "value": {
+ "key": "aaifield",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"ApexExample_HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar faultFields = event.get(\"faultFields\");\n\n//albumID will be used to fetch info from our album later\nvar albumID = commonEventHeader.get(\"sourceId\");\n\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming fault event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader)\neventDetailsAlbum.put(\"faultFields\", faultFields)\nexecutor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"vnf-name\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceName\"));\n\nvar timestamp = longType(new Date().getTime());\nsend(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), \"VNF\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceId\"), timestamp, \"ACTIVE\", \"VES event has been received. Going to fetch VNF details from AAI.\")\n\nexecutor.logger.info(executor.outFields);\nreturnValue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "events": {
+ "key": {
+ "name": "onap.policies.apex.Example_Events",
+ "version": "0.0.1"
+ },
+ "eventMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAIFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "requestError",
+ "value": {
+ "key": "requestError",
+ "fieldSchemaKey": {
+ "name": "ApexExample_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAIRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "APEX",
+ "target": "AAI",
+ "parameter": {
+ "entry": [
+ {
+ "key": "aaifield",
+ "value": {
+ "key": "aaifield",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAISuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "AAI",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "in-maint",
+ "value": {
+ "key": "in-maint",
+ "fieldSchemaKey": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "is-closed-loop-disabled",
+ "value": {
+ "key": "is-closed-loop-disabled",
+ "fieldSchemaKey": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "model-customization-id",
+ "value": {
+ "key": "model-customization-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "model-invariant-id",
+ "value": {
+ "key": "model-invariant-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "model-version-id",
+ "value": {
+ "key": "model-version-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "orchestration-status",
+ "value": {
+ "key": "orchestration-status",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "prov-status",
+ "value": {
+ "key": "prov-status",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "relationship-list",
+ "value": {
+ "key": "relationship-list",
+ "fieldSchemaKey": {
+ "name": "ApexExample_VnfRelationShipListType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "resource-version",
+ "value": {
+ "key": "resource-version",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "service-id",
+ "value": {
+ "key": "service-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "vnf-id",
+ "value": {
+ "key": "vnf-id",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "vnf-name",
+ "value": {
+ "key": "vnf-name",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "vnf-type",
+ "value": {
+ "key": "vnf-type",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "APEX",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifySuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartFailureResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRestartResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_FAILURE"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartRequestEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartRequestEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "APEX",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartSuccessResponseEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "CDS",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "actionIdentifiers",
+ "value": {
+ "key": "actionIdentifiers",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "commonHeader",
+ "value": {
+ "key": "commonHeader",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "payload",
+ "value": {
+ "key": "payload",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSRestartResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "status",
+ "value": {
+ "key": "status",
+ "fieldSchemaKey": {
+ "name": "ApexExample_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "EXIT_SUCCESS"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_LogStatusEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_LogStatusEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "APEX",
+ "target": "DCAE",
+ "parameter": {
+ "entry": [
+ {
+ "key": "message",
+ "value": {
+ "key": "message",
+ "fieldSchemaKey": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": ""
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_VesEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_VesEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.example",
+ "source": "DCAE",
+ "target": "APEX",
+ "parameter": {
+ "entry": [
+ {
+ "key": "event",
+ "value": {
+ "key": "event",
+ "fieldSchemaKey": {
+ "name": "ApexExample_VesEventType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "toscaPolicyState": "ENTRY"
+ }
+ }
+ ]
+ }
+ },
+ "albums": {
+ "key": {
+ "name": "onap.policies.apex.Example_Albums",
+ "version": "0.0.1"
+ },
+ "albums": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_EventDetailsAlbum",
+ "version": "0.0.1"
+ },
+ "scope": "policy",
+ "isWritable": true,
+ "itemSchema": {
+ "name": "ApexExample_EventDetailsAlbumType",
+ "version": "0.0.1"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "schemas": {
+ "key": {
+ "name": "onap.policies.apex.Example_Schemas",
+ "version": "0.0.1"
+ },
+ "schemas": {
+ "entry": [
+ {
+ "key": {
+ "name": "ApexExample_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_AAIRequestErrorType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSActionIdentifiersType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSConfigModifyResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSFailureResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSFailureResponseStatusType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRequestCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRequestPayloadType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n },\n {\n \"name\": \"update_DasH_properties\",\n \"type\": {\n \"name\": \"update_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"service_DasH_instance_DoT_service_DasH_instance_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"generic_DasH_vnf_DoT_vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"data\",\n \"type\": {\n \"name\": \"update_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"active_DasH_streams\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n }\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSRestartResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSRestartResponsePayloadType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"CDSRestartResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"restart_DasH_response\",\n \"type\": {\n \"name\": \"restart_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_CDSSuccessResponseStatusType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_EventDetailsAlbumType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"vnfDetails\",\n \"type\": {\n \"name\": \"vnfDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_type\",\n \"type\": \"string\"\n },\n {\n \"name\": \"service_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"prov_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"orchestration_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"in_DasH_maint\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"is_DasH_closed_DasH_loop_DasH_disabled\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"resource_DasH_version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_invariant_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_version_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_customization_DasH_id\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_VesEventType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_VesEventType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"event\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "ApexExample_VnfRelationShipListType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ApexExample_VnfRelationShipListType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Avro",
+ "schemaDefinition": "{\n \"name\": \"VnfRelationShipListType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"related_DasH_to\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_label\",\n \"type\": \"string\"\n },\n {\n \"name\": \"related_DasH_link\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_data\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"related_DasH_to_DasH_property\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"related_DasH_to_DasH_property_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"property_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"property_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n }\n ]\n}"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleBooleanType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.Boolean"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleLongType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.Long"
+ }
+ },
+ {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SimpleStringType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.String"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "ApexExample_DCAEConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://message-router:3904/events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "ApexExample_VesEvent"
+ },
+ "ApexExample_AAIResponseConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://aai-sim:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}",
+ "httpMethod": "GET",
+ "httpCodeFilter": "[245][0-9][0-9]",
+ "httpHeaders": [
+ [
+ "Accept",
+ "application/json"
+ ],
+ [
+ "Content-Type",
+ "application/json"
+ ],
+ [
+ "X-FromAppId",
+ "dcae-curl"
+ ],
+ [
+ "x-transactionId",
+ "9998"
+ ],
+ [
+ "Authorization",
+ "Basic QUFJOkFBSQ=="
+ ]
+ ]
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "ApexExample_AAISuccessResponseEvent|ApexExample_AAIFailureResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "ApexExample_AAIProducer",
+ "requestorTimeout": 2000
+ },
+ "ApexExample_CDSConfigModifyResponseConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "GRPC",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "ApexExample_CDSConfigModifySuccessResponseEvent|ApexExample_CDSConfigModifyFailureResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "ApexExample_CDSConfigModifyRequestProducer",
+ "requestorTimeout": 500
+ },
+ "ApexExample_CDSRestartResponseConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "GRPC",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventName": "ApexExample_CDSRestartSuccessResponseEvent|ApexExample_CDSRestartFailureResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "ApexExample_CDSRestartRequestProducer",
+ "requestorTimeout": 500
+ }
+ },
+ "eventOutputParameters": {
+ "ApexExample_AAIProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ApexExample_AAIRequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "ApexExample_AAIResponseConsumer",
+ "requestorTimeout": 2000
+ },
+ "ApexExample_CDSConfigModifyRequestProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "GRPC",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
+ "parameters": {
+ "host": "grpc-sim",
+ "port": 6680,
+ "username": "ccsdkapps",
+ "password": "ccsdkapps",
+ "timeout": 10
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ApexExample_CDSConfigModifyRequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "ApexExample_CDSConfigModifyResponseConsumer",
+ "requestorTimeout": 500
+ },
+ "ApexExample_CDSRestartRequestProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "GRPC",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
+ "parameters": {
+ "host": "grpc-sim",
+ "port": 6680,
+ "username": "ccsdkapps",
+ "password": "ccsdkapps",
+ "timeout": 10
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ApexExample_CDSRestartRequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "ApexExample_CDSRestartResponseConsumer",
+ "requestorTimeout": 500
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/csit/resources/tests/data/onap.policies.native.apex.Sampledomain.json b/csit/resources/tests/data/onap.policies.native.apex.Sampledomain.json
new file mode 100644
index 00000000..d90ae08d
--- /dev/null
+++ b/csit/resources/tests/data/onap.policies.native.apex.Sampledomain.json
@@ -0,0 +1,7436 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "topology_template": {
+ "policies": [
+ {
+ "onap.policies.native.apex.Sampledomain": {
+ "type": "onap.policies.native.Apex",
+ "type_version": "1.0.0",
+ "version": "1.0.0",
+ "name": "onap.policies.native.apex.Sampledomain",
+ "properties": {
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policy_type_impl": {
+ "apexPolicyModel": {
+ "key": {
+ "name": "SamplePolicyModelJAVASCRIPT",
+ "version": "0.0.1"
+ },
+ "keyInformation": {
+ "key": {
+ "name": "KeyInformation",
+ "version": "0.0.1"
+ },
+ "keyInfoMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "Context",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Context",
+ "version": "0.0.1"
+ },
+ "UUID": "ca36bfd8-6042-3633-8c85-89c66507c3bf",
+ "description": "Generated description for concept referred to by key \"Context:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0000",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0000",
+ "version": "0.0.1"
+ },
+ "UUID": "465a81cc-885f-3a4d-bc4e-1508da92b236",
+ "description": "Generated description for concept referred to by key \"Event0000:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0001",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0001",
+ "version": "0.0.1"
+ },
+ "UUID": "36b2d570-fff7-3a4b-bab2-6bf492f5129a",
+ "description": "Generated description for concept referred to by key \"Event0001:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0002",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0002",
+ "version": "0.0.1"
+ },
+ "UUID": "ff6160a7-fb5e-379c-a6d2-2cd28053eacf",
+ "description": "Generated description for concept referred to by key \"Event0002:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0003",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0003",
+ "version": "0.0.1"
+ },
+ "UUID": "5899e216-2abf-3781-abc4-2c257b92721e",
+ "description": "Generated description for concept referred to by key \"Event0003:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0004",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0004",
+ "version": "0.0.1"
+ },
+ "UUID": "7c2692a7-4587-3d09-abf9-d96b339a316f",
+ "description": "Generated description for concept referred to by key \"Event0004:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0100",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0100",
+ "version": "0.0.1"
+ },
+ "UUID": "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7",
+ "description": "Generated description for concept referred to by key \"Event0100:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0101",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0101",
+ "version": "0.0.1"
+ },
+ "UUID": "edbfa868-2ab2-30fd-8078-4c7f67ca6122",
+ "description": "Generated description for concept referred to by key \"Event0101:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0102",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0102",
+ "version": "0.0.1"
+ },
+ "UUID": "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4",
+ "description": "Generated description for concept referred to by key \"Event0102:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0103",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0103",
+ "version": "0.0.1"
+ },
+ "UUID": "c2550912-10d9-3000-8826-377288cd6cb1",
+ "description": "Generated description for concept referred to by key \"Event0103:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Event0104",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0104",
+ "version": "0.0.1"
+ },
+ "UUID": "f6d75b71-c8a7-3337-a121-88d68c389f5a",
+ "description": "Generated description for concept referred to by key \"Event0104:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Events",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Events",
+ "version": "0.0.1"
+ },
+ "UUID": "0215644c-4531-375c-8335-d558b4de8c03",
+ "description": "Generated description for concept referred to by key \"Events:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ "UUID": "976a79e7-5c80-3c03-9503-da3f41fec395",
+ "description": "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ "UUID": "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7",
+ "description": "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "KeyInformation",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "KeyInformation",
+ "version": "0.0.1"
+ },
+ "UUID": "1ff2f905-685c-3caf-95bc-0bbc90345888",
+ "description": "Generated description for concept referred to by key \"KeyInformation:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Policies",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Policies",
+ "version": "0.0.1"
+ },
+ "UUID": "f54c3b2b-be76-31c4-adfc-87c494c06808",
+ "description": "Generated description for concept referred to by key \"Policies:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Policy0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Policy0",
+ "version": "0.0.1"
+ },
+ "UUID": "3410e939-30ca-32c4-a2d8-c30b6fee6eec",
+ "description": "Generated description for concept referred to by key \"Policy0:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ },
+ "UUID": "e27564c4-3cbf-3db2-9bf3-83ae80a2f907",
+ "description": "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Policy1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Policy1",
+ "version": "0.0.1"
+ },
+ "UUID": "d0b2b585-f344-33b8-af9e-250e7f4cfbce",
+ "description": "Generated description for concept referred to by key \"Policy1:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ },
+ "UUID": "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0",
+ "description": "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "SamplePolicyModelJAVASCRIPT",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "SamplePolicyModelJAVASCRIPT",
+ "version": "0.0.1"
+ },
+ "UUID": "bc8ee312-81ce-3c4a-92d5-4a73b8077148",
+ "description": "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Act0",
+ "version": "0.0.1"
+ },
+ "UUID": "0589ff20-adcc-3ce5-95fe-8d7978ed54ed",
+ "description": "Generated description for concept referred to by key \"Task_Act0:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Act1",
+ "version": "0.0.1"
+ },
+ "UUID": "095b126d-ca8b-32c9-ad52-d744e817a79c",
+ "description": "Generated description for concept referred to by key \"Task_Act1:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Act2",
+ "version": "0.0.1"
+ },
+ "UUID": "3d786b4c-d9ee-3367-ab71-c67271a4ea2f",
+ "description": "Generated description for concept referred to by key \"Task_Act2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Act3",
+ "version": "0.0.1"
+ },
+ "UUID": "9231753e-20c5-3436-982f-9100340cc570",
+ "description": "Generated description for concept referred to by key \"Task_Act3:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Decide0",
+ "version": "0.0.1"
+ },
+ "UUID": "502383d3-483f-3a56-a426-2f0406674c8d",
+ "description": "Generated description for concept referred to by key \"Task_Decide0:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Decide1",
+ "version": "0.0.1"
+ },
+ "UUID": "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf",
+ "description": "Generated description for concept referred to by key \"Task_Decide1:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Decide2",
+ "version": "0.0.1"
+ },
+ "UUID": "ad3a89f5-e369-3c66-b22c-669f7b3653b8",
+ "description": "Generated description for concept referred to by key \"Task_Decide2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Decide3",
+ "version": "0.0.1"
+ },
+ "UUID": "56815939-1164-3867-9ed1-0a27ff8aafb3",
+ "description": "Generated description for concept referred to by key \"Task_Decide3:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Establish0",
+ "version": "0.0.1"
+ },
+ "UUID": "0db0c566-ecd7-3e27-9865-4b82c893abdb",
+ "description": "Generated description for concept referred to by key \"Task_Establish0:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Establish1",
+ "version": "0.0.1"
+ },
+ "UUID": "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0",
+ "description": "Generated description for concept referred to by key \"Task_Establish1:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Establish2",
+ "version": "0.0.1"
+ },
+ "UUID": "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a",
+ "description": "Generated description for concept referred to by key \"Task_Establish2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Establish3",
+ "version": "0.0.1"
+ },
+ "UUID": "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66",
+ "description": "Generated description for concept referred to by key \"Task_Establish3:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Match0",
+ "version": "0.0.1"
+ },
+ "UUID": "051bcfd5-cf73-3c89-8ee7-ea6e005ec059",
+ "description": "Generated description for concept referred to by key \"Task_Match0:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Match1",
+ "version": "0.0.1"
+ },
+ "UUID": "3754fe19-98f2-34a1-9f45-db31052208d8",
+ "description": "Generated description for concept referred to by key \"Task_Match1:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Match2",
+ "version": "0.0.1"
+ },
+ "UUID": "8c200709-a180-3c8b-916f-275ff49ce194",
+ "description": "Generated description for concept referred to by key \"Task_Match2:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Match3",
+ "version": "0.0.1"
+ },
+ "UUID": "a1a879c6-4510-33b0-bbd0-ad6256189a37",
+ "description": "Generated description for concept referred to by key \"Task_Match3:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "Tasks",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Tasks",
+ "version": "0.0.1"
+ },
+ "UUID": "a7fab96b-ce1c-37ce-bbb2-556b6db524a5",
+ "description": "Generated description for concept referred to by key \"Tasks:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "UUID": "0a652886-c88d-3f8c-8994-ae9161e7c963",
+ "description": "Generated description for concept referred to by key \"TestCase:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem000",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem000",
+ "version": "0.0.1"
+ },
+ "UUID": "8efba9fa-371e-33df-a7d6-88b0284e7fd0",
+ "description": "Generated description for concept referred to by key \"TestContextItem000:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem001",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem001",
+ "version": "0.0.1"
+ },
+ "UUID": "3740077c-a2b3-356b-81dc-5ded2118a951",
+ "description": "Generated description for concept referred to by key \"TestContextItem001:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem002",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem002",
+ "version": "0.0.1"
+ },
+ "UUID": "b5c7df95-9af5-322f-9ea8-eb440a2bf926",
+ "description": "Generated description for concept referred to by key \"TestContextItem002:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem003",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem003",
+ "version": "0.0.1"
+ },
+ "UUID": "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b",
+ "description": "Generated description for concept referred to by key \"TestContextItem003:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem004",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem004",
+ "version": "0.0.1"
+ },
+ "UUID": "093cda11-eaeb-3a46-a5b6-d5e30c00935b",
+ "description": "Generated description for concept referred to by key \"TestContextItem004:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem005",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem005",
+ "version": "0.0.1"
+ },
+ "UUID": "569a758d-ba40-37c0-aebb-7ad138df25ac",
+ "description": "Generated description for concept referred to by key \"TestContextItem005:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem006",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem006",
+ "version": "0.0.1"
+ },
+ "UUID": "252818d9-b61f-3962-a905-8865fb00fb04",
+ "description": "Generated description for concept referred to by key \"TestContextItem006:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem007",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem007",
+ "version": "0.0.1"
+ },
+ "UUID": "fe1a5f7c-c083-377b-a797-752b01fc6c73",
+ "description": "Generated description for concept referred to by key \"TestContextItem007:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem008",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem008",
+ "version": "0.0.1"
+ },
+ "UUID": "aa87d007-d07e-3f67-8c6d-0ebc3d85479d",
+ "description": "Generated description for concept referred to by key \"TestContextItem008:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem009",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem009",
+ "version": "0.0.1"
+ },
+ "UUID": "126e7a3a-11b6-3f88-9397-c21d8819f859",
+ "description": "Generated description for concept referred to by key \"TestContextItem009:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem00A",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem00A",
+ "version": "0.0.1"
+ },
+ "UUID": "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc",
+ "description": "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem00B",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem00B",
+ "version": "0.0.1"
+ },
+ "UUID": "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6",
+ "description": "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem00C",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem00C",
+ "version": "0.0.1"
+ },
+ "UUID": "32a2f355-77f3-3b25-ace6-7a9c5763a5ad",
+ "description": "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestDatatypes",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestDatatypes",
+ "version": "0.0.1"
+ },
+ "UUID": "3f95472c-973e-30e2-95f1-bf00cbef909a",
+ "description": "Generated description for concept referred to by key \"TestDatatypes:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestExternalContextItem",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestExternalContextItem",
+ "version": "0.0.1"
+ },
+ "UUID": "610dbbd4-9149-3b3c-9af4-819056f0e169",
+ "description": "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestGlobalContextItem",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestGlobalContextItem",
+ "version": "0.0.1"
+ },
+ "UUID": "07fa8f68-55f1-3fd0-81c1-749a379753a7",
+ "description": "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestPolicyContextItem",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestPolicyContextItem",
+ "version": "0.0.1"
+ },
+ "UUID": "d9c93cd1-539e-35c5-aaec-bb711ceb1251",
+ "description": "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "UUID": "683fe492-7eae-3ac7-9924-bb7850208d05",
+ "description": "Generated description for concept referred to by key \"TestSlogan:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "UUID": "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0",
+ "description": "Generated description for concept referred to by key \"TestTemperature:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "UUID": "97b73937-c344-33c0-924c-4d26b6449564",
+ "description": "Generated description for concept referred to by key \"TestTimestamp:0.0.1\""
+ }
+ }
+ ]
+ }
+ },
+ "policies": {
+ "key": {
+ "name": "Policies",
+ "version": "0.0.1"
+ },
+ "policyMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "Policy0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "Policy0",
+ "version": "0.0.1"
+ },
+ "template": "MEDA",
+ "state": {
+ "entry": [
+ {
+ "key": "Act",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Act"
+ },
+ "trigger": {
+ "name": "Event0003",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "Act_NULL",
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ },
+ "outgoingEvent": {
+ "name": "Event0004",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskSelectionLogic": {
+ "key": "TaskSelectionLigic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "Task_Act1",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "Task_Act0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Task_Act0_DIRECT_Act_NULL"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Task_Act1_DIRECT_Act_NULL"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Task_Act2_DIRECT_Act_NULL"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Task_Act3_DIRECT_Act_NULL"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "Decide",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Decide"
+ },
+ "trigger": {
+ "name": "Event0002",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "Decide_Act",
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ },
+ "outgoingEvent": {
+ "name": "Event0003",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Act"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskSelectionLogic": {
+ "key": "TaskSelectionLigic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "Task_Decide3",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "Task_Decide0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Task_Decide0_DIRECT_Decide_Act"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Task_Decide1_DIRECT_Decide_Act"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Task_Decide2_DIRECT_Decide_Act"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Task_Decide3_DIRECT_Decide_Act"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "Establish",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Establish"
+ },
+ "trigger": {
+ "name": "Event0001",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "Establish_Decide",
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ },
+ "outgoingEvent": {
+ "name": "Event0002",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Decide"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskSelectionLogic": {
+ "key": "TaskSelectionLigic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "Task_Establish2",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "Task_Establish0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Task_Establish0_DIRECT_Establish_Decide"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Task_Establish1_DIRECT_Establish_Decide"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Task_Establish2_DIRECT_Establish_Decide"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Task_Establish3_DIRECT_Establish_Decide"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "Match",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Match"
+ },
+ "trigger": {
+ "name": "Event0000",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "Match_Establish",
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ },
+ "outgoingEvent": {
+ "name": "Event0001",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Establish"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskSelectionLogic": {
+ "key": "TaskSelectionLigic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "Task_Match0",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "Task_Match0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Task_Match0_DIRECT_Match_Establish"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Task_Match1_DIRECT_Match_Establish"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Task_Match2_DIRECT_Match_Establish"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Task_Match3_DIRECT_Match_Establish"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "Match"
+ }
+ },
+ {
+ "key": {
+ "name": "Policy1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "Policy1",
+ "version": "0.0.1"
+ },
+ "template": "MEDA",
+ "state": {
+ "entry": [
+ {
+ "key": "Act",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Act"
+ },
+ "trigger": {
+ "name": "Event0103",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "Act_NULL",
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ },
+ "outgoingEvent": {
+ "name": "Event0104",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskSelectionLogic": {
+ "key": "TaskSelectionLigic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "Task_Act0",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "Task_Act0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Task_Act0_DIRECT_Act_NULL"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Task_Act1_DIRECT_Act_NULL"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Task_Act2_DIRECT_Act_NULL"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Task_Act3_DIRECT_Act_NULL"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Act",
+ "localName": "Act_NULL"
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "Decide",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Decide"
+ },
+ "trigger": {
+ "name": "Event0102",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "Decide_Act",
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ },
+ "outgoingEvent": {
+ "name": "Event0103",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Act"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskSelectionLogic": {
+ "key": "TaskSelectionLigic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "Task_Decide3",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "Task_Decide0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Task_Decide0_DIRECT_Decide_Act"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Task_Decide1_DIRECT_Decide_Act"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Task_Decide2_DIRECT_Decide_Act"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Task_Decide3_DIRECT_Decide_Act"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Decide",
+ "localName": "Decide_Act"
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "Establish",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Establish"
+ },
+ "trigger": {
+ "name": "Event0101",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "Establish_Decide",
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ },
+ "outgoingEvent": {
+ "name": "Event0102",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Decide"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskSelectionLogic": {
+ "key": "TaskSelectionLigic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "Task_Establish1",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "Task_Establish0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Task_Establish0_DIRECT_Establish_Decide"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Task_Establish1_DIRECT_Establish_Decide"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Task_Establish2_DIRECT_Establish_Decide"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Task_Establish3_DIRECT_Establish_Decide"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Establish",
+ "localName": "Establish_Decide"
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "Match",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Match"
+ },
+ "trigger": {
+ "name": "Event0100",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "Match_Establish",
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ },
+ "outgoingEvent": {
+ "name": "Event0101",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Establish"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskSelectionLogic": {
+ "key": "TaskSelectionLigic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "Task_Match3",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "Task_Match0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Task_Match0_DIRECT_Match_Establish"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Task_Match1_DIRECT_Match_Establish"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Task_Match2_DIRECT_Match_Establish"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Task_Match3_DIRECT_Match_Establish"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "Policy1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "Match",
+ "localName": "Match_Establish"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "Match"
+ }
+ }
+ ]
+ }
+ },
+ "tasks": {
+ "key": {
+ "name": "Tasks",
+ "version": "0.0.1"
+ },
+ "taskMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "Task_Act0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Act0",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestActCaseSelected",
+ "value": {
+ "key": "TestActCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestActStateTime",
+ "value": {
+ "key": "TestActStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Act0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ },
+ {
+ "key": "Parameter1",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Act0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter1"
+ },
+ "defaultValue": "DefaultValue1"
+ }
+ },
+ {
+ "key": "Parameter2",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Act0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter2"
+ },
+ "defaultValue": "DefaultValue2"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Act1",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestActCaseSelected",
+ "value": {
+ "key": "TestActCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestActStateTime",
+ "value": {
+ "key": "TestActStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Act1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ },
+ {
+ "key": "Parameter1",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Act1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter1"
+ },
+ "defaultValue": "DefaultValue1"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Act2",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestActCaseSelected",
+ "value": {
+ "key": "TestActCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestActStateTime",
+ "value": {
+ "key": "TestActStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Act2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Act3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Act3",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestActCaseSelected",
+ "value": {
+ "key": "TestActCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestActStateTime",
+ "value": {
+ "key": "TestActStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Act3",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Decide0",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Decide0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ },
+ {
+ "key": "Parameter1",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Decide0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter1"
+ },
+ "defaultValue": "DefaultValue1"
+ }
+ },
+ {
+ "key": "Parameter2",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Decide0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter2"
+ },
+ "defaultValue": "DefaultValue2"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Decide1",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Decide1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ },
+ {
+ "key": "Parameter1",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Decide1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter1"
+ },
+ "defaultValue": "DefaultValue1"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Decide2",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Decide2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Decide3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Decide3",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Decide3",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Establish0",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Establish0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ },
+ {
+ "key": "Parameter1",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Establish0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter1"
+ },
+ "defaultValue": "DefaultValue1"
+ }
+ },
+ {
+ "key": "Parameter2",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Establish0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter2"
+ },
+ "defaultValue": "DefaultValue2"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Establish1",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Establish1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ },
+ {
+ "key": "Parameter1",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Establish1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter1"
+ },
+ "defaultValue": "DefaultValue1"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Establish2",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Establish2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Establish3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Establish3",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Establish3",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match0",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Match0",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Match0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ },
+ {
+ "key": "Parameter1",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Match0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter1"
+ },
+ "defaultValue": "DefaultValue1"
+ }
+ },
+ {
+ "key": "Parameter2",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Match0",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter2"
+ },
+ "defaultValue": "DefaultValue2"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match1",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Match1",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Match1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ },
+ {
+ "key": "Parameter1",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Match1",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter1"
+ },
+ "defaultValue": "DefaultValue1"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match2",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Match2",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Match2",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Task_Match3",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Task_Match3",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": [
+ {
+ "key": "Parameter0",
+ "value": {
+ "key": {
+ "parentKeyName": "Task_Match3",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "Parameter0"
+ },
+ "defaultValue": "DefaultValue0"
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [
+ {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ }
+ ],
+ "taskLogic": {
+ "key": "_TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "events": {
+ "key": {
+ "name": "Events",
+ "version": "0.0.1"
+ },
+ "eventMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "Event0000",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0000",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Outside",
+ "target": "Match",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Event0001",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0001",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Match",
+ "target": "Establish",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Event0002",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0002",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Establish",
+ "target": "Decide",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Event0003",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0003",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Decide",
+ "target": "Act",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Event0004",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0004",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Act",
+ "target": "Outside",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestActCaseSelected",
+ "value": {
+ "key": "TestActCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestActStateTime",
+ "value": {
+ "key": "TestActStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Event0100",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0100",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Outside",
+ "target": "Match",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Event0101",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0101",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Match",
+ "target": "Establish",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Event0102",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0102",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Establish",
+ "target": "Decide",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Event0103",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0103",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Decide",
+ "target": "Act",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Event0104",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Event0104",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.sample.events",
+ "source": "Act",
+ "target": "Outside",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestActCaseSelected",
+ "value": {
+ "key": "TestActCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestActStateTime",
+ "value": {
+ "key": "TestActStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideCaseSelected",
+ "value": {
+ "key": "TestDecideCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestDecideStateTime",
+ "value": {
+ "key": "TestDecideStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishCaseSelected",
+ "value": {
+ "key": "TestEstablishCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestEstablishStateTime",
+ "value": {
+ "key": "TestEstablishStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCase",
+ "value": {
+ "key": "TestMatchCase",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchCaseSelected",
+ "value": {
+ "key": "TestMatchCaseSelected",
+ "fieldSchemaKey": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestMatchStateTime",
+ "value": {
+ "key": "TestMatchStateTime",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestSlogan",
+ "value": {
+ "key": "TestSlogan",
+ "fieldSchemaKey": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTemperature",
+ "value": {
+ "key": "TestTemperature",
+ "fieldSchemaKey": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ },
+ {
+ "key": "TestTimestamp",
+ "value": {
+ "key": "TestTimestamp",
+ "fieldSchemaKey": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ },
+ "albums": {
+ "key": {
+ "name": "Context",
+ "version": "0.0.1"
+ },
+ "albums": {
+ "entry": [
+ {
+ "key": {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "ExternalContextAlbum",
+ "version": "0.0.1"
+ },
+ "scope": "EXTERNAL",
+ "isWritable": false,
+ "itemSchema": {
+ "name": "TestExternalContextItem",
+ "version": "0.0.1"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "GlobalContextAlbum",
+ "version": "0.0.1"
+ },
+ "scope": "GLOBAL",
+ "isWritable": true,
+ "itemSchema": {
+ "name": "TestGlobalContextItem",
+ "version": "0.0.1"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Policy0ContextAlbum",
+ "version": "0.0.1"
+ },
+ "scope": "APPLICATION",
+ "isWritable": true,
+ "itemSchema": {
+ "name": "TestPolicyContextItem",
+ "version": "0.0.1"
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "Policy1ContextAlbum",
+ "version": "0.0.1"
+ },
+ "scope": "APPLICATION",
+ "isWritable": true,
+ "itemSchema": {
+ "name": "TestPolicyContextItem",
+ "version": "0.0.1"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "schemas": {
+ "key": {
+ "name": "TestDatatypes",
+ "version": "0.0.1"
+ },
+ "schemas": {
+ "entry": [
+ {
+ "key": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestCase",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.Byte"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem000",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem000",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem000"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem001",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem001",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem001"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem002",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem002",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem002"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem003",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem003",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem003"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem004",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem004",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem004"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem005",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem005",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem005"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem006",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem006",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem006"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem007",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem007",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem007"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem008",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem008",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem008"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem009",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem009",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem009"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem00A",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem00A",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00A"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem00B",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem00B",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00B"
+ }
+ },
+ {
+ "key": {
+ "name": "TestContextItem00C",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestContextItem00C",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00C"
+ }
+ },
+ {
+ "key": {
+ "name": "TestExternalContextItem",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestExternalContextItem",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestExternalContextItem"
+ }
+ },
+ {
+ "key": {
+ "name": "TestGlobalContextItem",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestGlobalContextItem",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem"
+ }
+ },
+ {
+ "key": {
+ "name": "TestPolicyContextItem",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestPolicyContextItem",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem"
+ }
+ },
+ {
+ "key": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestSlogan",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.String"
+ }
+ },
+ {
+ "key": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestTemperature",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.Double"
+ }
+ },
+ {
+ "key": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestTimestamp",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "java.lang.Long"
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters",
+ "parameters": {
+ "standalone": true,
+ "host": "0.0.0.0",
+ "port": 23324
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstProducer",
+ "synchronousTimeout": 2000
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstConsumer",
+ "synchronousTimeout": 2000
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/csit/resources/tests/data/onap.policy.guard.decision.request.json b/csit/resources/tests/data/onap.policy.guard.decision.request.json
new file mode 100644
index 00000000..ee90feaa
--- /dev/null
+++ b/csit/resources/tests/data/onap.policy.guard.decision.request.json
@@ -0,0 +1,16 @@
+{
+ "ONAPName": "Guard",
+ "ONAPComponent": "Guard-component",
+ "ONAPInstance": "Guard-component-instance",
+ "requestId": "unique-request-guard-1",
+ "action": "guard",
+ "resource": {
+ "guard": {
+ "actor": "APPC",
+ "operation": "ModifyConfig",
+ "target": "f17face5-69cb-4c88-9e0b-7426db7edddd",
+ "requestId": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a65",
+ "clname": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
+ }
+ }
+}
diff --git a/csit/resources/tests/data/onap.policy.monitoring.decision.request.json b/csit/resources/tests/data/onap.policy.monitoring.decision.request.json
new file mode 100644
index 00000000..053fa36d
--- /dev/null
+++ b/csit/resources/tests/data/onap.policy.monitoring.decision.request.json
@@ -0,0 +1,9 @@
+{
+ "ONAPName": "DCAE",
+ "ONAPComponent": "PolicyHandler",
+ "ONAPInstance": "622431a4-9dea-4eae-b443-3b2164639c64",
+ "action": "configure",
+ "resource": {
+ "policy-id": "onap.restart.tca"
+ }
+}
diff --git a/csit/resources/tests/data/onap.policy.monitoring.tcagen2.v1.json b/csit/resources/tests/data/onap.policy.monitoring.tcagen2.v1.json
new file mode 100644
index 00000000..a2e2ddc9
--- /dev/null
+++ b/csit/resources/tests/data/onap.policy.monitoring.tcagen2.v1.json
@@ -0,0 +1,211 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "policy_types": {
+ "onap.policies.Monitoring": {
+ "derived_from": "tosca.policies.Root",
+ "version": "1.0.0",
+ "description": "a base policy type for all policies that governs monitoring provisioning"
+ },
+ "onap.policies.monitoring.tcagen2": {
+ "derived_from": "onap.policies.Monitoring",
+ "version": "1.0.0",
+ "properties": {
+ "tca.policy": {
+ "type": "onap.datatypes.monitoring.tca_policy",
+ "description": "TCA Policy JSON"
+ }
+ }
+ }
+ },
+ "data_types": {
+ "onap.datatypes.monitoring.metricsPerEventName": {
+ "derived_from": "tosca.datatypes.Root",
+ "properties": {
+ "controlLoopSchemaType": {
+ "type": "string",
+ "required": true,
+ "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
+ "constraints": [
+ {
+ "valid_values": [
+ "VM",
+ "VNF"
+ ]
+ }
+ ]
+ },
+ "eventName": {
+ "type": "string",
+ "required": true,
+ "description": "Event name to which thresholds need to be applied"
+ },
+ "policyName": {
+ "type": "string",
+ "required": true,
+ "description": "TCA Policy Scope Name"
+ },
+ "policyScope": {
+ "type": "string",
+ "required": true,
+ "description": "TCA Policy Scope"
+ },
+ "policyVersion": {
+ "type": "string",
+ "required": true,
+ "description": "TCA Policy Scope Version"
+ },
+ "thresholds": {
+ "type": "list",
+ "required": true,
+ "description": "Thresholds associated with eventName",
+ "entry_schema": {
+ "type": "onap.datatypes.monitoring.thresholds"
+ }
+ }
+ }
+ },
+ "onap.datatypes.monitoring.tca_policy": {
+ "derived_from": "tosca.datatypes.Root",
+ "properties": {
+ "domain": {
+ "type": "string",
+ "required": true,
+ "description": "Domain name to which TCA needs to be applied",
+ "default": "measurementsForVfScaling",
+ "constraints": [
+ {
+ "equal": "measurementsForVfScaling"
+ }
+ ]
+ },
+ "metricsPerEventName": {
+ "type": "list",
+ "required": true,
+ "description": "Contains eventName and threshold details that need to be applied to given eventName",
+ "entry_schema": {
+ "type": "onap.datatypes.monitoring.metricsPerEventName"
+ }
+ }
+ }
+ },
+ "onap.datatypes.monitoring.thresholds": {
+ "derived_from": "tosca.datatypes.Root",
+ "properties": {
+ "closedLoopControlName": {
+ "type": "string",
+ "required": true,
+ "description": "Closed Loop Control Name associated with the threshold"
+ },
+ "closedLoopEventStatus": {
+ "type": "string",
+ "required": true,
+ "description": "Closed Loop Event Status of the threshold",
+ "constraints": [
+ {
+ "valid_values": [
+ "ONSET",
+ "ABATED"
+ ]
+ }
+ ]
+ },
+ "direction": {
+ "type": "string",
+ "required": true,
+ "description": "Direction of the threshold",
+ "constraints": [
+ {
+ "valid_values": [
+ "LESS",
+ "LESS_OR_EQUAL",
+ "GREATER",
+ "GREATER_OR_EQUAL",
+ "EQUAL"
+ ]
+ }
+ ]
+ },
+ "fieldPath": {
+ "type": "string",
+ "required": true,
+ "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
+ "constraints": [
+ {
+ "valid_values": [
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
+ "$.event.measurementsForVfScalingFields.meanRequestLatency",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
+ ]
+ }
+ ]
+ },
+ "severity": {
+ "type": "string",
+ "required": true,
+ "description": "Threshold Event Severity",
+ "constraints": [
+ {
+ "valid_values": [
+ "CRITICAL",
+ "MAJOR",
+ "MINOR",
+ "WARNING",
+ "NORMAL"
+ ]
+ }
+ ]
+ },
+ "thresholdValue": {
+ "type": "integer",
+ "required": true,
+ "description": "Threshold value for the field Path inside CEF message"
+ },
+ "version": {
+ "type": "string",
+ "required": true,
+ "description": "Version number associated with the threshold"
+ }
+ }
+ }
+ }
+}
diff --git a/csit/resources/tests/data/onap.policy.monitoring.tcagen2.v2.json b/csit/resources/tests/data/onap.policy.monitoring.tcagen2.v2.json
new file mode 100644
index 00000000..d86749ef
--- /dev/null
+++ b/csit/resources/tests/data/onap.policy.monitoring.tcagen2.v2.json
@@ -0,0 +1,206 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "policy_types": {
+ "onap.policies.monitoring.tcagen2": {
+ "derived_from": "onap.policies.Monitoring",
+ "version": "2.0.0",
+ "properties": {
+ "tca.policy": {
+ "type": "onap.datatypes.monitoring.tca_policy",
+ "description": "TCA Policy JSON"
+ }
+ }
+ }
+ },
+ "data_types": {
+ "onap.datatypes.monitoring.metricsPerEventName": {
+ "derived_from": "tosca.datatypes.Root",
+ "properties": {
+ "controlLoopSchemaType": {
+ "type": "string",
+ "required": true,
+ "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
+ "constraints": [
+ {
+ "valid_values": [
+ "VM",
+ "VNF"
+ ]
+ }
+ ]
+ },
+ "eventName": {
+ "type": "string",
+ "required": true,
+ "description": "Event name to which thresholds need to be applied"
+ },
+ "policyName": {
+ "type": "string",
+ "required": true,
+ "description": "TCA Policy Scope Name"
+ },
+ "policyScope": {
+ "type": "string",
+ "required": true,
+ "description": "TCA Policy Scope"
+ },
+ "policyVersion": {
+ "type": "string",
+ "required": true,
+ "description": "TCA Policy Scope Version"
+ },
+ "thresholds": {
+ "type": "list",
+ "required": true,
+ "description": "Thresholds associated with eventName",
+ "entry_schema": {
+ "type": "onap.datatypes.monitoring.thresholds"
+ }
+ }
+ }
+ },
+ "onap.datatypes.monitoring.tca_policy": {
+ "derived_from": "tosca.datatypes.Root",
+ "properties": {
+ "domain": {
+ "type": "string",
+ "required": true,
+ "description": "Domain name to which TCA needs to be applied",
+ "default": "measurementsForVfScaling",
+ "constraints": [
+ {
+ "equal": "measurementsForVfScaling"
+ }
+ ]
+ },
+ "metricsPerEventName": {
+ "type": "list",
+ "required": true,
+ "description": "Contains eventName and threshold details that need to be applied to given eventName",
+ "entry_schema": {
+ "type": "onap.datatypes.monitoring.metricsPerEventName"
+ }
+ }
+ }
+ },
+ "onap.datatypes.monitoring.thresholds": {
+ "derived_from": "tosca.datatypes.Root",
+ "properties": {
+ "closedLoopControlName": {
+ "type": "string",
+ "required": true,
+ "description": "Closed Loop Control Name associated with the threshold"
+ },
+ "closedLoopEventStatus": {
+ "type": "string",
+ "required": true,
+ "description": "Closed Loop Event Status of the threshold",
+ "constraints": [
+ {
+ "valid_values": [
+ "ONSET",
+ "ABATED"
+ ]
+ }
+ ]
+ },
+ "direction": {
+ "type": "string",
+ "required": true,
+ "description": "Direction of the threshold",
+ "constraints": [
+ {
+ "valid_values": [
+ "LESS",
+ "LESS_OR_EQUAL",
+ "GREATER",
+ "GREATER_OR_EQUAL",
+ "EQUAL"
+ ]
+ }
+ ]
+ },
+ "fieldPath": {
+ "type": "string",
+ "required": true,
+ "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
+ "constraints": [
+ {
+ "valid_values": [
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
+ "$.event.measurementsForVfScalingFields.meanRequestLatency",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
+ ]
+ }
+ ]
+ },
+ "severity": {
+ "type": "string",
+ "required": true,
+ "description": "Threshold Event Severity",
+ "constraints": [
+ {
+ "valid_values": [
+ "CRITICAL",
+ "MAJOR",
+ "MINOR",
+ "WARNING",
+ "NORMAL"
+ ]
+ }
+ ]
+ },
+ "thresholdValue": {
+ "type": "integer",
+ "required": true,
+ "description": "Threshold value for the field Path inside CEF message"
+ },
+ "version": {
+ "type": "string",
+ "required": true,
+ "description": "Version number associated with the threshold"
+ }
+ }
+ }
+ }
+}
diff --git a/csit/resources/tests/data/onap.policy.monitoring.tcagen2.v3.json b/csit/resources/tests/data/onap.policy.monitoring.tcagen2.v3.json
new file mode 100644
index 00000000..1767c508
--- /dev/null
+++ b/csit/resources/tests/data/onap.policy.monitoring.tcagen2.v3.json
@@ -0,0 +1,206 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "policy_types": {
+ "onap.policies.monitoring.tcagen2": {
+ "derived_from": "onap.policies.Monitoring",
+ "version": "3.0.0",
+ "properties": {
+ "tca.policy": {
+ "type": "onap.datatypes.monitoring.tca_policy",
+ "description": "TCA Policy JSON"
+ }
+ }
+ }
+ },
+ "data_types": {
+ "onap.datatypes.monitoring.metricsPerEventName": {
+ "derived_from": "tosca.datatypes.Root",
+ "properties": {
+ "controlLoopSchemaType": {
+ "type": "string",
+ "required": true,
+ "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
+ "constraints": [
+ {
+ "valid_values": [
+ "VM",
+ "VNF"
+ ]
+ }
+ ]
+ },
+ "eventName": {
+ "type": "string",
+ "required": true,
+ "description": "Event name to which thresholds need to be applied"
+ },
+ "policyName": {
+ "type": "string",
+ "required": true,
+ "description": "TCA Policy Scope Name"
+ },
+ "policyScope": {
+ "type": "string",
+ "required": true,
+ "description": "TCA Policy Scope"
+ },
+ "policyVersion": {
+ "type": "string",
+ "required": true,
+ "description": "TCA Policy Scope Version"
+ },
+ "thresholds": {
+ "type": "list",
+ "required": true,
+ "description": "Thresholds associated with eventName",
+ "entry_schema": {
+ "type": "onap.datatypes.monitoring.thresholds"
+ }
+ }
+ }
+ },
+ "onap.datatypes.monitoring.tca_policy": {
+ "derived_from": "tosca.datatypes.Root",
+ "properties": {
+ "domain": {
+ "type": "string",
+ "required": true,
+ "description": "Domain name to which TCA needs to be applied",
+ "default": "measurementsForVfScaling",
+ "constraints": [
+ {
+ "equal": "measurementsForVfScaling"
+ }
+ ]
+ },
+ "metricsPerEventName": {
+ "type": "list",
+ "required": true,
+ "description": "Contains eventName and threshold details that need to be applied to given eventName",
+ "entry_schema": {
+ "type": "onap.datatypes.monitoring.metricsPerEventName"
+ }
+ }
+ }
+ },
+ "onap.datatypes.monitoring.thresholds": {
+ "derived_from": "tosca.datatypes.Root",
+ "properties": {
+ "closedLoopControlName": {
+ "type": "string",
+ "required": true,
+ "description": "Closed Loop Control Name associated with the threshold"
+ },
+ "closedLoopEventStatus": {
+ "type": "string",
+ "required": true,
+ "description": "Closed Loop Event Status of the threshold",
+ "constraints": [
+ {
+ "valid_values": [
+ "ONSET",
+ "ABATED"
+ ]
+ }
+ ]
+ },
+ "direction": {
+ "type": "string",
+ "required": true,
+ "description": "Direction of the threshold",
+ "constraints": [
+ {
+ "valid_values": [
+ "LESS",
+ "LESS_OR_EQUAL",
+ "GREATER",
+ "GREATER_OR_EQUAL",
+ "EQUAL"
+ ]
+ }
+ ]
+ },
+ "fieldPath": {
+ "type": "string",
+ "required": true,
+ "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
+ "constraints": [
+ {
+ "valid_values": [
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
+ "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
+ "$.event.measurementsForVfScalingFields.meanRequestLatency",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
+ "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
+ ]
+ }
+ ]
+ },
+ "severity": {
+ "type": "string",
+ "required": true,
+ "description": "Threshold Event Severity",
+ "constraints": [
+ {
+ "valid_values": [
+ "CRITICAL",
+ "MAJOR",
+ "MINOR",
+ "WARNING",
+ "NORMAL"
+ ]
+ }
+ ]
+ },
+ "thresholdValue": {
+ "type": "integer",
+ "required": true,
+ "description": "Threshold value for the field Path inside CEF message"
+ },
+ "version": {
+ "type": "string",
+ "required": true,
+ "description": "Version number associated with the threshold"
+ }
+ }
+ }
+ }
+}
diff --git a/csit/resources/tests/data/onap.policy.naming.decision.request.json b/csit/resources/tests/data/onap.policy.naming.decision.request.json
new file mode 100644
index 00000000..3833a241
--- /dev/null
+++ b/csit/resources/tests/data/onap.policy.naming.decision.request.json
@@ -0,0 +1,13 @@
+{
+ "ONAPName": "SDNC",
+ "ONAPComponent": "SDNC-component",
+ "ONAPInstance": "SDNC-component-instance",
+ "requestId": "unique-request-sdnc-1",
+ "action": "naming",
+ "resource": {
+ "nfRole": [],
+ "naming-type": [],
+ "property-name": [],
+ "policy-type": ["onap.policies.Naming"]
+ }
+}
diff --git a/csit/resources/tests/data/onap.policy.optimization.decision.request.json b/csit/resources/tests/data/onap.policy.optimization.decision.request.json
new file mode 100644
index 00000000..d997099c
--- /dev/null
+++ b/csit/resources/tests/data/onap.policy.optimization.decision.request.json
@@ -0,0 +1,15 @@
+{
+ "ONAPName": "OOF",
+ "ONAPComponent": "OOF-component",
+ "ONAPInstance": "OOF-component-instance",
+ "context" : {
+ "subscriberName": []
+ },
+ "action": "optimize",
+ "resource": {
+ "scope": [],
+ "services": [],
+ "resources": [],
+ "geography": []
+ }
+}
diff --git a/csit/resources/tests/data/onset.sh b/csit/resources/tests/data/onset.sh
new file mode 100755
index 00000000..42b0cdec
--- /dev/null
+++ b/csit/resources/tests/data/onset.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+# ===========LICENSE_START====================================================
+# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
+# Modifications Copyright (C) 2022-2023 Nordix Foundation.
+# ============================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=====================================================
+#
+
+#
+# Injects an ONSET event on the DCAE_CL_OUTPUT topic.
+#
+
+if [ $# -ne 1 ]
+then
+ echo "arg(s): json-message-file-name" >&2
+ exit 1
+fi
+
+curl -k -H "Content-type: application/json" --data-binary @$1 \
+ http://${DMAAP_IP}/events/unauthenticated.DCAE_CL_OUTPUT
+echo
diff --git a/csit/resources/tests/data/policy_deploy.json b/csit/resources/tests/data/policy_deploy.json
new file mode 100644
index 00000000..e13f06ad
--- /dev/null
+++ b/csit/resources/tests/data/policy_deploy.json
@@ -0,0 +1,17 @@
+{
+ "groups": [
+ {
+ "name": "defaultGroup",
+ "deploymentSubgroups": [
+ {
+ "pdpType": "apex",
+ "action": "POST",
+ "policies": [{
+ "name": "{policyName}",
+ "version": "1.0.0"
+ }]
+ }
+ ]
+ }
+ ]
+}
diff --git a/csit/resources/tests/data/vCPE.policy.input.tosca.deploy.json b/csit/resources/tests/data/vCPE.policy.input.tosca.deploy.json
new file mode 100644
index 00000000..7ace047b
--- /dev/null
+++ b/csit/resources/tests/data/vCPE.policy.input.tosca.deploy.json
@@ -0,0 +1,5 @@
+{"policies":[
+ {"policy-id":"onap.restart.tca"},
+ {"policy-id":"OSDF_CASABLANCA.Affinity_Default"}
+ ]
+}
diff --git a/csit/resources/tests/data/vcpeOnset.json b/csit/resources/tests/data/vcpeOnset.json
new file mode 100644
index 00000000..7dd9d5a0
--- /dev/null
+++ b/csit/resources/tests/data/vcpeOnset.json
@@ -0,0 +1,16 @@
+{
+ "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
+ "closedLoopAlarmStart": 1463679805324,
+ "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
+ "closedLoopEventStatus": "ONSET",
+ "requestID": "664be3d2-6c12-4f4b-a3e7-c349acced200",
+ "target_type": "VNF",
+ "target": "generic-vnf.vnf-id",
+ "AAI": {
+ "vserver.is-closed-loop-disabled": "false",
+ "vserver.prov-status": "ACTIVE",
+ "generic-vnf.vnf-id": "vCPE_Infrastructure_vGMUX_demo_app"
+ },
+ "from": "DCAE",
+ "version": "1.0.2"
+}
diff --git a/csit/resources/tests/data/vdnsOnset.json b/csit/resources/tests/data/vdnsOnset.json
new file mode 100644
index 00000000..13f69095
--- /dev/null
+++ b/csit/resources/tests/data/vdnsOnset.json
@@ -0,0 +1,16 @@
+{
+ "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
+ "closedLoopAlarmStart": 1463679805324,
+ "closedLoopEventClient": "microservice.stringmatcher",
+ "closedLoopEventStatus": "ONSET",
+ "requestID": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a65",
+ "target_type": "VNF",
+ "target": "vserver.vserver-name",
+ "AAI": {
+ "vserver.is-closed-loop-disabled": "false",
+ "vserver.prov-status": "ACTIVE",
+ "vserver.vserver-name": "OzVServer"
+ },
+ "from": "DCAE",
+ "version": "1.0.2"
+}
diff --git a/csit/resources/tests/data/vfwOnset.json b/csit/resources/tests/data/vfwOnset.json
new file mode 100644
index 00000000..7782867a
--- /dev/null
+++ b/csit/resources/tests/data/vfwOnset.json
@@ -0,0 +1,17 @@
+{
+ "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
+ "closedLoopAlarmStart": 1463679805324,
+ "closedLoopEventClient": "microservice.stringmatcher",
+ "closedLoopEventStatus": "ONSET",
+ "requestID": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a65",
+ "target_type": "VNF",
+ "target": "generic-vnf.vnf-name",
+ "AAI": {
+ "vserver.is-closed-loop-disabled": "false",
+ "vserver.prov-status": "ACTIVE",
+ "generic-vnf.vnf-name": "fw0002vm002fw002",
+ "vserver.vserver-name": "OzVServer"
+ },
+ "from": "DCAE",
+ "version": "1.0.2"
+}
diff --git a/csit/resources/tests/data/wait_topic.sh b/csit/resources/tests/data/wait_topic.sh
new file mode 100755
index 00000000..a632ee83
--- /dev/null
+++ b/csit/resources/tests/data/wait_topic.sh
@@ -0,0 +1,62 @@
+#!/bin/bash
+#
+# ===========LICENSE_START====================================================
+# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
+# Modifications Copyright (C) 2022-2023 Nordix Foundation.
+# ============================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=====================================================
+#
+
+#
+# Polls a topic for a message. Additional text items can be specified,
+# in which case, it discards messages that do not contain all of the
+# specified text items.
+#
+# Exits with a non-zero status if no matching message is received on the
+# topic before the timeout.
+#
+
+if [ $# -lt 1 ]
+then
+ echo "arg(s): topic-name [text-to-match1 [text-to-match2 ...]]" >&2
+ exit 1
+fi
+
+topic="${1}"
+shift
+
+matched=no
+
+while [ ${matched} = "no" ]
+do
+ msg=`curl -s -k "http://${DMAAP_IP}/events/${topic}/script/1?limit=1"`
+ if [ $? -ne 0 -o "${msg}" = "[]" ]
+ then
+ echo not found >&2
+ exit 2
+ fi
+
+ matched=yes
+ for text in "$@"
+ do
+ echo "${msg}" | grep -q "${text}"
+ if [ $? -ne 0 ]
+ then
+ matched=no
+ break
+ fi
+ done
+done
+
+echo "${msg}"