From a545d43d8240be05c6bd631b94e656277f41b212 Mon Sep 17 00:00:00 2001 From: midhun-aot Date: Thu, 5 Oct 2023 00:33:05 -0700 Subject: [PATCH] initial changes for DERA email integrations --- .../subProcess/DERABundleWorkflow.bpmn | 2487 ++++++++++++++++- 1 file changed, 2432 insertions(+), 55 deletions(-) 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 00722660..265c91e7 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 @@ -1,9 +1,237 @@ -Activity_1v5ffpwActivity_1ozfgidActivity_0k6ixqmStartEvent_1Gateway_08cgufeActivity_15772woGateway_17raw62Activity_1uc1xs1Gateway_04o747eGateway_0oobb3zActivity_08ykdarActivity_1ao3zkjGateway_15p5urdActivity_0p4hm8rGateway_1lbpcugEvent_0sdygwcActivity_1hs3djaActivity_1bsz2qmGateway_1lgyz1hActivity_0tsm937Gateway_0o9l3lpActivity_15e3ho6Gateway_1m36jweGateway_0uf75owActivity_1bhbq4yActivity_07ttn7qActivity_0vo5rlsGateway_1chdummActivity_1qnqtakGateway_1lfy3cm${action == 'Accepted'}${action == 'Rejected'}${riskclassification == 'exempt'}${action == 'Recheck'}execution.setVariable('isSdm',true);${action == 'Returned'}execution.setVariable('isCaseworker',true);${action == 'Returned'}execution.setVariable('isCssaTeam',true);${action == 'Returned'}execution.setVariable('applicationStatus', "Resubmitted");["applicationId", "applicationStatus"]["applicationId", "applicationStatus"]execution.setVariable('bundleUrl', execution.getVariable('formUrl'));${riskclassification != 'exempt'}var system = java.lang.System; + + + + + + + + Activity_1v5ffpw + Activity_1ozfgid + Activity_0k6ixqm + StartEvent_1 + Gateway_08cgufe + Activity_15772wo + Gateway_17raw62 + + + Activity_1uc1xs1 + Activity_1os7sys + Gateway_04o747e + Gateway_04zwcaq + Event_1mmor63 + + + Activity_08ykdar + Gateway_0oobb3z + Gateway_1jh43p2 + + + Activity_1ao3zkj + Gateway_15p5urd + Gateway_1p7skmz + + + Gateway_1lbpcug + Activity_1hs3dja + Activity_1bsz2qm + Gateway_1lgyz1h + Activity_0tsm937 + Activity_15e3ho6 + Gateway_1m36jwe + Gateway_0uf75ow + Activity_07ttn7q + Activity_1bhbq4y + Gateway_0o9l3lp + Gateway_0vaxmur + Event_0sdygwc + Activity_0q5r5d4 + Gateway_0uti2q1 + + + Activity_0vo5rls + Gateway_1chdumm + Activity_1qnqtak + Gateway_1lfy3cm + + + + ${action == 'Accepted'} + + + + + + ${riskclassification == 'exempt'} + + + ${action == 'Recheck'} + + + + + execution.setVariable('isSdm',true); + + + ${action == 'Returned'} + + + + + execution.setVariable('isCaseworker',true); + + + ${action == 'Returned'} + + + + + execution.setVariable('isCssaTeam',true); + + + ${action == 'Returned'} + + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); + + + + ["applicationId", "applicationStatus"] + + + + + + + + + + + + ["applicationId", "applicationStatus"] + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${riskclassification != 'exempt'} + + + + + var system = java.lang.System; execution.setVariable('isSentFromSociety',false); -system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSociety'));${typeOfReview== 'directToMinistryApplication'}${typeOfReview!= 'directToMinistryApplication'}${action == 'Accepted'}execution.setVariable('isAp',true);${action == 'Returned'}${action == 'Recheck'}execution.setVariable('isSociety',true);${action == 'Returned'}${action == 'Accepted'}${applicationStatus== 'Resubmitted' and isCssaTeam== true}${applicationStatus== 'Resubmitted' and isSociety== true}${applicationStatus== 'Resubmitted' and isAp== true}${applicationStatus!= 'Resubmitted'}Flow_0bz8atuFlow_19ktqsmFlow_0qbjx6eFlow_1tu4hj7Flow_1ev1kr6task.execution.setVariable('isCssaTeam',false);task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed");["applicationId", "applicationStatus"]Flow_1quswscFlow_0gb2oz2Flow_0wr0meiFlow_0lgivc3Flow_0bz8atuexecution.setVariable('applicationStatus', "Resubmit"); -execution.setVariable('returnedBy', "cssaTeam");["applicationId", "applicationStatus"]Flow_19ktqsmFlow_12uv3kmFlow_0qw9o9aFlow_0wxa7vbFlow_0b5e332Flow_1stifo9Flow_0dbqph3Flow_1stifo9Flow_05pndklvar system = java.lang.System; +system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSociety')); + + + ${typeOfReview== 'directToMinistryApplication'} + + + + ${typeOfReview!= 'directToMinistryApplication'} + + + + ${action == 'Accepted'} + + + + + execution.setVariable('isAp',true); + + + ${action == 'Returned'} + + + + ${action == 'Recheck'} + + + + + execution.setVariable('isSociety',true); + + + ${action == 'Returned'} + + + + ${action == 'Accepted'} + + + + ${applicationStatus== 'Resubmitted' and isCssaTeam== true} + + + ${applicationStatus== 'Resubmitted' and isSociety== true} + + + ${applicationStatus== 'Resubmitted' and isAp== true} + + + ${applicationStatus!= 'Resubmitted'} + + + + + + task.execution.setVariable('isCssaTeam',false); +task.execution.setVariable('userRole','CSSA Team'); + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_1quswsc + Flow_0gb2oz2 + Flow_0wr0mei + Flow_0lgivc3 + Flow_0bz8atu + + + + + execution.setVariable('applicationStatus', "Resubmit"); +execution.setVariable('returnedBy', "cssaTeam"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0wxa7vb + Flow_19ktqsm + Flow_0qw9o9a + Flow_12uv3km + Flow_1ij7p7z + Flow_1stifo9 + + + Flow_0dbqph3 + Flow_1stifo9 + Flow_05pndkl + var system = java.lang.System; var riskclassification = execution.getVariable('riskclassification'); system.out.println ("riskclassification "+riskclassification); var typeOfReview = execution.getVariable('typeOfReview'); @@ -14,74 +242,551 @@ system.out.println ("clientEmail "+clientEmail); execution.setVariable('clientEmail',clientEmail); var siteRiskClassification = execution.getVariable('siteRiskClassification'); system.out.println ("siteRiskClassification "+siteRiskClassification ); -execution.setVariable('siteRiskClassification',siteRiskClassification);Flow_1rc30l8Flow_0dbqph3var system = java.lang.System; +execution.setVariable('siteRiskClassification',siteRiskClassification); +execution.setVariable('formName','Detailed Ecological Risk Assessment Checklist'); +execution.setVariable('EmailType','DERA'); +execution.setVariable('name',execution.getVariable('deraPropertyOwnerName')); +var emailsToArray = []; +emailsToArray.push(clientEmail) +execution.setVariable("emailTo", Java.to(emailsToArray, "java.lang.Object[]")); + + + Flow_1rc30l8 + Flow_0dbqph3 + var system = java.lang.System; system.out.println ("Submit Bundle"); execution.setVariable('isAp',false); execution.setVariable('isSociety',false); -execution.setVariable('isCssaTeam',false);Flow_1rc30l8Flow_1xj96i6Flow_1quswscFlow_142lsgktask.execution.setVariable('isSociety',false);task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +execution.setVariable('isCssaTeam',false); + + + Flow_1rc30l8 + + + Flow_1xj96i6 + Flow_1quswsc + Flow_142lsgk + + + + + task.execution.setVariable('isSociety',false); +task.execution.setVariable('userRole','CSAP Society'); + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); task.execution.setVariable('deleteReason', "completed"); var system = java.lang.System; task.execution.setVariable('isSentFromSociety',true); -system.out.println ("isSentFromSociety "+ task.execution.getVariable('isSentFromSociety'));["applicationId", "applicationStatus"]Flow_0kfjdmpFlow_0543g25Flow_1ev1kr6Flow_0d8ruaxtask.execution.setVariable('isAp',false);task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed");["applicationId", "applicationStatus"]Flow_142lsgkFlow_0pzpbn7Flow_0527h3yFlow_0b418rvFlow_0b418rvFlow_12uv3kmFlow_0kfjdmpFlow_0d8ruaxFlow_0gb2oz2Flow_0qw9o9aFlow_0pzpbn7${applicationStatus== 'Resubmitted' and isCaseworker== true}${applicationStatus== 'Resubmitted' and isSdm== true}var system = java.lang.System; -system.out.println ("form signed");Flow_05pndklFlow_0ohuh4kFlow_0ohuh4kFlow_1xj96i6Flow_0527h3yFlow_0543g25Flow_0wr0meiFlow_0d8ioqsFlow_0ovj0pk${action == 'Recheck' and isSentFromSociety == true}${action == 'Recheck'}${action == 'Accepted'}task.execution.setVariable('isCssaTeam',false);task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed");["applicationId", "applicationStatus"]Flow_1tu4hj7Flow_1esdw3mFlow_0aabyhyFlow_0gcqir8Flow_1u3s5mjFlow_1phkhb3Flow_05vthw4Flow_1ojyq91Flow_019edztFlow_0cdvwnpvar system = java.lang.System; -system.out.println ("Sent to Caseworker");Y["pid","applicationId","process_pid","task_id"]task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"srcr");task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'SRCR'); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('srcrStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action'));Flow_0cdvwnpFlow_1ccbyzkFlow_1ccbyzkFlow_0zzhouiFlow_1ixkifdFlow_0pqd76uFlow_187pabgFlow_1ixkifdFlow_0izugkbFlow_0xqj2smFlow_1pdey0jFlow_0qaeplvvar system = java.lang.System; -system.out.println ("Sent to SDM");Y["pid","applicationId","process_pid","task_id"]task.execution.setVariable('task_id',task.getId());task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'SRCR'); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('srcrStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action'));Flow_0qaeplvFlow_0mtd57dFlow_0mtd57dFlow_0k5l8nkFlow_0rygleeFlow_1kizv19Flow_0zzhouiFlow_0k5l8nkFlow_14snpj2execution.setVariable('applicationStatus', "Resubmit");["applicationId", "applicationStatus", "srcrStatus"]Flow_187pabgFlow_1ojyq91execution.setVariable('applicationStatus', "Resubmit");["applicationId", "applicationStatus", "srcrStatus"]Flow_0rygleeFlow_0izugkbFlow_0q159o1Flow_019edztFlow_0xqj2smFlow_0pqd76uFlow_00vao62Flow_1axts3rFlow_1g44pguFlow_1up3td8Flow_0c71o5wvar system = java.lang.System; -system.out.println ("Begin SRCR Flow - Sent To SRCO"); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety'));Flow_1axts3rY["pid","applicationId","process_pid","task_id"]task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"srcr");task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'SRCR'); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('srcrStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action'));Flow_0c71o5wFlow_0h34vewFlow_0h34vewFlow_14snpj2Flow_0qz0c7uFlow_1ifs52wexecution.setVariable('applicationStatus', "Resubmit");["applicationId", "applicationStatus", "srcrStatus"]Flow_1ifs52wFlow_00vao62Flow_0qz0c7uFlow_1pdey0jFlow_0q159o1${isSentFromSociety == false}execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted");["applicationId", "applicationStatus", "srcrStatus"]${isSentFromSociety == false}["applicationId", "applicationStatus", "srcrStatus"]execution.setVariable('srcrFormUrl', execution.getVariable('formUrl'));execution.setVariable('bundleUrl', execution.getVariable('formUrl'));${action == 'Rejected'}${action == 'Accepted'}${action == 'Recheck'}${action == 'Returned' }execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted");["applicationId", "applicationStatus", "srcrStatus"]${isSentFromSociety == true}${siteRiskClassification != 'notHighRisk'}["applicationId", "applicationStatus", "srcrStatus"]execution.setVariable('srcrFormUrl', execution.getVariable('formUrl'));execution.setVariable('bundleUrl', execution.getVariable('formUrl'));${action == 'Approved' or action == 'Rejected' }${action == 'Returned' }execution.setVariable('bundleUrl', execution.getVariable('formUrl'));${action == 'Rejected' }${siteRiskClassification == 'notHighRisk'}execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted");["applicationId", "applicationStatus", "srcrStatus"]execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'SRCR');["applicationId", "applicationStatus", "srcrStatus"]execution.setVariable('srcrFormUrl', execution.getVariable('formUrl'));${action == 'Accepted'}${action == 'Returned' }${siteRiskClassification != 'notHighRisk' }Flow_1kizv19Flow_1g44pguFlow_1q2jho1${action == 'Recheck' }Flow_1q2jho1Flow_05vthw4Flow_1up3td8${siteRiskClassification == 'notHighRisk' }${isSentFromSociety == true}Flow_1kyum71Flow_0fa3iduFlow_0f731f5Flow_1vxydh0Flow_00qi8nkFlow_130v3rpvar system = java.lang.System; -system.out.println ("Sent to SDM");Y["pid","applicationId","process_pid","task_id"]task.execution.setVariable('task_id',task.getId());task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +system.out.println ("isSentFromSociety "+ task.execution.getVariable('isSentFromSociety')); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_0kfjdmp + Flow_0543g25 + Flow_1ev1kr6 + Flow_0d8ruax + + + + + task.execution.setVariable('isAp',false); +task.execution.setVariable('userRole','CSAP'); + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_142lsgk + Flow_0pzpbn7 + Flow_0527h3y + Flow_0b418rv + + + ${applicationStatus== 'Resubmitted' and isCaseworker== true} + + + ${applicationStatus== 'Resubmitted' and isSdm== true} + + + + + var system = java.lang.System; +system.out.println ("form signed"); + + + Flow_05pndkl + Flow_0ohuh4k + + + Flow_0ohuh4k + Flow_1xj96i6 + Flow_0527h3y + Flow_0543g25 + Flow_0wr0mei + Flow_0d8ioqs + Flow_0ovj0pk + + + ${action == 'Recheck' and isSentFromSociety == true} + + + ${action == 'Recheck'} + + + + + + + ${action == 'Accepted'} + + + + + task.execution.setVariable('isCssaTeam',false); + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_1tu4hj7 + Flow_1esdw3m + Flow_0aabyhy + Flow_0gcqir8 + + + Flow_1kyum71 + Flow_0fa3idu + + Flow_0f731f5 + Flow_1vxydh0 + Flow_00qi8nk + Flow_130v3rp + var system = java.lang.System; +system.out.println ("Sent to SDM"); + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); + + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); task.execution.setVariable('requestType', 'DERA'); task.execution.setVariable('deraStatus', task.execution.getVariable('action')); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed");Flow_130v3rpFlow_04rzv3xexecution.setVariable('applicationStatus', "Resubmit");["applicationId", "applicationStatus"]Flow_0ui56bnFlow_1vxydh0Flow_04rzv3xFlow_0ui56bnFlow_0pqk381Flow_07enxwqFlow_07enxwqFlow_0yy721oY["pid","applicationId","process_pid","task_id"]task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"dera");task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); + + + + + + Flow_130v3rp + Flow_04rzv3x + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0ui56bn + Flow_1vxydh0 + + + Flow_1wvb9m4 + Flow_0ui56bn + Flow_0pqk381 + Flow_07enxwq + + + Flow_07enxwq + Flow_0yy721o + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"dera"); + + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); task.execution.setVariable('requestType', 'DERA'); task.execution.setVariable('deraStatus', task.execution.getVariable('action')); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed");Flow_0go33vqFlow_13zl1ndFlow_13zl1ndFlow_0f731f5Flow_0yy721oFlow_1c0kfisexecution.setVariable('applicationStatus', "Resubmit");["applicationId", "applicationStatus"]Flow_1c0kfisFlow_06v4kdfFlow_0pqk381Flow_06v4kdfFlow_18exjmwFlow_0orrcuevar system = java.lang.System; +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Case worker'); + + + + + + Flow_0go33vq + Flow_13zl1nd + + + Flow_1qn2dpn + Flow_0f731f5 + Flow_0yy721o + Flow_1c0kfis + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_1c0kfis + Flow_06v4kdf + + + Flow_0pqk381 + Flow_06v4kdf + Flow_18exjmw + Flow_0orrcue + var system = java.lang.System; system.out.println ("Begin DERA Flow - Sent To Caseworker"); execution.setVariable('isCaseworker',false); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety'));Flow_18exjmwFlow_0orrcueFlow_00qi8nkFlow_0go33vq${action == 'Accepted'}execution.setVariable('applicationStatus', "Resubmitted"); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_18exjmw + + + Flow_0orrcue + Flow_00qi8nk + Flow_0go33vq + + + ${action == 'Accepted'} + + + + + execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('deraStatus', "Resubmitted");["applicationId", "applicationStatus", "deraStatus"]${isSentFromSociety == true}["applicationId", "applicationStatus", "deraStatus"]execution.setVariable('deraFormUrl', execution.getVariable('formUrl'));${action == 'Returned'}${action == 'Recheck' and isSentFromSociety == false}execution.setVariable('bundleUrl', execution.getVariable('formUrl'));${action == 'Rejected' or action == 'Approved' }execution.setVariable('bundleUrl', execution.getVariable('formUrl'));${action == 'Rejected'}${isSentFromSociety == false}["applicationId", "applicationStatus", "deraStatus"]execution.setVariable('deraFormUrl', execution.getVariable('formUrl'));${action == 'Returned'}execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('deraStatus', "Resubmitted"); + + + + + ["applicationId", "applicationStatus", "deraStatus"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "deraStatus"] + + + + execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + ${action == 'Returned'} + + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' or action == 'Approved' } + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${isSentFromSociety == false} + + + + + + ["applicationId", "applicationStatus", "deraStatus"] + + + + execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + ${action == 'Returned'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('deraStatus', "Resubmitted");["applicationId", "applicationStatus", "deraStatus"]execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'DERA');Flow_0qbjx6eFlow_1nowy63Flow_07eueokFlow_1xju4axFlow_0izwlc1Flow_08c8ij1Flow_0b5e332Flow_1jxxrt6Flow_07eueokFlow_0aabyhyFlow_0izwlc1task.execution.setVariable('isSdm',false);task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed");["applicationId", "applicationStatus"]Flow_07vh0naFlow_08c8ij1task.execution.setVariable('isCaseworker',false);task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed");["applicationId", "applicationStatus"]Flow_01suxh6Flow_19ik9s7Flow_0qiqnksFlow_057qs1xFlow_01suxh6Flow_0i3fcvyFlow_0d8ioqsFlow_1jxxrt6Flow_0qiqnksvar system = java.lang.System; +execution.setVariable('deraStatus', "Resubmitted"); + + + + ["applicationId", "applicationStatus", "deraStatus"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'DERA'); + + + + + + + + + + + + dera_updated + + + Flow_0zq3j61 + Flow_04eqln5 + Flow_19nit40 + + + + Flow_13zl1nd + Flow_1qn2dpn + Flow_0zq3j61 + + + + + + + + Flow_19nit40 + + + + + Flow_04rzv3x + Flow_1wvb9m4 + Flow_04eqln5 + + + + + Flow_08c8ij1 + Flow_0b5e332 + Flow_1jxxrt6 + Flow_07eueok + Flow_0aabyhy + + + + + task.execution.setVariable('isSdm',false); + + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_07vh0na + Flow_08c8ij1 + + + + + task.execution.setVariable('isCaseworker',false); + + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Case worker'); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_01suxh6 + Flow_19ik9s7 + + + Flow_0qiqnks + Flow_057qs1x + Flow_01suxh6 + + + Flow_0i3fcvy + Flow_0d8ioqs + Flow_1jxxrt6 + Flow_0qiqnks + var system = java.lang.System; system.out.println ("Begin DERA Individual Flow - Sent To Caseworker"); execution.setVariable('isCaseworker',false); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety'));Flow_19ik9s7Flow_0kw2jboFlow_0wxa7vbFlow_1xju4axFlow_1esdw3mFlow_0kw2jboFlow_057qs1xFlow_0ovj0pkFlow_07vh0navar system = java.lang.System; -system.out.println ("Sent to SDM");Flow_0fa3iduFlow_1phkhb3Flow_1nowy63Flow_0drs8s9Flow_1kyum71Flow_1u3s5mj${action == 'Rejected' or action == 'Approved' }${action == 'Rejected'}execution.setVariable('formUrl', execution.getVariable('deraFormUrl'));execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('formUrl', execution.getVariable('srcrFormUrl'));if (execution.getVariable('deraStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" ) -{ -execution.setVariable("applicationStatus", "Approved"); -} -else{ -execution.setVariable("applicationStatus", "Rejected"); -}${action == 'Recheck' and isSentFromSociety == false}${isSentFromSociety == false}${isSentFromSociety == true}${action == 'Accepted'}${action == 'Recheck'}Flow_026yktsFlow_0drs8s9Flow_0i3fcvyFlow_02ysv7tFlow_026yktsvar system = java.lang.System; +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_0kw2jbo + Flow_057qs1x + Flow_0ovj0pk + Flow_07vh0na + var system = java.lang.System; +system.out.println ("Sent to SDM"); + + + Flow_0fa3idu + Flow_1phkhb3 + Flow_1nowy63 + + + Flow_0drs8s9 + Flow_1kyum71 + Flow_1u3s5mj + + + + + + + ${action == 'Rejected' or action == 'Approved' } + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + ${isSentFromSociety == false} + + + + + ${isSentFromSociety == true} + + + ${action == 'Accepted'} + + + ${action == 'Recheck'} + + + Flow_026ykts + Flow_0drs8s9 + Flow_0i3fcvy + + + + Flow_02ysv7t + Flow_026ykts + var system = java.lang.System; var selectSdm= execution.getVariable('selectSdm'); system.out.println ("selectSdm"+selectSdm); execution.setVariable('sdmAssignment',selectSdm); @@ -106,4 +811,1676 @@ var selectSrco= execution.getVariable('selectSrco'); system.out.println ("selectSrco"+selectSrco); execution.setVariable('srcoAssignment',selectSrco); system.out.println ("srcoAssignment"+execution.getVariable('srcoAssignment')); -Flow_0gcqir8Flow_02ysv7tFlow_0lgivc3 \ No newline at end of file + + + + Flow_0gcqir8 + Flow_02ysv7t + Flow_0lgivc3 + + + + + + + dera_updated + + + Flow_1h10kqx + Flow_0yrx5xj + Flow_1sj5fc8 + Flow_1kvztr8 + + + Flow_1s7krwr + Flow_12uv3km + Flow_0kfjdmp + + + Flow_1j8wa3r + Flow_19ktqsm + Flow_1tu4hj7 + Flow_1ev1kr6 + Flow_0qbjx6e + + + + Flow_0b418rv + Flow_1s7krwr + Flow_1h10kqx + + + + + + Flow_12oauvz + Flow_0gb2oz2 + Flow_0qw9o9a + Flow_0pzpbn7 + + + Flow_0d8ruax + Flow_12oauvz + Flow_0yrx5xj + + + + + Flow_0bz8atu + Flow_1j8wa3r + Flow_1sj5fc8 + + + Flow_1u3s5mj + Flow_1phkhb3 + + Flow_05vthw4 + Flow_1ojyq91 + Flow_019edzt + Flow_0cdvwnp + var system = java.lang.System; +system.out.println ("Sent to Caseworker"); + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"srcr"); +task.execution.setVariable('userRole','Case worker'); + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'SRCR'); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('srcrStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('userRole','Case worker'); + + + + + + Flow_0cdvwnp + Flow_1ccbyzk + + + Flow_09v3kpi + Flow_0zzhoui + Flow_1ixkifd + Flow_0pqd76u + Flow_187pabg + + + Flow_1ixkifd + Flow_0izugkb + Flow_0xqj2sm + Flow_1pdey0j + Flow_0qaeplv + var system = java.lang.System; +system.out.println ("Sent to SDM"); + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); + + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'SRCR'); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('srcrStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); + + + + + + Flow_0qaeplv + Flow_0mtd57d + + + Flow_0qvoubs + Flow_0k5l8nk + Flow_0ryglee + Flow_1kizv19 + + + Flow_0zzhoui + Flow_0k5l8nk + Flow_14snpj2 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + Flow_187pabg + Flow_1ojyq91 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + Flow_0ryglee + Flow_0izugkb + + + Flow_0q159o1 + Flow_019edzt + Flow_0xqj2sm + + + Flow_0pqd76u + Flow_00vao62 + Flow_1axts3r + Flow_1g44pgu + Flow_1up3td8 + Flow_0c71o5w + var system = java.lang.System; +system.out.println ("Begin SRCR Flow - Sent To SRCO"); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_1axts3r + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"srcr"); + + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'SRCR'); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('srcrStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('userRole','Site Risk Classification Officer'); + + + + + + Flow_0c71o5w + Flow_0h34vew + + + Flow_1mxzqgt + Flow_14snpj2 + Flow_0qz0c7u + Flow_1ifs52w + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + Flow_1ifs52w + Flow_00vao62 + + + Flow_0qz0c7u + Flow_1pdey0j + Flow_0q159o1 + + + + + + + ${isSentFromSociety == false} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + + + + ${isSentFromSociety == false} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${action == 'Accepted'} + + + + ${action == 'Recheck'} + + + + + + ${action == 'Returned' } + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + + + + ${isSentFromSociety == true} + + + ${siteRiskClassification != 'notHighRisk'} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Approved' or action == 'Rejected' } + + + + + + + + ${action == 'Returned' } + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' } + + + ${siteRiskClassification == 'notHighRisk'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'SRCR'); + + + + + + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + ${action == 'Accepted'} + + + + + + ${action == 'Returned' } + + + + + + + ${siteRiskClassification != 'notHighRisk' } + + + Flow_1kizv19 + Flow_1g44pgu + Flow_1q2jho1 + + + ${action == 'Recheck' } + + + Flow_1q2jho1 + Flow_05vthw4 + Flow_1up3td8 + + + ${siteRiskClassification == 'notHighRisk' } + + + + + + + ${isSentFromSociety == true} + + + + Flow_0h34vew + Flow_1mxzqgt + Flow_0lklj13 + + + + + + dera_updated + + + Flow_0lklj13 + Flow_18o75ov + Flow_1u837pr + Flow_0184u8i + + + + + Flow_1ccbyzk + Flow_09v3kpi + Flow_18o75ov + + + + + Flow_0mtd57d + Flow_0qvoubs + Flow_1u837pr + + + + Flow_0184u8i + + + + + Flow_1s58qkt + Flow_0kw2jbo + Flow_0wxa7vb + Flow_1esdw3m + Flow_1xju4ax + + + + + + Flow_19ik9s7 + Flow_1s58qkt + Flow_1v6zje9 + + + + Flow_1kvztr8 + + + + + + + execution.setVariable('formUrl', execution.getVariable('deraFormUrl')); + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); +execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); + + + + if (execution.getVariable('deraStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" ) +{ +execution.setVariable("applicationStatus", "Approved"); +} +else{ +execution.setVariable("applicationStatus", "Rejected"); +} + + + + + + ${action == 'Rejected'} + + + ${action == 'Rejected'} + + + Flow_0izwlc1 + + + + + + dera_updated + + + Flow_165eq8z + Flow_07eueok + Flow_1v6zje9 + Flow_0qbjx6e + Flow_1xju4ax + Flow_1nowy63 + Flow_0izwlc1 + + + Flow_0b5e332 + Flow_1ij7p7z + Flow_165eq8z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +