summaryrefslogtreecommitdiffstats
path: root/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@ericsson.com>2018-11-06 12:02:46 +0000
committerliamfallon <liam.fallon@ericsson.com>2018-11-07 12:41:09 +0000
commit53d8916cc60d97e2ce7ae345f8cc25f5602567da (patch)
treeee2f3a8e543c31993c51a58257354ccffb648dfe /plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src
parent9dc414a0cabc9074e87a7c9cd5c3e5ceee733e5a (diff)
Refactor unit test data
There were many copies of test policies and examples strewn through the Apex unit tests. This change cleans up the unit tests so that a single version of all example policies is used in all tests. Also added a new relative file root command line parameter to Apex to allow the root of relative paths in configuration files to be set. Apologies for the size of this review but unfortunately all of this must be done in one shot. Issue-ID: POLICY-1252 Change-Id: Ibbb18fbf18e3897a1c61301d0a65e62bc643a0e9 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src')
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestor.java21
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestorEndpoint.java16
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsIn.json450
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsInMulti.json18
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/RequestorModel.json608
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/SamplePolicyModelMVEL.json6348
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json146
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json146
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json138
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json254
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json104
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json146
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json146
13 files changed, 1328 insertions, 7213 deletions
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestor.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestor.java
index 051647339..1ace80906 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestor.java
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestor.java
@@ -113,15 +113,20 @@ public class TestRestRequestor {
{ "src/test/resources/prodcons/File2RESTRequest2FileGet.json" };
final ApexMain apexMain = new ApexMain(args);
+ Response response = null;
+
// Wait for the required amount of events to be received or for 10 seconds
Double getsSoFar = 0.0;
for (int i = 0; i < 40; i++) {
ThreadUtilities.sleep(100);
- final Response response = client.target("http://localhost:32801/TestRESTRequestor/apex/event/Stats")
+ response = client.target("http://localhost:32801/TestRESTRequestor/apex/event/Stats")
.request("application/json").get();
- assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+ if (Response.Status.OK.getStatusCode() != response.getStatus()) {
+ break;
+ }
+
final String responseString = response.readEntity(String.class);
@SuppressWarnings("unchecked")
@@ -136,6 +141,8 @@ public class TestRestRequestor {
apexMain.shutdown();
client.close();
+ assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+
assertEquals(Double.valueOf(50.0), getsSoFar);
}
@@ -156,13 +163,18 @@ public class TestRestRequestor {
// Wait for the required amount of events to be received or for 10 seconds
Double putsSoFar = 0.0;
+
+ Response response = null;
for (int i = 0; i < 40; i++) {
ThreadUtilities.sleep(100);
- final Response response = client.target("http://localhost:32801/TestRESTRequestor/apex/event/Stats")
+ response = client.target("http://localhost:32801/TestRESTRequestor/apex/event/Stats")
.request("application/json").get();
- assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+ if (Response.Status.OK.getStatusCode() != response.getStatus()) {
+ break;
+ }
+
final String responseString = response.readEntity(String.class);
@SuppressWarnings("unchecked")
@@ -177,6 +189,7 @@ public class TestRestRequestor {
apexMain.shutdown();
client.close();
+ assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
assertEquals(Double.valueOf(50.0), putsSoFar);
}
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestorEndpoint.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestorEndpoint.java
index 0de34eb9b..860127a7b 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestorEndpoint.java
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestorEndpoint.java
@@ -47,11 +47,9 @@ public class TestRestRequestorEndpoint {
private static int getMessagesReceived = 0;
private static int deleteMessagesReceived = 0;
- private static String EVENT_STRING = "{\n" + "\"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"
- + "\"name\": \"Event0100\",\n" + "\"version\": \"0.0.1\",\n" + "\"source\": \"REST_" + getMessagesReceived
- + "\",\n" + "\"target\": \"apex\",\n" + "\"TestSlogan\": \"Test slogan for External Event0\",\n"
- + "\"TestMatchCase\": 2,\n" + "\"TestTimestamp\": " + System.currentTimeMillis() + ",\n"
- + "\"TestTemperature\": 9080.866\n" + "}";
+ private static String EVENT_STRING = "{\n" + "\"nameSpace\": \"org.onap.policy.apex.events\",\n"
+ + "\"name\": \"ResponseEvent\",\n" + "\"version\": \"0.0.1\",\n" + "\"source\": \"REST_"
+ + getMessagesReceived + "\",\n" + "\"target\": \"apex\",\n" + "\"intPar\": 9080\n" + "}";
/**
* Reset counters.
@@ -76,10 +74,10 @@ public class TestRestRequestorEndpoint {
statMessagesReceived++;
}
return Response.status(200)
- .entity("{\"GET\": " + getMessagesReceived + ",\"STAT\": " + statMessagesReceived + ",\"POST\": "
- + postMessagesReceived + ",\"PUT\": " + putMessagesReceived + ",\"DELETE\": "
- + deleteMessagesReceived + "}")
- .build();
+ .entity("{\"GET\": " + getMessagesReceived + ",\"STAT\": " + statMessagesReceived
+ + ",\"POST\": " + postMessagesReceived + ",\"PUT\": " + putMessagesReceived
+ + ",\"DELETE\": " + deleteMessagesReceived + "}")
+ .build();
}
/**
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsIn.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsIn.json
index 037c5ca43..48780ba51 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsIn.json
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsIn.json
@@ -1,550 +1,400 @@
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 12345
}
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsInMulti.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsInMulti.json
index 49325ddea..32aba1f63 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsInMulti.json
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsInMulti.json
@@ -1,22 +1,16 @@
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 3
}
{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
+ "nameSpace": "org.onap.policy.apex.events",
+ "name": "BasicEvent",
"version": "0.0.1",
"source": "test",
"target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1469781869271,
- "TestTemperature": 8723.999
+ "intPar": 6
} \ No newline at end of file
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/RequestorModel.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/RequestorModel.json
new file mode 100644
index 000000000..b6fdc617b
--- /dev/null
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/RequestorModel.json
@@ -0,0 +1,608 @@
+{
+ "apexPolicyModel" : {
+ "key" : {
+ "name" : "SmallModel",
+ "version" : "0.0.1"
+ },
+ "keyInformation" : {
+ "key" : {
+ "name" : "SmallModel_KeyInfo",
+ "version" : "0.0.1"
+ },
+ "keyInfoMap" : {
+ "entry" : [ {
+ "key" : {
+ "name" : "BasicContextAlbum",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "BasicContextAlbum",
+ "version" : "0.0.1"
+ },
+ "UUID" : "fec1b353-b35f-4384-b7d9-69622059c248",
+ "description" : "Generated description for a concept called \"BasicContextAlbum\" with version \"0.0.1\" and UUID \"fec1b353-b35f-4384-b7d9-69622059c248\""
+ }
+ }, {
+ "key" : {
+ "name" : "BasicEvent",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "BasicEvent",
+ "version" : "0.0.1"
+ },
+ "UUID" : "cc8d3c1a-e975-459a-bcd2-69f423eaa1f3",
+ "description" : "Generated description for a concept called \"BasicEvent\" with version \"0.0.1\" and UUID \"cc8d3c1a-e975-459a-bcd2-69f423eaa1f3\""
+ }
+ }, {
+ "key" : {
+ "name" : "BasicPolicy",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "BasicPolicy",
+ "version" : "0.0.1"
+ },
+ "UUID" : "d0c5d8ee-5fe7-4978-89ce-4a3e69cad043",
+ "description" : "Generated description for a concept called \"BasicPolicy\" with version \"0.0.1\" and UUID \"d0c5d8ee-5fe7-4978-89ce-4a3e69cad043\""
+ }
+ }, {
+ "key" : {
+ "name" : "BasicTask",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "BasicTask",
+ "version" : "0.0.1"
+ },
+ "UUID" : "c5651414-fc1c-493b-878d-75f0ce685c36",
+ "description" : "Generated description for a concept called \"BasicTask\" with version \"0.0.1\" and UUID \"c5651414-fc1c-493b-878d-75f0ce685c36\""
+ }
+ }, {
+ "key" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ },
+ "UUID" : "790ff718-8dc0-44e0-89d8-1b3bbe238310",
+ "description" : "Generated description for a concept called \"IntType\" with version \"0.0.1\" and UUID \"790ff718-8dc0-44e0-89d8-1b3bbe238310\""
+ }
+ }, {
+ "key" : {
+ "name" : "RequestEvent",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "RequestEvent",
+ "version" : "0.0.1"
+ },
+ "UUID" : "99875c27-6120-4101-9e73-50ac810e322c",
+ "description" : "Generated description for a concept called \"RequestEvent\" with version \"0.0.1\" and UUID \"99875c27-6120-4101-9e73-50ac810e322c\""
+ }
+ }, {
+ "key" : {
+ "name" : "RequestPolicy",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "RequestPolicy",
+ "version" : "0.0.1"
+ },
+ "UUID" : "0667d905-981e-4249-b572-bc22821c7d29",
+ "description" : "Generated description for a concept called \"RequestPolicy\" with version \"0.0.1\" and UUID \"0667d905-981e-4249-b572-bc22821c7d29\""
+ }
+ }, {
+ "key" : {
+ "name" : "ResponseEvent",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "ResponseEvent",
+ "version" : "0.0.1"
+ },
+ "UUID" : "a5022000-fdd7-491c-af9f-5a36e87c997c",
+ "description" : "Generated description for a concept called \"ResponseEvent\" with version \"0.0.1\" and UUID \"a5022000-fdd7-491c-af9f-5a36e87c997c\""
+ }
+ }, {
+ "key" : {
+ "name" : "ResponsePolicy",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "ResponsePolicy",
+ "version" : "0.0.1"
+ },
+ "UUID" : "e72757c4-d81d-4337-b7ce-5f022f55818d",
+ "description" : "Generated description for a concept called \"ResponsePolicy\" with version \"0.0.1\" and UUID \"e72757c4-d81d-4337-b7ce-5f022f55818d\""
+ }
+ }, {
+ "key" : {
+ "name" : "SmallModel",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "SmallModel",
+ "version" : "0.0.1"
+ },
+ "UUID" : "a1bd1f4e-713b-456b-b1a8-bb48beee28e8",
+ "description" : "Generated description for a concept called \"SmallModel\" with version \"0.0.1\" and UUID \"a1bd1f4e-713b-456b-b1a8-bb48beee28e8\""
+ }
+ }, {
+ "key" : {
+ "name" : "SmallModel_Albums",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "SmallModel_Albums",
+ "version" : "0.0.1"
+ },
+ "UUID" : "72bed9af-ab7d-3379-b9f7-b5eca5c9ef22",
+ "description" : "Generated description for concept referred to by key \"SmallModel_Albums:0.0.1\""
+ }
+ }, {
+ "key" : {
+ "name" : "SmallModel_Events",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "SmallModel_Events",
+ "version" : "0.0.1"
+ },
+ "UUID" : "796dc6b0-627d-34ae-a5e2-1bc4b4b486b8",
+ "description" : "Generated description for concept referred to by key \"SmallModel_Events:0.0.1\""
+ }
+ }, {
+ "key" : {
+ "name" : "SmallModel_KeyInfo",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "SmallModel_KeyInfo",
+ "version" : "0.0.1"
+ },
+ "UUID" : "b4876774-6907-3d27-a2b8-f05737c5ee4a",
+ "description" : "Generated description for concept referred to by key \"SmallModel_KeyInfo:0.0.1\""
+ }
+ }, {
+ "key" : {
+ "name" : "SmallModel_Policies",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "SmallModel_Policies",
+ "version" : "0.0.1"
+ },
+ "UUID" : "5bcf946b-67be-3190-a906-f954896f999f",
+ "description" : "Generated description for concept referred to by key \"SmallModel_Policies:0.0.1\""
+ }
+ }, {
+ "key" : {
+ "name" : "SmallModel_Schemas",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "SmallModel_Schemas",
+ "version" : "0.0.1"
+ },
+ "UUID" : "c25bf5c3-7f1e-3667-b8a9-971ba21517bc",
+ "description" : "Generated description for concept referred to by key \"SmallModel_Schemas:0.0.1\""
+ }
+ }, {
+ "key" : {
+ "name" : "SmallModel_Tasks",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "SmallModel_Tasks",
+ "version" : "0.0.1"
+ },
+ "UUID" : "43b015ca-2ed1-3a35-b103-e8a5aa68f1ef",
+ "description" : "Generated description for concept referred to by key \"SmallModel_Tasks:0.0.1\""
+ }
+ } ]
+ }
+ },
+ "policies" : {
+ "key" : {
+ "name" : "SmallModel_Policies",
+ "version" : "0.0.1"
+ },
+ "policyMap" : {
+ "entry" : [ {
+ "key" : {
+ "name" : "RequestPolicy",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "policyKey" : {
+ "name" : "RequestPolicy",
+ "version" : "0.0.1"
+ },
+ "template" : "FREEFORM",
+ "state" : {
+ "entry" : [ {
+ "key" : "RequestState",
+ "value" : {
+ "stateKey" : {
+ "parentKeyName" : "RequestPolicy",
+ "parentKeyVersion" : "0.0.1",
+ "parentLocalName" : "NULL",
+ "localName" : "RequestState"
+ },
+ "trigger" : {
+ "name" : "BasicEvent",
+ "version" : "0.0.1"
+ },
+ "stateOutputs" : {
+ "entry" : [ {
+ "key" : "RequestOutput",
+ "value" : {
+ "key" : {
+ "parentKeyName" : "RequestPolicy",
+ "parentKeyVersion" : "0.0.1",
+ "parentLocalName" : "RequestState",
+ "localName" : "RequestOutput"
+ },
+ "outgoingEvent" : {
+ "name" : "RequestEvent",
+ "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" : "BasicTask",
+ "version" : "0.0.1"
+ },
+ "taskReferences" : {
+ "entry" : [ {
+ "key" : {
+ "name" : "BasicTask",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "parentKeyName" : "RequestPolicy",
+ "parentKeyVersion" : "0.0.1",
+ "parentLocalName" : "RequestState",
+ "localName" : "RequestTask"
+ },
+ "outputType" : "DIRECT",
+ "output" : {
+ "parentKeyName" : "RequestPolicy",
+ "parentKeyVersion" : "0.0.1",
+ "parentLocalName" : "RequestState",
+ "localName" : "RequestOutput"
+ }
+ }
+ } ]
+ }
+ }
+ } ]
+ },
+ "firstState" : "RequestState"
+ }
+ }, {
+ "key" : {
+ "name" : "ResponsePolicy",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "policyKey" : {
+ "name" : "ResponsePolicy",
+ "version" : "0.0.1"
+ },
+ "template" : "FREEFORM",
+ "state" : {
+ "entry" : [ {
+ "key" : "ResponseState",
+ "value" : {
+ "stateKey" : {
+ "parentKeyName" : "ResponsePolicy",
+ "parentKeyVersion" : "0.0.1",
+ "parentLocalName" : "NULL",
+ "localName" : "ResponseState"
+ },
+ "trigger" : {
+ "name" : "ResponseEvent",
+ "version" : "0.0.1"
+ },
+ "stateOutputs" : {
+ "entry" : [ {
+ "key" : "ResponseOutput",
+ "value" : {
+ "key" : {
+ "parentKeyName" : "ResponsePolicy",
+ "parentKeyVersion" : "0.0.1",
+ "parentLocalName" : "ResponseState",
+ "localName" : "ResponseOutput"
+ },
+ "outgoingEvent" : {
+ "name" : "BasicEvent",
+ "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" : "BasicTask",
+ "version" : "0.0.1"
+ },
+ "taskReferences" : {
+ "entry" : [ {
+ "key" : {
+ "name" : "BasicTask",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "parentKeyName" : "ResponsePolicy",
+ "parentKeyVersion" : "0.0.1",
+ "parentLocalName" : "ResponseState",
+ "localName" : "ResponseTask"
+ },
+ "outputType" : "DIRECT",
+ "output" : {
+ "parentKeyName" : "ResponsePolicy",
+ "parentKeyVersion" : "0.0.1",
+ "parentLocalName" : "ResponseState",
+ "localName" : "ResponseOutput"
+ }
+ }
+ } ]
+ }
+ }
+ } ]
+ },
+ "firstState" : "ResponseState"
+ }
+ } ]
+ }
+ },
+ "tasks" : {
+ "key" : {
+ "name" : "SmallModel_Tasks",
+ "version" : "0.0.1"
+ },
+ "taskMap" : {
+ "entry" : [ {
+ "key" : {
+ "name" : "BasicTask",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "BasicTask",
+ "version" : "0.0.1"
+ },
+ "inputFields" : {
+ "entry" : [ {
+ "key" : "intPar",
+ "value" : {
+ "key" : "intPar",
+ "fieldSchemaKey" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ },
+ "optional" : false
+ }
+ } ]
+ },
+ "outputFields" : {
+ "entry" : [ {
+ "key" : "intPar",
+ "value" : {
+ "key" : "intPar",
+ "fieldSchemaKey" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ },
+ "optional" : false
+ }
+ } ]
+ },
+ "taskParameters" : {
+ "entry" : [ ]
+ },
+ "contextAlbumReference" : [ {
+ "name" : "BasicContextAlbum",
+ "version" : "0.0.1"
+ } ],
+ "taskLogic" : {
+ "key" : "TaskLogic",
+ "logicFlavour" : "JAVASCRIPT",
+ "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"BasicContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;"
+ }
+ }
+ } ]
+ }
+ },
+ "events" : {
+ "key" : {
+ "name" : "SmallModel_Events",
+ "version" : "0.0.1"
+ },
+ "eventMap" : {
+ "entry" : [ {
+ "key" : {
+ "name" : "BasicEvent",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "BasicEvent",
+ "version" : "0.0.1"
+ },
+ "nameSpace" : "org.onap.policy.apex.events",
+ "source" : "source",
+ "target" : "target",
+ "parameter" : {
+ "entry" : [ {
+ "key" : "intPar",
+ "value" : {
+ "key" : "intPar",
+ "fieldSchemaKey" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ },
+ "optional" : false
+ }
+ } ]
+ }
+ }
+ }, {
+ "key" : {
+ "name" : "RequestEvent",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "RequestEvent",
+ "version" : "0.0.1"
+ },
+ "nameSpace" : "org.onap.policy.apex.events",
+ "source" : "apex",
+ "target" : "server",
+ "parameter" : {
+ "entry" : [ {
+ "key" : "intPar",
+ "value" : {
+ "key" : "intPar",
+ "fieldSchemaKey" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ },
+ "optional" : false
+ }
+ } ]
+ }
+ }
+ }, {
+ "key" : {
+ "name" : "ResponseEvent",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "ResponseEvent",
+ "version" : "0.0.1"
+ },
+ "nameSpace" : "org.onap.policy.apex.events",
+ "source" : "server",
+ "target" : "apex",
+ "parameter" : {
+ "entry" : [ {
+ "key" : "intPar",
+ "value" : {
+ "key" : "intPar",
+ "fieldSchemaKey" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ },
+ "optional" : false
+ }
+ } ]
+ }
+ }
+ } ]
+ }
+ },
+ "albums" : {
+ "key" : {
+ "name" : "SmallModel_Albums",
+ "version" : "0.0.1"
+ },
+ "albums" : {
+ "entry" : [ {
+ "key" : {
+ "name" : "BasicContextAlbum",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "BasicContextAlbum",
+ "version" : "0.0.1"
+ },
+ "scope" : "GLOBAL",
+ "isWritable" : true,
+ "itemSchema" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ }
+ }
+ } ]
+ }
+ },
+ "schemas" : {
+ "key" : {
+ "name" : "SmallModel_Schemas",
+ "version" : "0.0.1"
+ },
+ "schemas" : {
+ "entry" : [ {
+ "key" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ },
+ "value" : {
+ "key" : {
+ "name" : "IntType",
+ "version" : "0.0.1"
+ },
+ "schemaFlavour" : "Java",
+ "schemaDefinition" : "java.lang.Integer"
+ }
+ } ]
+ }
+ }
+ }
+}
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/SamplePolicyModelMVEL.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/SamplePolicyModelMVEL.json
deleted file mode 100644
index c87b265d9..000000000
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/SamplePolicyModelMVEL.json
+++ /dev/null
@@ -1,6348 +0,0 @@
-{
- "apexPolicyModel" : {
- "key" : {
- "name" : "SamplePolicyModelMVEL",
- "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" : "2708db15-3117-4ef5-ae06-44ad4bc72756",
- "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" : "20f7f2d0-36e1-4134-93d9-8978e0ebb916",
- "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" : "bfa262fc-f59d-4b05-af44-a5b5c218b314",
- "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" : "84eeac88-5031-4487-b67a-5a3ae13c1a89",
- "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" : "7a46a411-1715-48d8-9e70-9b5d14bbbed4",
- "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" : "da0ba1b4-f654-4e99-97b5-595de84cb3dc",
- "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" : "1267b311-60e2-48a7-8d0e-23c4ea21d863",
- "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" : "84013070-ff2e-4295-acbd-4128f0509040",
- "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" : "6fb7761e-b86f-47fc-8e19-6a116600764e",
- "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" : "141cc707-009c-4e3b-a0f8-c346f074f590",
- "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" : "98f4d09f-ff73-4385-8876-df6d04b552cc",
- "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" : "889f6414-bc4d-4f29-b7af-175e63d23ac5",
- "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" : "64e4911c-5aed-467f-be19-277fb6170857",
- "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" : "cb6a1892-8c3c-44df-b8a7-0e5a333ff9eb",
- "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" : "f3126983-e26c-491f-8738-c57784ca4026",
- "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" : "b20a18d5-c419-4e90-8519-9c8f8b3ce2ab",
- "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" : "28943e99-871b-482b-953f-cfa7138da02c",
- "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" : "2b1b738b-70f6-4b45-9d3c-a7e889b49993",
- "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" : "798ee6ea-f349-41bb-a281-7e4c22184e8c",
- "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" : "eb9568d5-d95f-4713-9622-d95ef4cf81c3",
- "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\""
- }
- }, {
- "key" : {
- "name" : "SamplePolicyModelMVEL",
- "version" : "0.0.1"
- },
- "value" : {
- "key" : {
- "name" : "SamplePolicyModelMVEL",
- "version" : "0.0.1"
- },
- "UUID" : "10979d21-947f-4920-83ae-63b827e8e80f",
- "description" : "Generated description for concept referred to by key \"SamplePolicyModelMVEL:0.0.1\""
- }
- }, {
- "key" : {
- "name" : "Task_Act0",
- "version" : "0.0.1"
- },
- "value" : {
- "key" : {
- "name" : "Task_Act0",
- "version" : "0.0.1"
- },
- "UUID" : "cb65d7fe-8d86-463c-aa16-0f4e6138d705",
- "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" : "ea2b4e7a-1a79-440c-9cf0-6fddaad64c0c",
- "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" : "269e1d08-9ab4-48b8-8854-b65deb9d41b1",
- "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" : "f9c4a91d-92aa-49ce-9b65-ab2378f6b048",
- "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" : "7fde2446-ce2a-4bc2-a675-96496c387c88",
- "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" : "bc185db6-f18f-4fdd-b5b4-37d14b57f463",
- "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" : "2c1e2ede-d67c-4845-90ac-a4d53311bfbb",
- "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" : "1d1645a2-2852-4296-9f22-8f31ebe5386a",
- "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" : "f3739d83-a029-4ad8-a0b9-e5a028b369b2",
- "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" : "5351a5a5-4134-44fd-9a6f-fd37dbfc8aa7",
- "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" : "4206bb68-e710-4a01-aade-3e34771da63b",
- "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" : "cbaab234-b586-4f63-986e-ed0b317b6c66",
- "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" : "24dbc71b-8773-4393-9c36-a5f4991e0f55",
- "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" : "42ecd25d-e8cb-48e4-890a-b0616528cf10",
- "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" : "7e691294-a816-42f8-b124-9b5eac70b116",
- "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" : "bc7cad3c-85a5-40b4-9eda-51ac2387af05",
- "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" : "4386403d-b23c-4c3e-bc14-5d581f9de2f5",
- "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" : "901a80ab-dd46-4697-b818-f669b9f9bce9",
- "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" : "cfd19e5d-ab54-4e54-b4e5-1c5eaa832622",
- "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" : "42c27d27-878d-4e9d-a139-e60c98f1c747",
- "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" : "83919fa0-ed4d-4981-908f-79913734a0f5",
- "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" : "194882b0-d987-4200-b82a-2c015605279b",
- "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" : "948d345b-39c3-4436-8036-ac9e5c561977",
- "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" : "fdad8cb5-4375-4bbf-9ffc-1e5ed8f4bae6",
- "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" : "5243c0ba-5c50-4835-a885-6cd988252bb7",
- "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" : "29f0b15f-f7c3-46e5-98d7-59a34a677968",
- "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" : "aac96de5-9f3c-452c-855f-e556cc807351",
- "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" : "7fdc1cc3-08c7-42a4-92a9-39e172fe2f1f",
- "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" : "cf60cca6-a2e8-4371-b0e5-85ecaae44acc",
- "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" : "1671f996-e14e-407d-a503-f4de09f0785b",
- "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" : "814c4c28-9027-4516-9598-adc75fafa92a",
- "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" : "33e81d08-a62b-40ce-b7ff-50734427ebf9",
- "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" : "5cd74351-8e27-4dee-a379-86124db50383",
- "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" : "e8c9a056-5e95-4e14-bc96-0c0d13a34b18",
- "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" : "92489659-02f3-4cb2-b25f-a6234ad71d36",
- "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" : "1c3b9345-32c2-4f7e-94ce-be36d0775e9e",
- "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" : "9e719a99-1d73-4d40-b097-c9622b9ea2b4",
- "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" : "3bcc8ef1-4cc5-4b7f-9dc4-83046d4a2a5d",
- "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" : "MVEL",
- "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;"
- },
- "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" : "MVEL",
- "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;"
- },
- "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" : "MVEL",
- "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;"
- },
- "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" : "MVEL",
- "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;"
- },
- "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" : "MVEL",
- "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;"
- },
- "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" : "MVEL",
- "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;"
- },
- "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" : "MVEL",
- "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;"
- },
- "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" : "MVEL",
- "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;"
- },
- "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"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestActCaseSelected",
- "value" : {
- "key" : "TestActCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestActStateTime",
- "value" : {
- "key" : "TestActStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestActCaseSelected",
- "value" : {
- "key" : "TestActCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestActStateTime",
- "value" : {
- "key" : "TestActStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestActCaseSelected",
- "value" : {
- "key" : "TestActCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestActStateTime",
- "value" : {
- "key" : "TestActStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestActCaseSelected",
- "value" : {
- "key" : "TestActCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestActStateTime",
- "value" : {
- "key" : "TestActStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "outputFields" : {
- "entry" : [ {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- },
- "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" : "MVEL",
- "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;"
- }
- }
- } ]
- }
- },
- "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"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestActStateTime",
- "value" : {
- "key" : "TestActStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- }, {
- "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"
- }
- }
- }, {
- "key" : "TestActStateTime",
- "value" : {
- "key" : "TestActStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideCaseSelected",
- "value" : {
- "key" : "TestDecideCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestDecideStateTime",
- "value" : {
- "key" : "TestDecideStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishCaseSelected",
- "value" : {
- "key" : "TestEstablishCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestEstablishStateTime",
- "value" : {
- "key" : "TestEstablishStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCase",
- "value" : {
- "key" : "TestMatchCase",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchCaseSelected",
- "value" : {
- "key" : "TestMatchCaseSelected",
- "fieldSchemaKey" : {
- "name" : "TestCase",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestMatchStateTime",
- "value" : {
- "key" : "TestMatchStateTime",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestSlogan",
- "value" : {
- "key" : "TestSlogan",
- "fieldSchemaKey" : {
- "name" : "TestSlogan",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTemperature",
- "value" : {
- "key" : "TestTemperature",
- "fieldSchemaKey" : {
- "name" : "TestTemperature",
- "version" : "0.0.1"
- }
- }
- }, {
- "key" : "TestTimestamp",
- "value" : {
- "key" : "TestTimestamp",
- "fieldSchemaKey" : {
- "name" : "TestTimestamp",
- "version" : "0.0.1"
- }
- }
- } ]
- }
- }
- } ]
- }
- },
- "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"
- }
- } ]
- }
- }
- }
-} \ No newline at end of file
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json
index 46da3970a..77079c63e 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json
@@ -1,75 +1,75 @@
{
- "engineServiceParameters": {
- "name": "MyApexEngine",
- "version": "0.0.1",
- "id": 45,
- "instanceCount": 4,
- "deploymentPort": 12561,
- "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json",
- "engineParameters": {
- "executorParameters": {
- "MVEL": {
- "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters"
- }
- }
- }
- },
- "eventInputParameters": {
- "FileConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsIn.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- }
- },
- "RestRequestorConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
- "parameters": {
- "url": "http://localhost:32801/TestRESTRequestor/apex/event/DeleteEvent",
- "httpMethod": "DELETE",
- "restRequestTimeout": 2000
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0100",
- "requestorMode": true,
- "requestorPeer": "RestRequestorProducer",
- "requestorTimeout": 500
- }
- },
- "eventOutputParameters": {
- "RestRequestorProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0004",
- "requestorMode": true,
- "requestorPeer": "RestRequestorConsumer",
- "requestorTimeout": 500
- },
- "FileProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsOut.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0104"
- }
- }
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FileConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "RestRequestorConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRESTRequestor/apex/event/DeleteEvent",
+ "httpMethod": "DELETE",
+ "restRequestTimeout": 2000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorProducer",
+ "requestorTimeout": 2000
+ }
+ },
+ "eventOutputParameters": {
+ "RestRequestorProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "RequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorConsumer",
+ "requestorTimeout": 2000
+ },
+ "FileProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "BasicEvent"
+ }
+ }
}
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json
index 3c1d314fe..09cf0f051 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json
@@ -1,75 +1,75 @@
{
- "engineServiceParameters": {
- "name": "MyApexEngine",
- "version": "0.0.1",
- "id": 45,
- "instanceCount": 4,
- "deploymentPort": 12561,
- "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json",
- "engineParameters": {
- "executorParameters": {
- "MVEL": {
- "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters"
- }
- }
- }
- },
- "eventInputParameters": {
- "FileConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsIn.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- }
- },
- "RestRequestorConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
- "parameters": {
- "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent",
- "httpMethod": "GET",
- "restRequestTimeout": 2000
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0100",
- "requestorMode": true,
- "requestorPeer": "RestRequestorProducer",
- "requestorTimeout": 500
- }
- },
- "eventOutputParameters": {
- "RestRequestorProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0004",
- "requestorMode": true,
- "requestorPeer": "RestRequestorConsumer",
- "requestorTimeout": 500
- },
- "FileProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsOut.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0104"
- }
- }
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FileConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "RestRequestorConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent",
+ "httpMethod": "GET",
+ "restRequestTimeout": 2000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorProducer",
+ "requestorTimeout": 2000
+ }
+ },
+ "eventOutputParameters": {
+ "RestRequestorProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "RequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorConsumer",
+ "requestorTimeout": 2000
+ },
+ "FileProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "BasicEvent"
+ }
+ }
}
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json
index 9ebe89df5..f9c916d4b 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json
@@ -1,71 +1,71 @@
{
- "engineServiceParameters": {
- "name": "MyApexEngine",
- "version": "0.0.1",
- "id": 45,
- "instanceCount": 4,
- "deploymentPort": 12561,
- "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json",
- "engineParameters": {
- "executorParameters": {
- "MVEL": {
- "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters"
- }
- }
- }
- },
- "eventInputParameters": {
- "FileConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsIn.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- }
- },
- "RestRequestorConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
- "parameters": {
- "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent",
- "httpMethod": "GET",
- "restRequestTimeout": 2000
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0100",
- "requestorMode": true,
- "requestorPeer": "RestRequestorProducer",
- "requestorTimeout": 500
- }
- },
- "eventOutputParameters": {
- "RestRequestorProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- }
- },
- "FileProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsOut.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0104"
- }
- }
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FileConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "RestRequestorConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent",
+ "httpMethod": "GET",
+ "restRequestTimeout": 2000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorProducer",
+ "requestorTimeout": 2000
+ }
+ },
+ "eventOutputParameters": {
+ "RestRequestorProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "FileProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "BasicEvent"
+ }
+ }
}
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json
index 424d2b454..b7b9a44d9 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json
@@ -1,129 +1,129 @@
{
- "engineServiceParameters": {
- "name": "MyApexEngine",
- "version": "0.0.1",
- "id": 45,
- "instanceCount": 4,
- "deploymentPort": 12561,
- "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json",
- "engineParameters": {
- "executorParameters": {
- "MVEL": {
- "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters"
- }
- }
- }
- },
- "eventInputParameters": {
- "FileConsumer0": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsInMulti.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- }
- },
- "RestRequestorConsumer0": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
- "parameters": {
- "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent",
- "httpMethod": "GET",
- "restRequestTimeout": 2000
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0100",
- "requestorMode": true,
- "requestorPeer": "RestRequestorProducer0",
- "requestorTimeout": 500
- },
- "FileConsumer1": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsInMulti.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- }
- },
- "RestRequestorConsumer1": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
- "parameters": {
- "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent",
- "httpMethod": "GET",
- "restRequestTimeout": 2000
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0100",
- "requestorMode": true,
- "requestorPeer": "RestRequestorProducer1",
- "requestorTimeout": 500
- }
- },
- "eventOutputParameters": {
- "RestRequestorProducer0": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0004",
- "requestorMode": true,
- "requestorPeer": "RestRequestorConsumer0",
- "requestorTimeout": 500
- },
- "FileProducer0": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsOutMulti0.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0104"
- },
- "RestRequestorProducer1": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0004",
- "requestorMode": true,
- "requestorPeer": "RestRequestorConsumer1",
- "requestorTimeout": 500
- },
- "FileProducer1": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsOutMulti1.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0104"
- }
- }
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FileConsumer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsInMulti.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "RestRequestorConsumer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent",
+ "httpMethod": "GET",
+ "restRequestTimeout": 2000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorProducer0",
+ "requestorTimeout": 2000
+ },
+ "FileConsumer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsInMulti.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "RestRequestorConsumer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent",
+ "httpMethod": "GET",
+ "restRequestTimeout": 2000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorProducer1",
+ "requestorTimeout": 2000
+ }
+ },
+ "eventOutputParameters": {
+ "RestRequestorProducer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "RequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorConsumer0",
+ "requestorTimeout": 2000
+ },
+ "FileProducer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsOutMulti0.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "BasicEvent"
+ },
+ "RestRequestorProducer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "RequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorConsumer1",
+ "requestorTimeout": 2000
+ },
+ "FileProducer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsOutMulti1.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "BasicEvent"
+ }
+ }
}
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json
index 4fcbf59d9..b50b8bd20 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json
@@ -1,54 +1,54 @@
{
- "engineServiceParameters": {
- "name": "MyApexEngine",
- "version": "0.0.1",
- "id": 45,
- "instanceCount": 4,
- "deploymentPort": 12561,
- "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json",
- "engineParameters": {
- "executorParameters": {
- "MVEL": {
- "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters"
- }
- }
- }
- },
- "eventInputParameters": {
- "FileConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsIn.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- }
- }
- },
- "eventOutputParameters": {
- "RestRequestorProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0004"
- },
- "FileProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsOut.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0104"
- }
- }
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FileConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "RestRequestorProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "Event0004"
+ },
+ "FileProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "Event0104"
+ }
+ }
}
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json
index fe5af67ee..8d6d4ca4a 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json
@@ -1,75 +1,75 @@
{
- "engineServiceParameters": {
- "name": "MyApexEngine",
- "version": "0.0.1",
- "id": 45,
- "instanceCount": 4,
- "deploymentPort": 12561,
- "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json",
- "engineParameters": {
- "executorParameters": {
- "MVEL": {
- "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters"
- }
- }
- }
- },
- "eventInputParameters": {
- "FileConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsIn.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- }
- },
- "RestRequestorConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
- "parameters": {
- "url": "http://localhost:32801/TestRESTRequestor/apex/event/PostEvent",
- "httpMethod": "POST",
- "restRequestTimeout": 2000
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0100",
- "requestorMode": true,
- "requestorPeer": "RestRequestorProducer",
- "requestorTimeout": 500
- }
- },
- "eventOutputParameters": {
- "RestRequestorProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0004",
- "requestorMode": true,
- "requestorPeer": "RestRequestorConsumer",
- "requestorTimeout": 500
- },
- "FileProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsOut.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0104"
- }
- }
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FileConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "RestRequestorConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRESTRequestor/apex/event/PostEvent",
+ "httpMethod": "POST",
+ "restRequestTimeout": 2000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorProducer",
+ "requestorTimeout": 2000
+ }
+ },
+ "eventOutputParameters": {
+ "RestRequestorProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "RequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorConsumer",
+ "requestorTimeout": 2000
+ },
+ "FileProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "BasicEvent"
+ }
+ }
}
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json
index e78446447..ac418e623 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json
@@ -1,75 +1,75 @@
{
- "engineServiceParameters": {
- "name": "MyApexEngine",
- "version": "0.0.1",
- "id": 45,
- "instanceCount": 4,
- "deploymentPort": 12561,
- "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json",
- "engineParameters": {
- "executorParameters": {
- "MVEL": {
- "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters"
- }
- }
- }
- },
- "eventInputParameters": {
- "FileConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsIn.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- }
- },
- "RestRequestorConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
- "parameters": {
- "url": "http://localhost:32801/TestRESTRequestor/apex/event/PutEvent",
- "httpMethod": "PUT",
- "restRequestTimeout": 2000
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0100",
- "requestorMode": true,
- "requestorPeer": "RestRequestorProducer",
- "requestorTimeout": 500
- }
- },
- "eventOutputParameters": {
- "RestRequestorProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTREQUESTOR",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0004",
- "requestorMode": true,
- "requestorPeer": "RestRequestorConsumer",
- "requestorTimeout": 500
- },
- "FileProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "FILE",
- "parameters": {
- "fileName": "src/test/resources/events/EventsOut.json"
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "eventNameFilter": "Event0104"
- }
- }
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FileConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "RestRequestorConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRESTRequestor/apex/event/PutEvent",
+ "httpMethod": "PUT",
+ "restRequestTimeout": 2000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "ResponseEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorProducer",
+ "requestorTimeout": 2000
+ }
+ },
+ "eventOutputParameters": {
+ "RestRequestorProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTREQUESTOR",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "RequestEvent",
+ "requestorMode": true,
+ "requestorPeer": "RestRequestorConsumer",
+ "requestorTimeout": 2000
+ },
+ "FileProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/EventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "BasicEvent"
+ }
+ }
}