From: Jozsef Csongvai Date: Tue, 6 Sep 2022 23:05:02 +0000 (-0400) Subject: Create dynamic data-type using all workflow steps X-Git-Tag: 1.4.0~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F130781%2F1;p=ccsdk%2Fcds.git Create dynamic data-type using all workflow steps Only the first step was used to create dynamic data-type in imperative workflows. Unless the first step was targeting resource resolution component, the dynamic data-type would not be created. This prevents resolution of workflow input properties. Issue-ID: CCSDK-3764 Signed-off-by: Jozsef Csongvai Change-Id: Ic51808f2ee0d74d6c4b07565e0caf12adc3e2590 --- diff --git a/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/enhancer/BluePrintWorkflowEnhancerImpl.kt b/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/enhancer/BluePrintWorkflowEnhancerImpl.kt index dd60acac1..d7c2e077b 100644 --- a/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/enhancer/BluePrintWorkflowEnhancerImpl.kt +++ b/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/enhancer/BluePrintWorkflowEnhancerImpl.kt @@ -129,7 +129,7 @@ open class BluePrintWorkflowEnhancerImpl( dependencyNodeTemplates = JacksonUtils.getListFromJsonNode(dependencyNodeTemplateNodes, String::class.java) } else { - dependencyNodeTemplates = listOf(nodeTemplateName) + bluePrintContext.workflowByName(name).steps!!.map { it.value.target!! }.let { dependencyNodeTemplates = it } } log.info("workflow($name) dependent component NodeTemplates($dependencyNodeTemplates)")