added list of flows to execution for cockpit 85/77685/1
authorBenjamin, Max (mb388a) <mb388a@us.att.com>
Fri, 1 Feb 2019 03:57:53 +0000 (22:57 -0500)
committerBenjamin, Max (mb388a) <mb388a@us.att.com>
Fri, 1 Feb 2019 03:58:07 +0000 (22:58 -0500)
added list of flows to execution for cockpit readability

Change-Id: Ia289ab59627b315320b097adaf2cf43cd5dc7543
Issue-ID: SO-1452
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java

index bff320a..0c0e146 100644 (file)
@@ -321,12 +321,13 @@ public class WorkflowAction {
                        if (flowsToExecute.isEmpty()) {
                                throw new IllegalStateException("Macro did not come up with a valid execution path.");
                        }
-
+                       List<String> flowNames = new ArrayList<>();
                        logger.info("List of BuildingBlocks to execute:");
                        for (ExecuteBuildingBlock ebb : flowsToExecute) {
                                logger.info(ebb.getBuildingBlock().getBpmnFlowName());
+                               flowNames.add(ebb.getBuildingBlock().getBpmnFlowName());
                        }
-
+                       execution.setVariable("flowNames", flowNames);
                        execution.setVariable(G_CURRENT_SEQUENCE, 0);
                        execution.setVariable("retryCount", 0);
                        execution.setVariable("isRollback", false);