aboutsummaryrefslogtreecommitdiffstats
path: root/examples/examples-grpc/src/main/resources/logic/CreateSubscriptionPayloadTask.js
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-11-16 16:20:00 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-16 16:20:00 +0000
commit6a84e64998c749182c1a49301a245918724123d9 (patch)
tree672fc84d3da532975f0517fcfbd776799d6e5a93 /examples/examples-grpc/src/main/resources/logic/CreateSubscriptionPayloadTask.js
parent17527ee82c63b8671224b3340e379e0bfcce6ba1 (diff)
parentfd5ee076b2ecf9fc5151090cf8a9b49fac6cf055 (diff)
Merge "Update gRPC example for JSON Stringify"
Diffstat (limited to 'examples/examples-grpc/src/main/resources/logic/CreateSubscriptionPayloadTask.js')
-rw-r--r--examples/examples-grpc/src/main/resources/logic/CreateSubscriptionPayloadTask.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/examples-grpc/src/main/resources/logic/CreateSubscriptionPayloadTask.js b/examples/examples-grpc/src/main/resources/logic/CreateSubscriptionPayloadTask.js
index 48f31847b..85e7ae2e9 100644
--- a/examples/examples-grpc/src/main/resources/logic/CreateSubscriptionPayloadTask.js
+++ b/examples/examples-grpc/src/main/resources/logic/CreateSubscriptionPayloadTask.js
@@ -35,11 +35,14 @@ var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNew
payloadEntry.put("create_DasH_subscription_DasH_properties", payloadProperties)
var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance();
+var payloadSchemaHelper = executor.subject.getOutFieldSchemaHelper("payload");
payload.put("create_DasH_subscription_DasH_request", payloadEntry);
-executor.outFields.put("albumID", executor.inFields.get("albumID"))
+executor.logger.info("CDS payload - " + executor.stringify2Json( payload, payloadSchemaHelper));
+
+executor.outFields.put("albumID", executor.inFields.get("albumID"));
executor.outFields.put("payload", payload);
-executor.logger.info("Sending Create Subscription Event to CDS")
+executor.logger.info("Sending Create Subscription Event to CDS");
-true;
+true; \ No newline at end of file