Enable WorkflowActionBB to skip last building block 24/122124/3
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Sat, 29 May 2021 10:48:46 +0000 (06:48 -0400)
committerJozsef Csongvai <jozsef.csongvai@bell.ca>
Wed, 4 Aug 2021 12:52:23 +0000 (12:52 +0000)
commitaced60c11508e1267580492b95372f0b088e2ad9
tree6df98a73334ed4bb8a96888c448a20be01efd8bb
parent872613eafe80034cca612bd93294286b3dbed4b1
Enable WorkflowActionBB to skip last building block

WorkflowActionBB does not take into account flowmanipulators such as
SkipCDSBuildingBlockListener, which increment the current index of
building blocks to execute. In the case where ControllerExecutionBB is
the last building block and should be skipped, the index would be
incremented beyond bounds and cause exception. WorkflowActionBB needs
to check if the flow has been completed before it tries to execute the
next building block.

Issue-ID: SO-3678
Change-Id: I635c12a568c3b98031cbeb37ef521663d96b852b
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
bpmn/MSOCommonBPMN/src/main/java/org/onap/so/bpmn/common/listener/flowmanipulator/FlowManipulatorListenerRunner.java
bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/WorkflowActionBB.bpmn
bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBTasks.java
bpmn/so-bpmn-tasks/src/test/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBTasksTest.java