From 04155bfbc81784471379fc1eef05b1ac4bdfa0fd Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Tue, 6 Feb 2024 10:24:05 -0800 Subject: [PATCH] issue fix for 242 --- .../subProcess/CSSABundleWorklow.bpmn | 50 +++++++++---------- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/CSSABundleWorklow.bpmn b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/CSSABundleWorklow.bpmn index 6d9533f3..9d0a7422 100644 --- a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/CSSABundleWorklow.bpmn +++ b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/CSSABundleWorklow.bpmn @@ -1867,7 +1867,7 @@ execution.setVariable('requestType', 'SRCR'); Flow_07eueok Flow_0aabyhy - + task.execution.setVariable('isSdm',false); @@ -1888,7 +1888,7 @@ task.execution.setVariable('userRole','Statutory Decision Maker');Flow_07vh0na Flow_08c8ij1 - + task.execution.setVariable('isCaseworker',false); @@ -1986,38 +1986,34 @@ system.out.println ("soscStatus "+execution.getVariable('soscStatus') );var system = java.lang.System; var selectCssaSdm= execution.getVariable('selectCssaSdm'); system.out.println ("selectCssaSdm"+selectCssaSdm); -execution.setVariable('cssaSdmAssignment',selectCssaSdm); -system.out.println ("cssaSdmAssignment"+execution.getVariable('cssaSdmAssignment')); var selectCssaCaseworker= execution.getVariable('selectCssaCaseworker'); system.out.println ("selectCssaCaseworker"+selectCssaCaseworker); -execution.setVariable('cssaCaseworkerAssignment',selectCssaCaseworker); -system.out.println ("cssaCaseworkerAssignment"+execution.getVariable('cssaCaseworkerAssignment')); var selectSoscSdm= execution.getVariable('selectSoscSdm'); system.out.println ("selectSoscSdm"+selectSoscSdm); -execution.setVariable('soscSdmAssignment',selectSoscSdm); -system.out.println ("soscSdmAssignment"+execution.getVariable('soscSdmAssignment')); var selectSoscCaseworker= execution.getVariable('selectSoscCaseworker'); system.out.println ("selectSoscCaseworker"+selectSoscCaseworker); -execution.setVariable('soscCaseworkerAssignment',selectSoscCaseworker); -system.out.println ("soscCaseworkerAssignment"+execution.getVariable('soscCaseworkerAssignment')); -var selectSdm= execution.getVariable('selectSdm'); +var selectSrcrSdm= execution.getVariable('selectSdm'); system.out.println ("selectSdm"+selectSdm); -execution.setVariable('sdmAssignment',selectSdm); -system.out.println ("sdmAssignment"+execution.getVariable('sdmAssignment')); -var selectCaseworker= execution.getVariable('selectCaseworker'); +var selectSrcrCaseworker= execution.getVariable('selectCaseworker'); system.out.println ("selectCaseworker"+selectCaseworker); -execution.setVariable('caseworkerAssignment',selectCaseworker); -system.out.println ("caseworkerAssignment"+execution.getVariable('caseworkerAssignment')); var selectSrco= execution.getVariable('selectSrco'); system.out.println ("selectSrco"+selectSrco); execution.setVariable('srcoAssignment',selectSrco); -system.out.println ("srcoAssignment"+execution.getVariable('srcoAssignment')); +system.out.println ("srcoAssignment"+execution.getVariable('srcoAssignment')); + +var selectCaseworker = selectCssaCaseworker? selectCssaCaseworker:(selectSoscCaseworker?selectSoscCaseworker:(selectSrcrCaseworker?selectSrcrCaseworker:null)); +execution.setVariable('caseworkerAssignment',selectCaseworker); +system.out.println ("caseworkerAssignment"+execution.getVariable('caseworkerAssignment')); + +var selectSdm = selectCssaSdm? selectCssaSdm:(selectSoscSdm?selectSoscSdm:(selectSrcrSdm?selectSrcrSdm:null)); +execution.setVariable('sdmAssignment',selectSdm); +system.out.println ("sdmAssignment"+execution.getVariable('sdmAssignment')); Flow_1dtmwt0 @@ -2070,16 +2066,6 @@ system.out.println ("srcoAssignment"+execution.getVariable('srcoAssignment')); - - - - - - - - - - @@ -2953,6 +2939,16 @@ system.out.println ("srcoAssignment"+execution.getVariable('srcoAssignment')); + + + + + + + + + +