From 5fd0452387ccff6995c19ec5eeb7866328e34cbc Mon Sep 17 00:00:00 2001 From: sreeja gattagouni Date: Fri, 9 Sep 2022 16:16:30 +0530 Subject: Rollback Scenario for recursive orchestration -Child Services may fail in any of the BB's while creation of composite services, to handle in efficient manner, it is complied with existing rollback logic. -In case of Child Services >1 , when Workflow fails, the instantiated child remains in COMPLETED status, thus rollback changes ensure that such services are Deleted by triggering DeleteChildSvcBB. -Parent Service is ROLLED-BACK in case of any child service failing in the workflow. Instantiated child services are Deleted from AAI as well. Issue-ID: SO-3982 Change-ID:I73f97f986a817d423f92f8d922dcd9647b8a2503 Signed-off-by: sreeja gattagouni --- .../BuildingBlock/DeleteChildServiceBB.bpmn | 173 ++++++++++++++++----- 1 file changed, 132 insertions(+), 41 deletions(-) (limited to 'bpmn/so-bpmn-building-blocks/src/main/resources/subprocess') diff --git a/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/DeleteChildServiceBB.bpmn b/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/DeleteChildServiceBB.bpmn index 3be6d32792..b065ca1523 100644 --- a/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/DeleteChildServiceBB.bpmn +++ b/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/DeleteChildServiceBB.bpmn @@ -1,5 +1,5 @@ - + SequenceFlow_01wirq3 @@ -18,8 +18,7 @@ PT5H - - + @@ -29,93 +28,185 @@ SequenceFlow_0v4loyx + Flow_0wfcckg ${execution.getVariable("CHILD_SVC_REQ_STATUS")=="COMPLETED"} - - SequenceFlow_01wirq3 - SequenceFlow_0q6aqsk - - SequenceFlow_0q6aqsk + Flow_0b6onv7 + Flow_0o9v00r SequenceFlow_14d89qf SequenceFlow_12rysg7 + + + Flow_1a6111h + Flow_0zrdr8f + + + Flow_0zrdr8f + Flow_0wfcckg + Flow_046pbsy + + + ${execution.getVariable("CHILD_SVC_REQ_STATUS") == "fail" && execution.getVariable("requestAction") == "createInstance" } + + + Flow_046pbsy + Flow_0o9v00r + + + + + Flow_168wu4x + Flow_0b6onv7 + + + Flow_1j43din + Flow_1a6111h + Flow_168wu4x + + + + ${execution.getVariable("requestAction") == "deleteInstance" } + + + + + SequenceFlow_01wirq3 + Flow_1j43din + + + + + + + + + + + + + + + + + + + + - - + + - - + + - + - - + + + - + - - + + - - - - - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + - + - + - + - + - - + + + + + + + + - + - - + + + + + + + + + + + + + + - + - + -- cgit 1.2.3-korg