From fa9a707c87654330dfb5788a6029b8199c6cdf17 Mon Sep 17 00:00:00 2001 From: "Boslet, Cory" Date: Thu, 16 Apr 2020 10:43:38 -0400 Subject: move network adapter to an external client task Began impelenting new network external task. Made the vnfAdapterTask subflow an openstack subflow, refactored infra flows and BB to call it for network functions. Fixed bugs discovered through a robot dry run, added unit test, added support for rollback network request Updated junit test files for comparison due to not polling for response Removed the no longer used network adapter rest task from bpmn tasks Removed the unused network adapter async and its beans Removed network async client package from open pojo scan Issue-ID: SO-2813 Signed-off-by: Benjamin, Max (mb388a) Change-Id: I4c25892012cc86659ab122448ed1aca5cab91671 --- .../DoCreateNetworkInstanceRollback.bpmn | 267 +++++++++++---------- 1 file changed, 142 insertions(+), 125 deletions(-) (limited to 'bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoCreateNetworkInstanceRollback.bpmn') diff --git a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoCreateNetworkInstanceRollback.bpmn b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoCreateNetworkInstanceRollback.bpmn index 6a4861b9a4..5103fa9d0a 100644 --- a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoCreateNetworkInstanceRollback.bpmn +++ b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/DoCreateNetworkInstanceRollback.bpmn @@ -1,5 +1,5 @@ - + SequenceFlow_1krl2dg @@ -7,9 +7,9 @@ SequenceFlow_1krl2dg SequenceFlow_0u41iz2 - import org.onap.so.bpmn.infrastructure.scripts.* def DoCreateNetworkInstanceRollback = new DoCreateNetworkInstanceRollback() -DoCreateNetworkInstanceRollback.preProcessRequest(execution)]]> +DoCreateNetworkInstanceRollback.preProcessRequest(execution) @@ -72,9 +72,9 @@ DoCreateNetworkInstanceRollback.preProcessRequest(execution)]]> SequenceFlow_0qc4v9t SequenceFlow_0el8yzs SequenceFlow_0yto4gz - import org.onap.so.bpmn.infrastructure.scripts.* def DoCreateNetworkInstanceRollback = new DoCreateNetworkInstanceRollback() -DoCreateNetworkInstanceRollback.validateRollbackResponses(execution)]]> +DoCreateNetworkInstanceRollback.validateRollbackResponses(execution) SequenceFlow_1lteduj @@ -84,20 +84,20 @@ DoCreateNetworkInstanceRollback.validateRollbackResponses(execution)]]> - + #{execution.getVariable("CRENWKIR_rollbackActivateSDNCRequest") != null} - - + + #{execution.getVariable("CRENWKIR_rollbackNetworkRequest") != null} - + #{execution.getVariable("CRENWKIR_rollbackSDNCRequest") != null} - + #{execution.getVariable("sdncVersion") != '1610'} SequenceFlow_0yto4gz @@ -109,9 +109,9 @@ DoCreateNetworkInstanceRollback.validateRollbackResponses(execution)]]> SequenceFlow_0xktw7v SequenceFlow_0soe5t3 - import org.onap.so.bpmn.infrastructure.scripts.* def DoCreateNetworkInstanceRollback = new DoCreateNetworkInstanceRollback() -DoCreateNetworkInstanceRollback.processJavaException(execution)]]> +DoCreateNetworkInstanceRollback.processJavaException(execution) SequenceFlow_0xktw7v @@ -137,9 +137,9 @@ DoCreateNetworkInstanceRollback.processJavaException(execution)]]> SequenceFlow_0q0te67 SequenceFlow_0lomcvn - import org.onap.so.bpmn.infrastructure.scripts.* execution.setVariable("workflowException", execution.getVariable("WorkflowException") -]]> + @@ -172,29 +172,41 @@ execution.setVariable("workflowException", execution.getVariable("WorkflowExcept - - SequenceFlow_0e1uixp + + Flow_0t2n952 SequenceFlow_17o4w67 - import org.onap.so.bpmn.infrastructure.scripts.* def DoCreateNetworkInstanceRollback = new DoCreateNetworkInstanceRollback() -DoCreateNetworkInstanceRollback.callPONetworkAdapter(execution)]]> +DoCreateNetworkInstanceRollback.setNetworkAdapterResponseCode(execution) - + + + + + + SequenceFlow_0e1uixp + Flow_0t2n952 + + + + Include ONLY inputs/varrables:   rollbackData, as Map -rollbackSDNCRequest -rollbackActivateSDNCRequest -rollbackNetworkRequest WorkflowException   -]]> - + + - + set value for: WorkflowException rolledBack wasDeleted -]]> - + + @@ -202,316 +214,321 @@ wasDeleted - + - + - - + + - - - + + + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - - + + - - + + - + - - + + - + - - - - + + - + - - - - + + + + - - + + - + - - + + - + - - - - + + + + - - - + + + - + - - + + - + - + - - + + - + - - - + + + - - + + - + - + - + - + - - + + - - + + - + - - + + - - - + + + - + - + - + - - + + - - + + - + - - + + - + - + - + - + - + - - + + - - + + - + + + + + + + + - \ No newline at end of file + -- cgit 1.2.3-korg