summaryrefslogtreecommitdiffstats
path: root/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json')
-rw-r--r--testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json4557
1 files changed, 0 insertions, 4557 deletions
diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json b/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json
deleted file mode 100644
index 4a8c92f98..000000000
--- a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json
+++ /dev/null
@@ -1,4557 +0,0 @@
-{
- "apexPolicyModel": {
- "key": {
- "name": "VPNPolicyModelJava",
- "version": "0.0.1"
- },
- "keyInformation": {
- "key": {
- "name": "VPNKeyInformation",
- "version": "0.0.1"
- },
- "keyInfoMap": {
- "entry": [
- {
- "key": {
- "name": "Action",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Action",
- "version": "0.0.1"
- },
- "UUID": "fecbf45a-8559-3ba8-be95-c773d8277912",
- "description": "Generated description for concept referred to by key \"Action:0.0.1\""
- }
- },
- {
- "key": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "UUID": "a076b82b-2843-310c-b6a5-a89da296caf7",
- "description": "Generated description for concept referred to by key \"AffectedCustomers:0.0.1\""
- }
- },
- {
- "key": {
- "name": "CustomerMap",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "CustomerMap",
- "version": "0.0.1"
- },
- "UUID": "cc403e79-bf85-3bdc-83dc-86a1ff45abed",
- "description": "Generated description for concept referred to by key \"CustomerMap:0.0.1\""
- }
- },
- {
- "key": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "UUID": "638a87b0-2040-3ab7-8d1f-3877f6efb250",
- "description": "Generated description for concept referred to by key \"CustomerName:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Link",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Link",
- "version": "0.0.1"
- },
- "UUID": "0e3b3a57-fa0a-3b0d-ad18-0322d1a515f0",
- "description": "Generated description for concept referred to by key \"Link:0.0.1\""
- }
- },
- {
- "key": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "UUID": "ec38833a-7f3e-3733-b38b-eb7ecc9e60ca",
- "description": "Generated description for concept referred to by key \"LinkList:0.0.1\""
- }
- },
- {
- "key": {
- "name": "LinkMap",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "LinkMap",
- "version": "0.0.1"
- },
- "UUID": "5eceb73f-c951-360a-afb4-ca7a5376f8a9",
- "description": "Generated description for concept referred to by key \"LinkMap:0.0.1\""
- }
- },
- {
- "key": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "UUID": "2b9935ab-9b97-3228-ba43-ae48d7743c9f",
- "description": "Generated description for concept referred to by key \"LinkUp:0.0.1\""
- }
- },
- {
- "key": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "UUID": "b26602d0-53cb-357c-aa3a-bd53325c7208",
- "description": "Generated description for concept referred to by key \"ProblemStatus:0.0.1\""
- }
- },
- {
- "key": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "UUID": "c8a76dcf-d322-3a01-9d4b-c2d9a01359aa",
- "description": "Generated description for concept referred to by key \"SlaDT:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Status",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Status",
- "version": "0.0.1"
- },
- "UUID": "32a032cd-923a-3578-a232-d3ce88434b45",
- "description": "Generated description for concept referred to by key \"Status:0.0.1\""
- }
- },
- {
- "key": {
- "name": "StatusChanged",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "StatusChanged",
- "version": "0.0.1"
- },
- "UUID": "af0da9d9-a2bd-387c-a441-66a0b0a0f434",
- "description": "Generated description for concept referred to by key \"StatusChanged:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNActEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNActEvent",
- "version": "0.0.1"
- },
- "UUID": "8c285b89-7102-37b1-aa1b-86d080df0aa9",
- "description": "Generated description for concept referred to by key \"VPNActEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNActTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNActTask",
- "version": "0.0.1"
- },
- "UUID": "a83d78d1-b3b0-3742-85e4-25364bdbae1f",
- "description": "Generated description for concept referred to by key \"VPNActTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNContext",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNContext",
- "version": "0.0.1"
- },
- "UUID": "ab3caa58-6748-373d-a6b9-08528951c261",
- "description": "Generated description for concept referred to by key \"VPNContext:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomer",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomer",
- "version": "0.0.1"
- },
- "UUID": "3c987f55-b978-3e32-9858-4b1978594bf3",
- "description": "Generated description for concept referred to by key \"VPNCustomer:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- "UUID": "9d8d7a8b-13f8-3e7f-a34c-8ce5bb988290",
- "description": "Generated description for concept referred to by key \"VPNCustomerAlbum:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtActEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtActEvent",
- "version": "0.0.1"
- },
- "UUID": "dc6fef76-6014-392f-b017-116bc9a35249",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtActEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtActTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtActTask",
- "version": "0.0.1"
- },
- "UUID": "2c9f5fb2-3fda-329a-bf81-9bbe72c0b39c",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtActTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtDecideEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtDecideEvent",
- "version": "0.0.1"
- },
- "UUID": "9e86afcd-a764-3645-afdd-0fe373c2f9d0",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtDecideEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtDecideTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtDecideTask",
- "version": "0.0.1"
- },
- "UUID": "7c033835-24e5-302b-a2e7-1f357f4a49da",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtDecideTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "UUID": "6767849e-b884-3de3-a9de-49ec21d1653a",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtEstablishEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtEstablishTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtEstablishTask",
- "version": "0.0.1"
- },
- "UUID": "8d267e4f-a8b3-3ec1-9e00-4fe49c4824ac",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtEstablishTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtMatchEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtMatchEvent",
- "version": "0.0.1"
- },
- "UUID": "3113d098-5f5d-30b1-91ad-24006aca60b3",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtMatchEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtMatchTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtMatchTask",
- "version": "0.0.1"
- },
- "UUID": "f7381ce6-2df0-3123-bc4d-fdb28ec0b0b4",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtMatchTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtPolicy",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtPolicy",
- "version": "0.0.1"
- },
- "UUID": "51645b2f-19ab-3792-8088-a2b0eab9a75b",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtPolicy:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "UUID": "dd7ea64d-863e-3194-8eee-e4aab7af1454",
- "description": "Generated description for concept referred to by key \"VPNCustomerCtxtTriggerEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNDatatypes",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDatatypes",
- "version": "0.0.1"
- },
- "UUID": "45ec61a2-39c6-3544-9d48-49e29b60daa7",
- "description": "Generated description for concept referred to by key \"VPNDatatypes:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNDecideEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecideEvent",
- "version": "0.0.1"
- },
- "UUID": "c8721fa3-ff74-3222-b2e4-9824b8daf7bb",
- "description": "Generated description for concept referred to by key \"VPNDecideEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNDecidePriorityTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecidePriorityTask",
- "version": "0.0.1"
- },
- "UUID": "cb2a893a-7719-3208-9952-a3fa3565cbb4",
- "description": "Generated description for concept referred to by key \"VPNDecidePriorityTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNDecideSLATask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecideSLATask",
- "version": "0.0.1"
- },
- "UUID": "bef3b2b0-5575-3b50-a1bc-dd05541cb800",
- "description": "Generated description for concept referred to by key \"VPNDecideSLATask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNDecideSolvedTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecideSolvedTask",
- "version": "0.0.1"
- },
- "UUID": "137f8cd1-0f33-3c03-88a5-d0408fe0c26a",
- "description": "Generated description for concept referred to by key \"VPNDecideSolvedTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNDecideTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecideTask",
- "version": "0.0.1"
- },
- "UUID": "dc647231-a4d6-307e-bd42-d32fa0a2c2c5",
- "description": "Generated description for concept referred to by key \"VPNDecideTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNEstablishEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNEstablishEvent",
- "version": "0.0.1"
- },
- "UUID": "a5ec4ca5-b0ce-3098-afc2-61de501e35bd",
- "description": "Generated description for concept referred to by key \"VPNEstablishEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNEstablishTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNEstablishTask",
- "version": "0.0.1"
- },
- "UUID": "e5b00ad5-92d8-3ffc-93e0-ddd1c02e584f",
- "description": "Generated description for concept referred to by key \"VPNEstablishTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNEvents",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNEvents",
- "version": "0.0.1"
- },
- "UUID": "07c2931d-9011-3d85-bca6-c10d43856f60",
- "description": "Generated description for concept referred to by key \"VPNEvents:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNKeyInformation",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNKeyInformation",
- "version": "0.0.1"
- },
- "UUID": "c2516499-a76d-3526-a6ee-d1d93c598931",
- "description": "Generated description for concept referred to by key \"VPNKeyInformation:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLink",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLink",
- "version": "0.0.1"
- },
- "UUID": "27e97f3a-8b39-3ae7-ac26-af9370cccd43",
- "description": "Generated description for concept referred to by key \"VPNLink:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- "UUID": "5a234e2d-9efd-336f-b26d-1f909cdb44be",
- "description": "Generated description for concept referred to by key \"VPNLinkAlbum:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtActEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtActEvent",
- "version": "0.0.1"
- },
- "UUID": "20fa2bc5-366a-3127-bbbf-c3408e30196d",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtActEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtActTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtActTask",
- "version": "0.0.1"
- },
- "UUID": "63d61114-538c-3c02-8bc6-d0214dc09824",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtActTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtDecideEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtDecideEvent",
- "version": "0.0.1"
- },
- "UUID": "42ecba03-b4cb-3a8f-8c0b-cc63da5eb28a",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtDecideEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtDecideTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtDecideTask",
- "version": "0.0.1"
- },
- "UUID": "ade15880-f26b-32fe-accc-58016cc8bdc5",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtDecideTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "UUID": "6e10e999-4c93-34b2-8723-434a47e80d24",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtEstablishEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtEstablishTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtEstablishTask",
- "version": "0.0.1"
- },
- "UUID": "b3e9531b-162c-3b07-b47f-4013380e59e8",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtEstablishTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtMatchEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtMatchEvent",
- "version": "0.0.1"
- },
- "UUID": "fc2a579b-2424-3a20-9e48-b7fcc72259a7",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtMatchEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtMatchTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtMatchTask",
- "version": "0.0.1"
- },
- "UUID": "48c628d8-d660-37ec-8d24-c17c46ad3109",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtMatchTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtPolicy",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtPolicy",
- "version": "0.0.1"
- },
- "UUID": "d3818863-91dc-3ed6-9087-c4cd76707003",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtPolicy:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "UUID": "7af8f4e2-c662-3ccf-a77a-6dd2aafdd773",
- "description": "Generated description for concept referred to by key \"VPNLinkCtxtTriggerEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNMatchEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNMatchEvent",
- "version": "0.0.1"
- },
- "UUID": "e9a25835-f032-3f6f-ae01-8b043cae3680",
- "description": "Generated description for concept referred to by key \"VPNMatchEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNMatchTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNMatchTask",
- "version": "0.0.1"
- },
- "UUID": "e5eb173b-18fd-34d2-924c-d4bc00979e86",
- "description": "Generated description for concept referred to by key \"VPNMatchTask:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNPolicies",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNPolicies",
- "version": "0.0.1"
- },
- "UUID": "1b333371-46d0-3ae7-9da9-d2f7b3525fbc",
- "description": "Generated description for concept referred to by key \"VPNPolicies:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNPolicy",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNPolicy",
- "version": "0.0.1"
- },
- "UUID": "5c1491a5-01ae-37cd-aa57-7aac775b6f56",
- "description": "Generated description for concept referred to by key \"VPNPolicy:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNPolicyModelJava",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNPolicyModelJava",
- "version": "0.0.1"
- },
- "UUID": "39d0dbe2-5fc1-3171-b429-551c25d92003",
- "description": "Generated description for concept referred to by key \"VPNPolicyModelJava:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNProblem",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNProblem",
- "version": "0.0.1"
- },
- "UUID": "0bcf2824-9a3a-394b-981f-1b6b51982a9f",
- "description": "Generated description for concept referred to by key \"VPNProblem:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- },
- "UUID": "ea4e8801-7391-3cb4-a93a-1dfd51ec392c",
- "description": "Generated description for concept referred to by key \"VPNProblemAlbum:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNTasks",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNTasks",
- "version": "0.0.1"
- },
- "UUID": "26cae2a3-9eba-3b73-b91c-ef70806cf158",
- "description": "Generated description for concept referred to by key \"VPNTasks:0.0.1\""
- }
- },
- {
- "key": {
- "name": "VPNTriggerEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNTriggerEvent",
- "version": "0.0.1"
- },
- "UUID": "61759db7-3539-307a-9310-9f3870dab1d6",
- "description": "Generated description for concept referred to by key \"VPNTriggerEvent:0.0.1\""
- }
- },
- {
- "key": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "UUID": "7bda6f7c-8469-3aea-a075-c1d4acc2a1c8",
- "description": "Generated description for concept referred to by key \"YtdDT:0.0.1\""
- }
- }
- ]
- }
- },
- "policies": {
- "key": {
- "name": "VPNPolicies",
- "version": "0.0.1"
- },
- "policyMap": {
- "entry": [
- {
- "key": {
- "name": "VPNCustomerCtxtPolicy",
- "version": "0.0.1"
- },
- "value": {
- "policyKey": {
- "name": "VPNCustomerCtxtPolicy",
- "version": "0.0.1"
- },
- "template": "MEDA",
- "state": {
- "entry": [
- {
- "key": "Act",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- },
- "trigger": {
- "name": "VPNCustomerCtxtDecideEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Act_NULL",
- "value": {
- "key": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- },
- "outgoingEvent": {
- "name": "VPNCustomerCtxtActEvent",
- "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": "VPNCustomerCtxtActTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNCustomerCtxtActTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "VPNCustomerCtxtActTask_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Decide",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- },
- "trigger": {
- "name": "VPNCustomerCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Decide_Act",
- "value": {
- "key": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- },
- "outgoingEvent": {
- "name": "VPNCustomerCtxtDecideEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "NULL",
- "logicFlavour": "UNDEFINED",
- "logic": ""
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNCustomerCtxtDecideTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNCustomerCtxtDecideTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "VPNCustomerCtxtDecideTask_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Establish",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- },
- "trigger": {
- "name": "VPNCustomerCtxtMatchEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Establish_Decide",
- "value": {
- "key": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- },
- "outgoingEvent": {
- "name": "VPNCustomerCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "NULL",
- "logicFlavour": "UNDEFINED",
- "logic": ""
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNCustomerCtxtEstablishTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNCustomerCtxtEstablishTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "VPNCustomerCtxtEstablishTask_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Match",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Match"
- },
- "trigger": {
- "name": "VPNCustomerCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Match_Establish",
- "value": {
- "key": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- },
- "outgoingEvent": {
- "name": "VPNCustomerCtxtMatchEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "NULL",
- "logicFlavour": "UNDEFINED",
- "logic": ""
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNCustomerCtxtMatchTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNCustomerCtxtMatchTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "VPNCustomerCtxtMatchTask_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNCustomerCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- }
- ]
- }
- }
- }
- ]
- },
- "firstState": "Match"
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtPolicy",
- "version": "0.0.1"
- },
- "value": {
- "policyKey": {
- "name": "VPNLinkCtxtPolicy",
- "version": "0.0.1"
- },
- "template": "MEDA",
- "state": {
- "entry": [
- {
- "key": "Act",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- },
- "trigger": {
- "name": "VPNLinkCtxtDecideEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Act_NULL",
- "value": {
- "key": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- },
- "outgoingEvent": {
- "name": "VPNLinkCtxtActEvent",
- "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": "VPNLinkCtxtActTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNLinkCtxtActTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "VPNLinkCtxtActTask_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Decide",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- },
- "trigger": {
- "name": "VPNLinkCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Decide_Act",
- "value": {
- "key": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- },
- "outgoingEvent": {
- "name": "VPNLinkCtxtDecideEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "NULL",
- "logicFlavour": "UNDEFINED",
- "logic": ""
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNLinkCtxtDecideTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNLinkCtxtDecideTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "VPNLinkCtxtDecideTask_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Establish",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- },
- "trigger": {
- "name": "VPNLinkCtxtMatchEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Establish_Decide",
- "value": {
- "key": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- },
- "outgoingEvent": {
- "name": "VPNLinkCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "NULL",
- "logicFlavour": "UNDEFINED",
- "logic": ""
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNLinkCtxtEstablishTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNLinkCtxtEstablishTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "VPNLinkCtxtEstablishTask_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Match",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Match"
- },
- "trigger": {
- "name": "VPNLinkCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Match_Establish",
- "value": {
- "key": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- },
- "outgoingEvent": {
- "name": "VPNLinkCtxtMatchEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "NULL",
- "logicFlavour": "UNDEFINED",
- "logic": ""
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNLinkCtxtMatchTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNLinkCtxtMatchTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "VPNLinkCtxtMatchTask_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNLinkCtxtPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- }
- ]
- }
- }
- }
- ]
- },
- "firstState": "Match"
- }
- },
- {
- "key": {
- "name": "VPNPolicy",
- "version": "0.0.1"
- },
- "value": {
- "policyKey": {
- "name": "VPNPolicy",
- "version": "0.0.1"
- },
- "template": "MEDA",
- "state": {
- "entry": [
- {
- "key": "Act",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- },
- "trigger": {
- "name": "VPNDecideEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Act_NULL",
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- },
- "outgoingEvent": {
- "name": "VPNActEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "NULL",
- "parentKeyVersion": "0.0.0",
- "parentLocalName": "NULL",
- "localName": "NULL"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "TaskSelectionLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName + \", using default task\" + subject.defaultTaskKey);\nreturn true;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNActTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNActTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "VPNActTask_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Decide",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- },
- "trigger": {
- "name": "VPNEstablishEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Decide_Act",
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- },
- "outgoingEvent": {
- "name": "VPNDecideEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "TaskSelectionLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nlogger.debug(inFields);\n\nString incomingLink = inFields[\"Link\"];\nString incomingProblemStatus = inFields[\"ProblemStatus\"];\n\n/* 0 label=VPNDecideTask */\n\nif (incomingLink.equals(\"L09\") && incomingProblemStatus.equals(\"NEWPROBLEM\")) {\n\tSystem.err.println(\"l9 NEWPROBLEM\");\n\tsubject.getTaskKey(\"VPNDecideSLATask\").copyTo(selectedTask);\n\treturn true;\n}\nelse if (incomingLink.equals(\"L09\") && inFields[\"ProblemStatus\"].equals(\"NEWSOLVED\")) {\n\tSystem.err.println(\"l9 NEWSOLVED\");\n\tsubject.getTaskKey(\"VPNDecideSolvedTask\").copyTo(selectedTask);\n\treturn true;\n}\nelse if (incomingLink.equals(\"L10\") && incomingProblemStatus.equals(\"NEWPROBLEM\")) {\n\tSystem.err.println(\"l10 NEWPROBLEM\");\n\tsubject.getTaskKey(\"VPNDecidePriorityTask\").copyTo(selectedTask);\n\treturn true;\n}\nelse if (incomingLink.equals(\"L10\") && incomingProblemStatus.equals(\"NEWSOLVED\")) {\n\tSystem.err.println(\"l10 NEWSOLVED\");\n\tsubject.getTaskKey(\"VPNDecideSolvedTask\").copyTo(selectedTask);\n\treturn true;\n}\nelse {\n\tsubject.defaultTaskKey.copyTo(selectedTask);\n\treturn true;\n}"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNDecideTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNDecidePriorityTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "VPNDecidePriorityTask_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- },
- {
- "key": {
- "name": "VPNDecideSLATask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "VPNDecideSLATask_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- },
- {
- "key": {
- "name": "VPNDecideSolvedTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "VPNDecideSolvedTask_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- },
- {
- "key": {
- "name": "VPNDecideTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "VPNDecideTask_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Establish",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- },
- "trigger": {
- "name": "VPNMatchEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Establish_Decide",
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- },
- "outgoingEvent": {
- "name": "VPNEstablishEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "TaskSelectionLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName + \", using default task\" + subject.defaultTaskKey);\nreturn true;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNEstablishTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNEstablishTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "VPNEstablishTask_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Match",
- "value": {
- "stateKey": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Match"
- },
- "trigger": {
- "name": "VPNTriggerEvent",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Match_Establish",
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- },
- "outgoingEvent": {
- "name": "VPNMatchEvent",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [],
- "taskSelectionLogic": {
- "key": "TaskSelectionLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName + \", using default task\" + subject.defaultTaskKey);\nreturn true;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "VPNMatchTask",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "VPNMatchTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "VPNMatchTask_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "VPNPolicy",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- }
- ]
- }
- }
- }
- ]
- },
- "firstState": "Match"
- }
- }
- ]
- }
- },
- "tasks": {
- "key": {
- "name": "VPNTasks",
- "version": "0.0.1"
- },
- "taskMap": {
- "entry": [
- {
- "key": {
- "name": "VPNActTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNActTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "Action",
- "value": {
- "key": "Action",
- "fieldSchemaKey": {
- "name": "Action",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "CustomerMap",
- "value": {
- "key": "CustomerMap",
- "fieldSchemaKey": {
- "name": "CustomerMap",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkMap",
- "value": {
- "key": "LinkMap",
- "fieldSchemaKey": {
- "name": "LinkMap",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [
- {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNLinkMap;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerMap;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\nlogger.debug(subject.id);\n\nSystem.err.println(\"*** Links ***\");\nfor (VPNLink link: getContextAlbum(\"VPNLinkAlbum\").values()) {\n System.err.println(link.getName() + \"\\t\" + link.getActive());\n}\n\nSystem.err.println(\"*** Customers ***\");\nfor (VPNCustomer customer: getContextAlbum(\"VPNCustomerAlbum\").values()) {\n System.err.println(\n \t customer.getName() + \"\\t\" +\n\t\t customer.getSlaDT() + \"\\t\" +\n\t\t customer.getYtdDT() + \"\\t\" + \n\t\t customer.getLinksInUseAsString());\n}\n\nVPNLinkMap linkMap = new VPNLinkMap();\nlinkMap.putAll(getContextAlbum(\"VPNLinkAlbum\"));\noutFields[\"LinkMap\"] = linkMap;\n\nVPNCustomerMap customerMap = new VPNCustomerMap();\ncustomerMap.putAll(getContextAlbum(\"VPNCustomerAlbum\"));\noutFields[\"CustomerMap\"] = customerMap;\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtActTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtActTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [
- {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\n\nlogger.debug(subject.id);\nSystem.err.println(inFields);\n\nString vpnCustomerName = inFields[\"CustomerName\"];\nVPNCustomer vpnCustomer = getContextAlbum(\"VPNCustomerAlbum\").get(vpnCustomerName);\nif (vpnCustomer == null) {\n vpnCustomer = new VPNCustomer(vpnCustomerName);\n\t getContextAlbum(\"VPNCustomerAlbum\").put(vpnCustomerName, vpnCustomer);\n}\nvpnCustomer.setSlaDT(inFields[\"SlaDT\"]);\nvpnCustomer.setYtdDT(inFields[\"YtdDT\"]);\n\nfor (String usedLinkName: inFields[\"LinkList\"].split(\" \")) {\n\tVPNLink vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(usedLinkName);\n\tif (vpnLink != null) {\n\t\tvpnCustomer.getLinksInUse().add(vpnLink);\n\t}\n\telse {\n\t\tSystem.err.println(\"unknown link \\\\\"\" + usedLinkName + \"\\\\\" specified on customer \\\\\"\" + vpnCustomerName + \"\\\\\"\");\n\t}\n}\n\nSystem.err.println(\"*** Customers ***\");\nfor (VPNCustomer customer: getContextAlbum(\"VPNCustomerAlbum\").values()) {\n System.err.println(\n \t customer.getName() + \"\\t\" +\n\t\t customer.getSlaDT() + \"\\t\" +\n\t\t customer.getYtdDT() + \"\\t\" + \n\t\t customer.getLinksInUseAsString());\n}\n\noutFields[\"CustomerName\"] = vpnCustomer.getName();\noutFields[\"LinkList\"] = vpnCustomer.getLinksInUseAsString();\noutFields[\"SlaDT\"] = vpnCustomer.getSlaDT();\noutFields[\"YtdDT\"] = vpnCustomer.getYtdDT();\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtDecideTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtDecideTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtEstablishTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtEstablishTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtMatchTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtMatchTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNDecidePriorityTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecidePriorityTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "Action",
- "value": {
- "key": "Action",
- "fieldSchemaKey": {
- "name": "Action",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [
- {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerArray;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nlogger.debug(\"VPNDecidePriorityTask execution logic-Praveen\");\nlogger.debug(inFields);\noutFields[\"Link\"] = inFields[\"Link\"];\noutFields[\"Action\"] = \"Disconnect customers based on Priority\";\n\nVPNCustomerArray affectedCustomersArray = new VPNCustomerArray();\naffectedCustomersArray.addCustomer(\"A\");\noutFields[\"AffectedCustomers\"] = affectedCustomersArray;\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNDecideSLATask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecideSLATask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "Action",
- "value": {
- "key": "Action",
- "fieldSchemaKey": {
- "name": "Action",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [
- {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerArray;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\n\noutFields[\"Link\"] = inFields[\"Link\"];\noutFields[\"Action\"] = \"Disconnect customers based on SLA Agreement\";\n\nVPNCustomerArray slaViolatedCustomerArray = new VPNCustomerArray();\n\nSystem.err.println(\"cust\\tslaDT\\tytdDT\");\nfor (VPNCustomer customer: getContextAlbum(\"VPNCustomerAlbum\").values()) {\n\tSystem.err.println(customer.getName() + \"\\t\" + customer.getSlaDT() + \"\\t\" + customer.getYtdDT());\n\n\tif (customer.getYtdDT() > customer.getSlaDT()) {\n\t\tslaViolatedCustomerArray.addCustomer(customer.getName());\n\t}\n}\n\nSystem.err.println(\"Customers whose SLAs are violated are:\" + slaViolatedCustomerArray.toString());\n\ninFields[\"AffectedCustomers\"].removeAll(slaViolatedCustomerArray.getCustomers());\noutFields[\"AffectedCustomers\"] = new VPNCustomerArray(inFields[\"AffectedCustomers\"].getCustomers());\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNDecideSolvedTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecideSolvedTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "Action",
- "value": {
- "key": "Action",
- "fieldSchemaKey": {
- "name": "Action",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [
- {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNProblem;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\noutFields[\"Action\"] = \"Rebuild VPN for customers\";\noutFields[\"Link\"] = inFields[\"Link\"];\noutFields[\"AffectedCustomers\"] = inFields[\"AffectedCustomers\"];\n\n/* Get the problem-link-object for this link */\nString incomingLink = inFields[\"Link\"];\n\nVPNProblem vpnProblem = getContextAlbum(\"VPNProblemAlbum\").get(incomingLink);\n\nif (null != vpnProblem) {\n /* Calculate the total down time from the problem-link-object */\n long linkDownTimeinSecs = (vpnProblem.getEndTime() - vpnProblem.getStartTime())/1000;\n /* Get customers from Policy context and add to ytdDT */\n for (VPNCustomer customer : vpnProblem.getAffectedCustomers()) {\n\t\tcustomer.setYtdDT(customer.getYtdDT() + linkDownTimeinSecs);\n }\n}\n\n/* Remove the problem-link-object */\ngetContextAlbum(\"VPNProblemAlbum\").remove(incomingLink);\n\nSystem.err.println(\"outFields: \" + outFields);\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNDecideTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecideTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "Action",
- "value": {
- "key": "Action",
- "fieldSchemaKey": {
- "name": "Action",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [
- {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNEstablishTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNEstablishTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Status",
- "value": {
- "key": "Status",
- "fieldSchemaKey": {
- "name": "Status",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "StatusChanged",
- "value": {
- "key": "StatusChanged",
- "fieldSchemaKey": {
- "name": "StatusChanged",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [
- {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNProblem;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerArray;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\nString vpnLinkName = inFields[\"Link\"];\n\nVPNLink vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(vpnLinkName);\nVPNProblem vpnProblem = getContextAlbum(\"VPNProblemAlbum\").get(vpnLinkName);\n\nString incomingStatus = inFields[\"Status\"];\nBoolean incomingStatusChanged = (Boolean)inFields[\"StatusChanged\"];\n\nif (incomingStatus.equalsIgnoreCase(\"DOWN\")) {\n\tvpnLink.setActive(false);\n}\nelse {\n\tvpnLink.setActive(true);\n}\n\nlong now = System.currentTimeMillis();\n\nif (incomingStatusChanged == false) {\n\toutFields[\"Link\"] = vpnLinkName;\n\tif (incomingStatus.equalsIgnoreCase(\"UP\")) {\n\t\toutFields[\"ProblemStatus\"] = \"NOPROBLEM\";\n\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray();\n\t}\n\telse if (incomingStatus.equalsIgnoreCase(\"DOWN\")) {\n\t\toutFields[\"ProblemStatus\"] = \"STILLPROBLEM\";\n\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray(vpnProblem.getAffectedCustomers());\n\t}\n\telse {\n\t\tSystem.err.println(\"VpnEstablishLogic: Unsupported link type!!!\" + vpnLinkName + \" \" + incomingStatus);\n\t}\n}\nelse if (incomingStatusChanged == true) {\n\t/* indicates new problem or new solution */\n\tif\t(incomingStatus.equalsIgnoreCase(\"UP\")) {\n\t\t/* A link that was down is now up */\n\t\tif (vpnProblem != null) {\n\t\t\tvpnProblem.setEndTime(now);\n\t\t}\n\t\telse {\n\t\t\tSystem.err.println(\"VpnEstablishLogic: Link change to UP, but with no report of a previous problem!!!\" + vpnLinkName);\n\t\t}\n\t\toutFields[\"Link\"] = vpnLinkName;\n\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray(vpnProblem.getAffectedCustomers());\n\t\toutFields[\"ProblemStatus\"] = \"NEWSOLVED\";\n\t}\n\telse if (incomingStatus.equalsIgnoreCase(\"DOWN\")) {\n\t\t/* A link that was up is now down */\n\t\tif (vpnProblem == null) {\n\t\t\tvpnProblem = new VPNProblem(vpnLinkName);\n\t\t\tvpnProblem.setStartTime(now);\n\n\t\t\tfor (VPNCustomer vpnCustomer : getContextAlbum(\"VPNCustomerAlbum\").values()) {\n\t\t\t\tif (vpnCustomer.getLinksInUse().contains(vpnLinkName)) {\n\t\t\t\t\tvpnProblem.add(vpnCustomer);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tgetContextAlbum(\"VPNProblemAlbum\").put(vpnLinkName, vpnProblem);\n\n\t\t\toutFields[\"Link\"] = vpnLinkName;\n\t\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray(vpnProblem.getAffectedCustomers());\n\t\t\toutFields[\"ProblemStatus\"] = \"NEWPROBLEM\";\n\t\t}\n\t\telse {\n\t\t\tSystem.err.println(\"VpnEstablishLogic: Link change to DOWN, but with a report of a previous problem: \" + vpnLinkName + \" Not updating problem: \" + vpnProblem);\n\t\t\toutFields[\"Link\"] = vpnLinkName;\n\t\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray(vpnProblem.getAffectedCustomers());\n\t\t\toutFields[\"ProblemStatus\"] = \"STILLPROBLEM\";\n\t\t}\n\t}\n\telse {\n\t\tSystem.err.println(\"VpnEstablishLogic: Unsupported link type!!!\" + vpnLinkName + \" \" + incomingStatus);\n\t}\n}\nelse {\n\tthrow new IllegalArgumentException(\"MatchEvent down time cannot be less than 0\");\n}\n\nSystem.err.println(\"outFields: \" + outFields);\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtActTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtActTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [
- {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\n\nlogger.debug(subject.id);\nSystem.err.println(inFields);\n\nString vpnLinkName = inFields[\"Link\"];\nVPNLink vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(vpnLinkName);\nif (vpnLink == null) {\n vpnLink = new VPNLink(vpnLinkName);\n getContextAlbum(\"VPNLinkAlbum\").put(vpnLinkName, vpnLink);\n}\nvpnLink.setActive(inFields[\"LinkUp\"]);\n\nSystem.err.println(\"*** Links ***\");\nfor (VPNLink link: getContextAlbum(\"VPNLinkAlbum\").values()) {\n System.err.println(link.getName() + \"\\t\" + link.getActive());\n}\n\noutFields[\"Link\"] = vpnLink.getName();\noutFields[\"LinkUp\"] = vpnLink.getActive();\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtDecideTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtDecideTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtEstablishTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtEstablishTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtMatchTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtMatchTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;"
- }
- }
- },
- {
- "key": {
- "name": "VPNMatchTask",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNMatchTask",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Status",
- "value": {
- "key": "Status",
- "fieldSchemaKey": {
- "name": "Status",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Status",
- "value": {
- "key": "Status",
- "fieldSchemaKey": {
- "name": "Status",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "StatusChanged",
- "value": {
- "key": "StatusChanged",
- "fieldSchemaKey": {
- "name": "StatusChanged",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": []
- },
- "contextAlbumReference": [
- {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "TaskLogic",
- "logicFlavour": "MVEL",
- "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\nSystem.err.println(inFields);\n\nString vpnLinkName = inFields[\"Link\"];\nString vpnLinkStatus = inFields[\"Status\"];\n\nVPNLink vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(vpnLinkName);\nif (vpnLink == null) {\n\tvpnLink = new VPNLink(vpnLinkName);\n\tgetContextAlbum(\"VPNLinkAlbum\").put(vpnLinkName, vpnLink);\n\tif (vpnLinkStatus.equalsIgnoreCase(\"DOWN\")) {\n\t\tvpnLink.setActive(true);\n\t}\n\telse {\n\t\tvpnLink.setActive(false);\n\t}\n}\n\nif (vpnLinkStatus.equalsIgnoreCase(\"DOWN\")) {\n\tif (vpnLinkName != null) {\n\t\tif (vpnLink.getActive()) {\n\t\t\toutFields[\"StatusChanged\"] = true;\n\t\t}\n\t\telse {\n\t\t\toutFields[\"StatusChanged\"] = false;\n\t\t}\n\t\toutFields[\"Link\"] = vpnLinkName;\n\t\toutFields[\"Status\"] = vpnLinkStatus;\n\t}\n\telse {\n\t\tSystem.err.println(\"match: trigger context error: link is null\");\n\t}\n}\nelse if (vpnLinkStatus.equalsIgnoreCase(\"UP\")) {\n\tif (vpnLinkName != null) {\n\t\tif (!vpnLink.getActive()) {\n\t\t\toutFields[\"StatusChanged\"] = true;\n\t\t}\n\t\telse {\n\t\t\toutFields[\"StatusChanged\"] = false;\n\t\t}\n\t\toutFields[\"Link\"] = vpnLinkName;\n\t\toutFields[\"Status\"] = vpnLinkStatus;\n\t}\n\telse {\n\t\tSystem.err.println(\"match: trigger context error: link is null\");\n\t}\n}\nelse {\n\tSystem.err.println(\"match: trigger context error: status neither UP nor DOWN\");\n}\n\nSystem.err.println(\"outFields: \" + outFields);\nreturn true;"
- }
- }
- }
- ]
- }
- },
- "events": {
- "key": {
- "name": "VPNEvents",
- "version": "0.0.1"
- },
- "eventMap": {
- "entry": [
- {
- "key": {
- "name": "VPNActEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNActEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "CustomerMap",
- "value": {
- "key": "CustomerMap",
- "fieldSchemaKey": {
- "name": "CustomerMap",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkMap",
- "value": {
- "key": "LinkMap",
- "fieldSchemaKey": {
- "name": "LinkMap",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtActEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtActEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtDecideEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtDecideEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtMatchEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtMatchEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNCustomerCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "CustomerName",
- "value": {
- "key": "CustomerName",
- "fieldSchemaKey": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkList",
- "value": {
- "key": "LinkList",
- "fieldSchemaKey": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "SlaDT",
- "value": {
- "key": "SlaDT",
- "fieldSchemaKey": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "YtdDT",
- "value": {
- "key": "YtdDT",
- "fieldSchemaKey": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNDecideEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNDecideEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "Action",
- "value": {
- "key": "Action",
- "fieldSchemaKey": {
- "name": "Action",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNEstablishEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNEstablishEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "AffectedCustomers",
- "value": {
- "key": "AffectedCustomers",
- "fieldSchemaKey": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "ProblemStatus",
- "value": {
- "key": "ProblemStatus",
- "fieldSchemaKey": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtActEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtActEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtDecideEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtDecideEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtEstablishEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtMatchEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtMatchEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkCtxtTriggerEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "LinkUp",
- "value": {
- "key": "LinkUp",
- "fieldSchemaKey": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNMatchEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNMatchEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Status",
- "value": {
- "key": "Status",
- "fieldSchemaKey": {
- "name": "Status",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "StatusChanged",
- "value": {
- "key": "StatusChanged",
- "fieldSchemaKey": {
- "name": "StatusChanged",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "VPNTriggerEvent",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNTriggerEvent",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.domains.vpn.events",
- "source": "Source",
- "target": "Target",
- "parameter": {
- "entry": [
- {
- "key": "Link",
- "value": {
- "key": "Link",
- "fieldSchemaKey": {
- "name": "Link",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "Status",
- "value": {
- "key": "Status",
- "fieldSchemaKey": {
- "name": "Status",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- }
- ]
- }
- },
- "albums": {
- "key": {
- "name": "VPNContext",
- "version": "0.0.1"
- },
- "albums": {
- "entry": [
- {
- "key": {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomerAlbum",
- "version": "0.0.1"
- },
- "scope": "GLOBAL",
- "isWritable": true,
- "itemSchema": {
- "name": "VPNCustomer",
- "version": "0.0.1"
- }
- }
- },
- {
- "key": {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLinkAlbum",
- "version": "0.0.1"
- },
- "scope": "GLOBAL",
- "isWritable": true,
- "itemSchema": {
- "name": "VPNLink",
- "version": "0.0.1"
- }
- }
- },
- {
- "key": {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNProblemAlbum",
- "version": "0.0.1"
- },
- "scope": "GLOBAL",
- "isWritable": true,
- "itemSchema": {
- "name": "VPNProblem",
- "version": "0.0.1"
- }
- }
- }
- ]
- }
- },
- "schemas": {
- "key": {
- "name": "VPNDatatypes",
- "version": "0.0.1"
- },
- "schemas": {
- "entry": [
- {
- "key": {
- "name": "Action",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Action",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.String"
- }
- },
- {
- "key": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "AffectedCustomers",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerArray"
- }
- },
- {
- "key": {
- "name": "CustomerMap",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "CustomerMap",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerMap"
- }
- },
- {
- "key": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "CustomerName",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.String"
- }
- },
- {
- "key": {
- "name": "Link",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Link",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.String"
- }
- },
- {
- "key": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "LinkList",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.String"
- }
- },
- {
- "key": {
- "name": "LinkMap",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "LinkMap",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNLinkMap"
- }
- },
- {
- "key": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "LinkUp",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.Boolean"
- }
- },
- {
- "key": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "ProblemStatus",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.String"
- }
- },
- {
- "key": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "SlaDT",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.Integer"
- }
- },
- {
- "key": {
- "name": "Status",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Status",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.String"
- }
- },
- {
- "key": {
- "name": "StatusChanged",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "StatusChanged",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.Boolean"
- }
- },
- {
- "key": {
- "name": "VPNCustomer",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNCustomer",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer"
- }
- },
- {
- "key": {
- "name": "VPNLink",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNLink",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNLink"
- }
- },
- {
- "key": {
- "name": "VPNProblem",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "VPNProblem",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNProblem"
- }
- },
- {
- "key": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "YtdDT",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.Integer"
- }
- }
- ]
- }
- }
- }
-} \ No newline at end of file