From 3ac2c805850162882cea6e0fedaa2e2fce4aa8c2 Mon Sep 17 00:00:00 2001 From: sr20255772 Date: Mon, 28 Nov 2022 12:28:40 +0000 Subject: Support Activate,Deactivate and Terminate feature for NSMF based TN slices Issue-ID: SO-4029 Signed-off-by: sr20255772 Change-Id: I97f0c610c55fb19fbcd0f9ae441b6826800820ab --- .../resources/subprocess/DoActivateAccessNSSI.bpmn | 228 +++++++++--------- .../resources/subprocess/DoDeallocateNSSI.bpmn | 4 +- .../subprocess/DoDeallocateTransportNSSI.bpmn | 264 +++++++++++---------- 3 files changed, 257 insertions(+), 239 deletions(-) (limited to 'bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess') diff --git a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoActivateAccessNSSI.bpmn b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoActivateAccessNSSI.bpmn index b1561357ae..559466413a 100644 --- a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoActivateAccessNSSI.bpmn +++ b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoActivateAccessNSSI.bpmn @@ -1,5 +1,5 @@ - + Flow_0rh43xe @@ -37,7 +37,7 @@ Flow_1876ml0 - + Flow_0uxerfg Flow_00vt4gf Flow_0g9k299 @@ -46,7 +46,9 @@ #{execution.getVariable("shouldChangeSPStatus") == true} - + + #{execution.getVariable("shouldChangeSPStatus") == false} + Flow_1yd57bl Flow_0zjaac9 @@ -550,6 +552,35 @@ activator.prepareUpdateJobStatus(execution,"finished","100","AN NSSI activation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -760,35 +791,6 @@ activator.prepareUpdateJobStatus(execution,"finished","100","AN NSSI activation - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -801,6 +803,12 @@ activator.prepareUpdateJobStatus(execution,"finished","100","AN NSSI activation + + + + + + @@ -813,6 +821,12 @@ activator.prepareUpdateJobStatus(execution,"finished","100","AN NSSI activation + + + + + + @@ -822,7 +836,7 @@ activator.prepareUpdateJobStatus(execution,"finished","100","AN NSSI activation - + @@ -900,41 +914,59 @@ activator.prepareUpdateJobStatus(execution,"finished","100","AN NSSI activation - - - - - + + - - - - - + + + + + + + + + + + + + + + + + + - - - - - + + - - - - - + + - - - - - + + - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -1032,59 +1064,29 @@ activator.prepareUpdateJobStatus(execution,"finished","100","AN NSSI activation - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - - - + + + + + - - + + + + + - - + + + + + diff --git a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoDeallocateNSSI.bpmn b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoDeallocateNSSI.bpmn index 85533e72dc..a1cf7388e7 100644 --- a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoDeallocateNSSI.bpmn +++ b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoDeallocateNSSI.bpmn @@ -131,7 +131,9 @@ dnssi.prepareJobStatusRequest(execution) SequenceFlow_1wpbkt9 - + + #{(execution.getVariable("isNSSIDeAllocated" ) == false)} + SequenceFlow_1ii5002 diff --git a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoDeallocateTransportNSSI.bpmn b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoDeallocateTransportNSSI.bpmn index 48978500e3..fd24568210 100644 --- a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoDeallocateTransportNSSI.bpmn +++ b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoDeallocateTransportNSSI.bpmn @@ -1,5 +1,5 @@ - + SequenceFlow_03s744c @@ -154,11 +154,11 @@ deallocator.performOofNSSITerminationCall(execution) - Flow_1oxjcb2 + Flow_0sc59nw - + Flow_083usqs @@ -176,12 +176,73 @@ deallocator.performOofNSSITerminationCall(execution) + + Flow_1oxjcb2 + Flow_0sc59nw + import org.onap.so.bpmn.infrastructure.scripts.* +def runScript = new DoDeallocateTnNssi() +runScript.deleteServiceInstance(execution) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -197,8 +258,8 @@ deallocator.performOofNSSITerminationCall(execution) - - + + @@ -216,120 +277,63 @@ deallocator.performOofNSSITerminationCall(execution) - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - + + - + - - - + + + - + - - - - - - - + - - - - - + + - - - - - + + - - + + - + - - - - - + + - - - - - + + + + + + + + + + - - + + - - - - - + + @@ -340,22 +344,22 @@ deallocator.performOofNSSITerminationCall(execution) + + + + + + - - - - - - - - + + - + @@ -364,31 +368,41 @@ deallocator.performOofNSSITerminationCall(execution) + + + - - + + + + + - - + + + + + - - - - - - - - - - + + + + + - - + + + + + - - + + + + + -- cgit 1.2.3-korg