diff options
author | Dan Timoney <dtimoney@att.com> | 2018-12-11 15:18:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-12-11 15:18:55 +0000 |
commit | c43a5074736a42696ed947d9797dcc69b738330b (patch) | |
tree | bf46b79636977ec5837ce137b131df356a9dcf39 /components | |
parent | a450cf74eded64517865fc52d4a1a071a39f9abe (diff) | |
parent | d9fdc75c0db6150363a3bd63055fe5f323ce1727 (diff) |
Merge "Store step inputs to blueprint runtime service."
Diffstat (limited to 'components')
2 files changed, 6 insertions, 0 deletions
diff --git a/components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/CustomFunctions.kt b/components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/CustomFunctions.kt index 2329fc93..4d1d9b65 100644 --- a/components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/CustomFunctions.kt +++ b/components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/CustomFunctions.kt @@ -49,6 +49,10 @@ fun Double.asJsonPrimitive(): DoubleNode { return DoubleNode.valueOf(this)
}
+fun MutableMap<String, *>.asJsonNode(): JsonNode {
+ return JacksonUtils.jsonNodeFromObject(this)
+}
+
fun format(message: String, vararg args: Any?): String {
if (args != null && args.isNotEmpty()) {
return MessageFormatter.arrayFormat(message, args).message
diff --git a/components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/interfaces/BlueprintFunctionNode.kt b/components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/interfaces/BlueprintFunctionNode.kt index 6add70e6..0b9f1f18 100644 --- a/components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/interfaces/BlueprintFunctionNode.kt +++ b/components/core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/interfaces/BlueprintFunctionNode.kt @@ -22,6 +22,8 @@ import java.util.function.Function interface BlueprintFunctionNode<T, R> : Function<T, R> { + fun getName(): String + @Throws(BluePrintProcessorException::class) fun prepareRequest(executionRequest: T): T |