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'));
+
+
+
+
+
+
+
+
+
+