diff options
author | 2019-10-14 22:16:15 +0000 | |
---|---|---|
committer | 2019-10-14 22:16:15 +0000 | |
commit | 626cce5c6921376fa0ad3d927cec391b19c45b3a (patch) | |
tree | e789a06f3ffa4e275ea12350ba10fe07bd724394 /components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt | |
parent | eed407003be0586fd93d8bced4daa32975a24794 (diff) | |
parent | aecf1a0e9e03ecf9ecf631d8c8a38539313be31a (diff) |
Merge "Component Script Executor Fix"
Diffstat (limited to 'components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt')
-rw-r--r-- | components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt index d29abb0d2..9552b6136 100644 --- a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt +++ b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt @@ -35,7 +35,8 @@ open class Check : AbstractScriptComponentFunction() { override suspend fun processNB(executionRequest: ExecutionServiceInput) { log.info("Executing process : ${executionRequest.payload}") - val data = executionRequest.payload.at("/check-request/data") + val data = requestPayloadActionProperty("data")?.first() + ?: throw BluePrintProcessorException("Failed to load payload data properties.") log.info("Data : ${data.asJsonString()}") |