diff --git a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorkflow.bpmn b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorkflow.bpmn
index abf866a4..54993bcd 100644
--- a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorkflow.bpmn
+++ b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorkflow.bpmn
@@ -70,7 +70,7 @@
Flow_07eueok
Flow_0aabyhy
-
+
task.execution.setVariable('isSdm',false);
@@ -92,7 +92,7 @@ task.execution.setVariable('userRole','Statutory Decision Maker');Flow_07vh0na
Flow_08c8ij1
-
+
task.execution.setVariable('isCaseworker',false);
@@ -707,7 +707,7 @@ execution.setVariable('requestType', 'SRCR');
var system = java.lang.System;
system.out.println ("Sent to SDM");
-
+
@@ -763,7 +763,7 @@ task.execution.setVariable('subFormName','DERA Form');
Flow_07enxwq
Flow_0yy721o
-
+
@@ -1028,7 +1028,7 @@ execution.setVariable('requestType', 'DERA');
var system = java.lang.System;
system.out.println ("Sent to SDM");
-
+
@@ -1084,7 +1084,7 @@ task.execution.setVariable('subFormName','SoSC Form');
Flow_0f2ltzc
Flow_1uju8pu
-
+
@@ -1625,40 +1625,37 @@ task.execution.setVariable('userRole','CSSA Manager');
Flow_02ysv7t
Flow_026ykts
var system = java.lang.System;
-var selectSdm= execution.getVariable('selectSdm');
-system.out.println ("selectSdm"+selectSdm);
-execution.setVariable('sdmAssignment',selectSdm);
-system.out.println ("sdmAssignment"+execution.getVariable('sdmAssignment'));
var selectDeraSdm= execution.getVariable('selectDeraSdm');
system.out.println ("selectDeraSdm"+selectDeraSdm);
-execution.setVariable('sdmDeraAssignment',selectDeraSdm);
-system.out.println ("sdmDeraAssignment"+execution.getVariable('sdmDeraAssignment'));
-
-var selectSoscSdm= execution.getVariable('selectSoscSdm');
-system.out.println ("selectSoscSdm"+selectSoscSdm);
-execution.setVariable('sdmSoscAssignment',selectSoscSdm);
-system.out.println ("sdmSoscAssignment"+execution.getVariable('sdmSoscAssignment'));
-
-var selectCaseworker= execution.getVariable('selectCaseworker');
-system.out.println ("selectCaseworker"+selectCaseworker);
-execution.setVariable('caseworkerAssignment',selectCaseworker);
-system.out.println ("caseworkerAssignment"+execution.getVariable('caseworkerAssignment'));
var selectDeraCaseworker= execution.getVariable('selectDeraCaseworker');
system.out.println ("selectDeraCaseworker"+selectDeraCaseworker);
-execution.setVariable('caseworkerDeraAssignment',selectDeraCaseworker);
-system.out.println ("caseworkerDeraAssignment"+execution.getVariable('caseworkerDeraAssignment'));
+
+var selectSoscSdm= execution.getVariable('selectSoscSdm');
+system.out.println ("selectSoscSdm"+selectSoscSdm);
var selectSoscCaseworker= execution.getVariable('selectSoscCaseworker');
system.out.println ("selectSoscCaseworker"+selectSoscCaseworker);
-execution.setVariable('caseworkerSoscAssignment',selectSoscCaseworker);
-system.out.println ("caseworkerSoscAssignment"+execution.getVariable('caseworkerSoscAssignment'));
+
+var selectSrcrSdm= execution.getVariable('selectSdm');
+system.out.println ("selectSrcrSdm"+selectSrcrSdm);
+
+var selectSrcrCaseworker= execution.getVariable('selectCaseworker');
+system.out.println ("selectSrcrCaseworker"+selectSrcrCaseworker);
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 = selectDeraCaseworker? selectDeraCaseworker:(selectSoscCaseworker?selectSoscCaseworker:(selectSrcrCaseworker?selectSrcrCaseworker:null));
+execution.setVariable('caseworkerAssignment',selectCaseworker);
+system.out.println ("caseworkerAssignment"+execution.getVariable('caseworkerAssignment'));
+
+var selectSdm = selectDeraSdm? selectDeraSdm:(selectSoscSdm?selectSoscSdm:(selectSrcrSdm?selectSrcrSdm:null));
+execution.setVariable('sdmAssignment',selectSdm);
+system.out.println ("sdmAssignment"+execution.getVariable('sdmAssignment'));
Flow_00pfp2v
@@ -2530,6 +2527,9 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') );
+
+
+
@@ -2548,6 +2548,12 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') );
+
+
+
+
+
+
@@ -2561,15 +2567,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') );
-
-
-
-
-
-
-
-
-