Store step inputs to blueprint runtime service.
authorMuthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
Thu, 6 Dec 2018 18:25:36 +0000 (13:25 -0500)
committerMuthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
Thu, 6 Dec 2018 18:25:36 +0000 (13:25 -0500)
Change-Id: Ib01edfc358625d25ac0625f88739c7c57f7f967c
Issue-ID: CCSDK-670
Signed-off-by: Muthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/CustomFunctions.kt
components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/interfaces/BlueprintFunctionNode.kt

index 2329fc9..4d1d9b6 100644 (file)
@@ -49,6 +49,10 @@ fun Double.asJsonPrimitive(): DoubleNode {
     return DoubleNode.valueOf(this)\r
 }\r
 \r
+fun MutableMap<String, *>.asJsonNode(): JsonNode {\r
+    return JacksonUtils.jsonNodeFromObject(this)\r
+}\r
+\r
 fun format(message: String, vararg args: Any?): String {\r
     if (args != null && args.isNotEmpty()) {\r
         return MessageFormatter.arrayFormat(message, args).message\r