From b2ee1e9c0b43722b3a573b08a0f60dd35cd2ef3f Mon Sep 17 00:00:00 2001 From: Enbo Wang Date: Thu, 19 Mar 2020 23:27:16 +0800 Subject: Fix PNF software upgrade workflow Fix the issue that API can not return when the workflow has ended. Issue-ID: SO-2751 Signed-off-by: Enbo Wang Change-Id: I7d140b2286ce3003a6efcd2c3891fc8142982477 --- .../main/resources/process/PNFSWUPDownload.bpmn | 221 +++++++++++++++----- .../main/resources/process/PNFSoftwareUpgrade.bpmn | 230 +++++++++++++++------ 2 files changed, 338 insertions(+), 113 deletions(-) (limited to 'bpmn/so-bpmn-infrastructure-flows/src/main') diff --git a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/PNFSWUPDownload.bpmn b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/PNFSWUPDownload.bpmn index 24ca7104a7..5d523194bb 100644 --- a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/PNFSWUPDownload.bpmn +++ b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/PNFSWUPDownload.bpmn @@ -1,15 +1,15 @@ - + SequenceFlow_1fdclh0 SequenceFlow_1fdclh0 - SequenceFlow_12155q6 + SequenceFlow_0kusy70 - SequenceFlow_1d2rfyx + SequenceFlow_0mjjdia @@ -32,8 +32,8 @@ SequenceFlow_1kaikh5 - SequenceFlow_1d2rfyx SequenceFlow_1gawssm + SequenceFlow_1d2rfyx SequenceFlow_1gawssm @@ -73,10 +73,7 @@ SequenceFlow_1ccldpp - - - #{execution.getVariable("ControllerStatus").equals("Success")} - + @@ -89,113 +86,229 @@ #{execution.getVariable("ControllerStatus").equals("Success")} + + + SequenceFlow_0swi04u + + + + SequenceFlow_0swi04u + SequenceFlow_1ppn4a8 + import org.onap.so.bpmn.infrastructure.scripts.* +def pnfSwUpgrade = new PNFSoftwareUpgrade() +pnfSwUpgrade.prepareFalloutHandler(execution) + + + + + + SequenceFlow_1ppn4a8 + SequenceFlow_1ahmdun + + + SequenceFlow_1ahmdun + + + + + + + + SequenceFlow_0kusy70 + SequenceFlow_12155q6 + import org.onap.so.bpmn.infrastructure.scripts.* +def pnfSwUpgrade = new PNFSoftwareUpgrade() +pnfSwUpgrade.sendResponse(execution) + + + + SequenceFlow_1d2rfyx + SequenceFlow_183s0wo + import org.onap.so.bpmn.infrastructure.scripts.* +def pnfSwUpgrade = new PNFSoftwareUpgrade() +pnfSwUpgrade.prepareCompletion(execution) + + + + + + SequenceFlow_183s0wo + SequenceFlow_0mjjdia + + + + #{execution.getVariable("ControllerStatus").equals("Success")} + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - - - - - - - - - + + + + + + - - + + - - + + - + - - + + - - + + - + - - + + - + - - + + - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/PNFSoftwareUpgrade.bpmn b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/PNFSoftwareUpgrade.bpmn index 8d59dac8ac..4ff0af4549 100644 --- a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/PNFSoftwareUpgrade.bpmn +++ b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/PNFSoftwareUpgrade.bpmn @@ -1,5 +1,5 @@ - + SequenceFlow_1ng4b6l @@ -8,9 +8,9 @@ SequenceFlow_1ng4b6l SequenceFlow_12ejx4m - + - SequenceFlow_1atiydu + SequenceFlow_0tle5zb @@ -60,7 +60,7 @@ #{execution.getVariable("ControllerStatus").equals("Success")} - + #{execution.getVariable("ControllerStatus").equals("Success")} @@ -110,7 +110,7 @@ async - SequenceFlow_12ejx4m + SequenceFlow_0ks3p41 SequenceFlow_0j26xlx @@ -119,9 +119,59 @@ SequenceFlow_084orr1 + + SequenceFlow_12ejx4m + SequenceFlow_0ks3p41 + import org.onap.so.bpmn.infrastructure.scripts.* +def pnfSwUpgrade = new PNFSoftwareUpgrade() +pnfSwUpgrade.sendResponse(execution) + + + + SequenceFlow_1atiydu + SequenceFlow_0ipc3nt + import org.onap.so.bpmn.infrastructure.scripts.* +def pnfSwUpgrade = new PNFSoftwareUpgrade() +pnfSwUpgrade.prepareCompletion(execution) + + + + + + + SequenceFlow_0ipc3nt + SequenceFlow_0tle5zb + + + + + SequenceFlow_05haut5 + + + + SequenceFlow_05haut5 + SequenceFlow_09y0mpc + import org.onap.so.bpmn.infrastructure.scripts.* +def pnfSwUpgrade = new PNFSoftwareUpgrade() +pnfSwUpgrade.prepareFalloutHandler(execution) + + + + + + SequenceFlow_09y0mpc + SequenceFlow_1tcjlty + + + SequenceFlow_1tcjlty + + + + + + - @@ -131,142 +181,204 @@ - + - - + + - + - + - + - + - + - + - - + + - + - + - - + + - + - - + + - + - + - + - - + + - + - + - + - - + + - + - - + + - + - - + + + + + + - + - - + + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit 1.2.3-korg