Fix payload has not been init in aysnc 74/88274/2
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 22 May 2019 15:31:03 +0000 (11:31 -0400)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 22 May 2019 17:53:14 +0000 (17:53 +0000)
Change-Id: I6c8c0fca6ffd7f7cc9814a5b88889c5f67cbd52f
Issue-ID: CCSDK-1354
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/ExecutionServiceHandler.kt

index 1e09bee..5a4f3de 100644 (file)
@@ -140,10 +140,10 @@ class ExecutionServiceHandler(private val bluePrintPathConfiguration: BluePrintP
         val executionServiceOutput = ExecutionServiceOutput()
         executionServiceOutput.commonHeader = executionServiceInput.commonHeader
         executionServiceOutput.actionIdentifiers = executionServiceInput.actionIdentifiers
+        executionServiceOutput.payload = executionServiceInput.payload
 
         val status = Status()
         if (failure) {
-            executionServiceOutput.payload = JsonNodeFactory.instance.objectNode()
             setErrorStatus(errorMessage, status)
         } else {
             status.eventType = EventType.EVENT_COMPONENT_PROCESSING.name