From c8068010b5ed9c8d2efe27fd8d289c852232a346 Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Wed, 17 Jan 2024 10:23:19 -0800 Subject: [PATCH 1/9] initial changes for dera sosc --- .../subProcess/DERABundleWorklowv1.bpmn | 5776 +++++++++++++++++ 1 file changed, 5776 insertions(+) create mode 100644 forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorklowv1.bpmn diff --git a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorklowv1.bpmn b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorklowv1.bpmn new file mode 100644 index 00000000..809b5505 --- /dev/null +++ b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorklowv1.bpmn @@ -0,0 +1,5776 @@ + + + + + + + + + Gateway_17raw62 + Activity_15772wo + Gateway_08cgufe + StartEvent_1 + Activity_0k6ixqm + Activity_1ozfgid + Activity_1v5ffpw + Gateway_1qqphxe + Activity_0a9pnut + + + Activity_1uc1xs1 + Gateway_04o747e + + + Activity_08ykdar + Gateway_0oobb3z + Gateway_1gzq005 + Activity_1os7sys + Event_0bwdoce + + + Activity_1ao3zkj + Gateway_15p5urd + + + Gateway_1m36jwe + Activity_15e3ho6 + Activity_0tsm937 + Gateway_1lgyz1h + Activity_1bsz2qm + Activity_1hs3dja + Gateway_1lbpcug + Gateway_1xrj5sn + Gateway_1l4bqor + Activity_0kxdigs + Gateway_0pty1fn + Gateway_0o9l3lp + Activity_0q362ss + Gateway_0uf75ow + Event_1n5addo + Gateway_0vp590v + Gateway_0qemi54 + Event_0sdygwc + Activity_1bhbq4y + Activity_07ttn7q + Activity_12e3zvm + Activity_1wrcu91 + Activity_0r75nsw + Activity_0baoxlp + Activity_1d2xuv3 + Gateway_06gmmov + + + Gateway_1lfy3cm + Activity_1qnqtak + Gateway_1chdumm + Gateway_1l0ehcm + Activity_0vo5rls + Gateway_0w0koaj + + + + Flow_0gcqir8 + Flow_02ysv7t + Flow_0lgivc3 + + + + Flow_02ysv7t + Flow_026ykts + var system = java.lang.System; +var selectDeraSdm= execution.getVariable('selectDeraSdm'); +system.out.println ("selectDeraSdm"+selectDeraSdm); +execution.setVariable('deraSdmAssignment',selectDeraSdm); +system.out.println ("deraSdmAssignment"+execution.getVariable('deraSdmAssignment')); + +var selectDeraCaseworker= execution.getVariable('selectDeraCaseworker'); +system.out.println ("selectDeraCaseworker"+selectDeraCaseworker); +execution.setVariable('deraCaseworkerAssignment',selectDeraCaseworker); +system.out.println ("deraCaseworkerAssignment"+execution.getVariable('deraCaseworkerAssignment')); + +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 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'); +system.out.println ("selectSdm"+selectSdm); +execution.setVariable('sdmAssignment',selectSdm); +system.out.println ("sdmAssignment"+execution.getVariable('sdmAssignment')); + +var selectCaseworker= 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')); + + + Flow_026ykts + Flow_0drs8s9 + Flow_0i3fcvy + + + Flow_0fa3idu + Flow_1phkhb3 + Flow_1m5dyj2 + Flow_1nowy63 + + + Flow_0kw2jbo + Flow_057qs1x + Flow_0ovj0pk + Flow_07vh0na + var system = java.lang.System; +system.out.println ("Sent to SDM"); + + + Flow_0d8ioqs + Flow_1jxxrt6 + Flow_131saby + Flow_0qiqnks + var system = java.lang.System; +system.out.println ("Begin CSSA Individual Flow - Sent To Caseworker"); +execution.setVariable('isCaseworker',false); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_0qiqnks + Flow_057qs1x + Flow_01suxh6 + + + + + task.execution.setVariable('isCaseworker',false); + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_01suxh6 + Flow_19ik9s7 + + + + + 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 + + + Flow_0c90maq + Flow_0b5e332 + Flow_1jxxrt6 + Flow_07eueok + Flow_0aabyhy + + + Flow_0drs8s9 + Flow_0g9jpvb + Flow_118thnc + + + Flow_118thnc + Flow_1b7b7vp + Flow_1r9sgs4 + + + 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('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','Caseworker'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + + Flow_0cdvwnp + Flow_1ccbyzk + + + Flow_02gyla8 + 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')); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + Flow_0qaeplv + Flow_0mtd57d + + + Flow_1jm1bhe + 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'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + Flow_0c71o5w + Flow_0h34vew + + + Flow_168htzm + 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"); +execution.setVariable('isSrcrResubmitted', false); + + + + ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] + + + + + + + + ${isSentFromSociety == false} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + + + execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "srcrBundleStatus"] + + + + ${action == 'Accepted'} + + + + ${action == 'Recheck'} + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); + + + + + ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + ${siteRiskClassification != 'notHighRisk'} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Approved' or action == 'Rejected' } + + + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' } + + + ${siteRiskClassification == 'notHighRisk'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); + + + + ["applicationId", "applicationStatus", "srcrStatus", "isSrcrResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'SRCR'); + + + + + + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); + + + + ["applicationId", "applicationStatus", "srcrBundleStatus"] + + + + ${action == 'Accepted'} + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + + + + + ${siteRiskClassification != 'notHighRisk' } + + + Flow_1kizv19 + Flow_1g44pgu + Flow_1q2jho1 + + + ${action == 'Recheck' } + + + Flow_1q2jho1 + Flow_05vthw4 + Flow_1up3td8 + + + ${siteRiskClassification == 'notHighRisk' } + + + + + + + ${isSentFromSociety == true} + + + + + + cssa_subforms_updated + + + Flow_0dn9scp + Flow_0v3xmtu + Flow_007p6h2 + Flow_1g9gkqq + + + + Flow_0h34vew + Flow_168htzm + Flow_0dn9scp + + + + + Flow_1ccbyzk + Flow_02gyla8 + Flow_0v3xmtu + + + + Flow_1g9gkqq + + + + + Flow_0mtd57d + Flow_1jm1bhe + Flow_007p6h2 + + + + + + + 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_0ohuh4k + Flow_1xj96i6 + Flow_0527h3y + Flow_0543g25 + Flow_0wr0mei + Flow_0d8ioqs + Flow_0ovj0pk + + + + + var system = java.lang.System; +system.out.println ("form signed"); + + + Flow_1asq9fa + Flow_16fwgn1 + Flow_0ohuh4k + + + + + task.execution.setVariable('isAp',false); + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Contaminated Sites Approved Professional'); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_142lsgk + Flow_0pzpbn7 + Flow_0527h3y + Flow_0b418rv + + + + + task.execution.setVariable('isSociety',false); + + + + 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')); +task.execution.setVariable('userRole','Contaminated Sites Approved Professionals Society'); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_0kfjdmp + Flow_0543g25 + Flow_1ev1kr6 + Flow_0d8ruax + + + Flow_1xj96i6 + Flow_1quswsc + Flow_142lsgk + + + Flow_1rc30l8 + + + 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_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'); +system.out.println ("typeOfReview "+typeOfReview); +execution.setVariable('typeOfReview',typeOfReview); +var clientEmail = execution.getVariable('simpleemail'); +system.out.println ("clientEmail "+clientEmail); +execution.setVariable('clientEmail',clientEmail); +var siteRiskClassification = execution.getVariable('siteRiskClassification'); +system.out.println ("siteRiskClassification "+siteRiskClassification ); +execution.setVariable('siteRiskClassification',siteRiskClassification); + + +var owneroperatorradioGroup = execution.getVariable('owneroperatorradioGroup'); +var hiddenUserIdForFormSharingApplicantAsOwner = execution.getVariable('hiddenUserIdForFormSharingApplicantAsOwner'); +var hiddenUserIdForFormSharingWithDiffOwner = execution.getVariable('hiddenUserIdForFormSharingWithDiffOwner'); +var userIdForSharing = ''; + + +system.out.println ("owneroperatorradioGroup "+owneroperatorradioGroup ); +system.out.println ("hiddenUserIdForFormSharingApplicantAsOwner"+hiddenUserIdForFormSharingApplicantAsOwner); +system.out.println ("hiddenUserIdForFormSharingWithDiffOwner "+hiddenUserIdForFormSharingWithDiffOwner); + + +if(owneroperatorradioGroup == "sameAsApplicant") + { + system.out.println("owneroperatorradioGroup"+hiddenUserIdForFormSharingApplicantAsOwner); + userIdForSharing = hiddenUserIdForFormSharingApplicantAsOwner; + + } + else + { + + system.out.println("WithDiffOwner"+hiddenUserIdForFormSharingWithDiffOwner); + userIdForSharing = hiddenUserIdForFormSharingWithDiffOwner; + + } + +system.out.println ("userIdForSharing"+userIdForSharing); +execution.setVariable('userIdForSharing',userIdForSharing); + +var listOwnerEmailAddress = []; +listOwnerEmailAddress.push(clientEmail); +execution.setVariable('EmailType','CSSA'); +execution.setVariable('name','User'); +execution.setVariable("emailTo", Java.to(listOwnerEmailAddress, "java.lang.Object[]")); +execution.setVariable('formName','Contaminated Sites Services Application Form'); + +var applicationsrequested = execution.getVariable('applicationsrequested'); +var certificationdocumentradioGroup = execution.getVariable('certificationdocumentradioGroup'); +var submissionTypeTwo = execution.getVariable('submissionTypeTwo'); +var isSoscAvailable = (submissionTypeTwo ? submissionTypeTwo.reportsSubmitted : false) || (applicationsrequested ? applicationsrequested.siteReclassification || +applicationsrequested.approvalOfBackgroundConcentrations : false) || (certificationdocumentradioGroup ? certificationdocumentradioGroup.determinationOfContaminatedSite +|| certificationdocumentradioGroup.approvalInPrinciple || certificationdocumentradioGroup.certificateOfCompliance : false) ? true : false; + +execution.setVariable('isSoscAvailable',isSoscAvailable); + + + + + execution.setVariable('applicationStatus', "Resubmit"); +execution.setVariable('returnedBy', "cssaTeam"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_19ktqsm + Flow_12uv3km + Flow_0qw9o9a + Flow_0wxa7vb + Flow_0b5e332 + Flow_1stifo9 + + + Flow_05pndkl + Flow_1asq9fa + Flow_1xx7tz6 + + + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_1xx7tz6 + Flow_16fwgn1 + + + + + task.execution.setVariable('isCssaTeam',false); + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','CSSA Team'); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_1quswsc + Flow_0gb2oz2 + Flow_0wr0mei + Flow_0lgivc3 + Flow_0bz8atu + + + Flow_0b418rv + Flow_12uv3km + Flow_0kfjdmp + + + Flow_0d8ruax + Flow_0gb2oz2 + Flow_0qw9o9a + Flow_0pzpbn7 + + + Flow_0iubwul + Flow_19ktqsm + Flow_0qbjx6e + Flow_1tu4hj7 + Flow_1ev1kr6 + + + Flow_0bz8atu + Flow_0iubwul + Flow_16ek6dk + + + Flow_08c8ij1 + Flow_0c90maq + Flow_17tf2x2 + + + + + + cssa_updated + + + Flow_0qbjx6e + Flow_07eueok + Flow_1nowy63 + Flow_1l5jf46 + Flow_17uy5we + Flow_0n61nyr + + + Flow_19ik9s7 + Flow_15f3evi + Flow_1i04zkp + + + Flow_15f3evi + Flow_0kw2jbo + Flow_0wxa7vb + Flow_1esdw3m + + + + + + cssa_updated + + + Flow_16ek6dk + Flow_14qx1q0 + + + Flow_14qx1q0 + + + 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', 'CSSA'); +task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','CSSA Form'); + + + + + + Flow_130v3rp + Flow_04rzv3x + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0ui56bn + Flow_1vxydh0 + + + Flow_0xnspeg + Flow_0ui56bn + Flow_07enxwq + Flow_0pqk381 + + + Flow_07enxwq + Flow_0yy721o + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"cssa"); + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'CSSA'); +task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','CSSA Form'); + + + + + + + + + Flow_0go33vq + Flow_13zl1nd + + + Flow_16qbig6 + Flow_0f731f5 + Flow_0yy721o + Flow_1c0kfis + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_1c0kfis + Flow_06v4kdf + + + Flow_18exjmw + + + Flow_0orrcue + Flow_00qi8nk + Flow_0go33vq + + + + + execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('cssaStatus', "Resubmitted"); +execution.setVariable('isCssaResubmitted', false); + + + + + ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "cssaStatus"] + + + + execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('isCssaResubmitted', true); + + + + ["applicationId", "applicationStatus", "isCssaResubmitted"] + + + + ${action == 'Returned'} + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' or action == 'Approved' } + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${isSentFromSociety == false} + + + + + + ["applicationId", "applicationStatus", "cssaStatus"] + + + + execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('isCssaResubmitted', true); + + + + ["applicationId", "applicationStatus", "isCssaResubmitted"] + + + + ${action == 'Returned'} + + + + + + cssa_subforms_updated + + + Flow_1sbxvgx + Flow_0rsx4qs + Flow_0jf2e1l + + + + Flow_13zl1nd + Flow_16qbig6 + Flow_1sbxvgx + + + + Flow_0jf2e1l + + + + + Flow_04rzv3x + Flow_0xnspeg + Flow_0rsx4qs + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'CSSA'); + + + + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('cssaStatus', "Resubmitted"); +execution.setVariable('isCssaResubmitted', false); + + + + ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] + + + + + + + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + Flow_18exjmw + Flow_06v4kdf + Flow_0pqk381 + Flow_0orrcue + var system = java.lang.System; +system.out.println ("Begin CSSA Flow - Sent To Caseworker"); +execution.setVariable('isCaseworker',false); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + + Flow_0nkb4yt + Flow_1m5dyj2 + + Flow_15z92rp + Flow_17dpj6g + Flow_0p3u1yj + Flow_0639o7i + 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', 'SoSC'); +task.execution.setVariable('soscStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','SoSC Form'); + + + + + + Flow_0639o7i + Flow_0yi6pa7 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_003kmau + Flow_17dpj6g + + + Flow_0mjgxil + Flow_003kmau + Flow_1itdpy9 + Flow_1raj7vr + + + Flow_1itdpy9 + Flow_0lf9s8z + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"sosc"); + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'SoSC'); +task.execution.setVariable('soscStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','SoSC Form'); + + + + + + + + + Flow_0vw0lda + Flow_1dc1l9u + + + Flow_0es7x0e + Flow_15z92rp + Flow_0lf9s8z + Flow_1p0ezkl + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_1p0ezkl + Flow_0xixsb5 + + + Flow_1raj7vr + Flow_0xixsb5 + Flow_01dcv2u + Flow_0xnsojj + var system = java.lang.System; +system.out.println ("Begin SoSC Flow - Sent To Caseworker"); +execution.setVariable('isCaseworker',false); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_01dcv2u + + + Flow_0xnsojj + Flow_0p3u1yj + Flow_0vw0lda + + + + + + cssa_subforms_updated + + + Flow_0vixcwm + Flow_1n9gcsu + Flow_11sb4e2 + + + Flow_1dc1l9u + Flow_0es7x0e + Flow_0vixcwm + + + Flow_11sb4e2 + + + Flow_0yi6pa7 + Flow_0mjgxil + Flow_1n9gcsu + + + + + execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "soscBundleStatus"] + + + + ${action == 'Accepted'} + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('soscStatus', "Resubmitted"); +execution.setVariable('isSoscResubmitted', false); + + + + + ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "soscStatus"] + + + + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('isSoscResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSoscResubmitted"] + + + + ${action == 'Returned'} + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' or action == 'Approved' } + + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${isSentFromSociety == false} + + + + + + ["applicationId", "applicationStatus", "soscStatus"] + + + + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + + execution.setVariable('isSoscResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSoscResubmitted"] + + + + ${action == 'Returned'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('soscStatus', "Resubmitted"); +execution.setVariable('isSoscResubmitted', false); + + + + ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'SoSC'); + + + + + + + + + + + + + + cssa_updated + + + Flow_1i04zkp + Flow_17tf2x2 + Flow_0jxnrvm + + + Flow_0g9jpvb + Flow_1kyum71 + Flow_1u3s5mj + Flow_0nkb4yt + + + Flow_0jxnrvm + + + Flow_0i3fcvy + Flow_131saby + Flow_1azn5ag + + + Flow_1azn5ag + Flow_04qadhc + Flow_02nvps4 + + + Flow_04qadhc + Flow_01v1a0f + + Flow_1lumm7v + Flow_0rqk8na + Flow_00s15ao + Flow_1odhac6 + 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', 'CSSA'); +task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','CSSA Form'); + + + + + + Flow_1odhac6 + Flow_15nyxwz + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_1surrqx + Flow_0rqk8na + + + Flow_1gd48dj + Flow_1surrqx + Flow_1g1rouj + Flow_0axjodg + + + Flow_1g1rouj + Flow_1r30rh3 + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"cssa"); + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'CSSA'); +task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','CSSA Form'); + + + + + + + + + Flow_0kko947 + Flow_13jm4kf + + + Flow_1jlvkno + Flow_1lumm7v + Flow_1r30rh3 + Flow_0xf5y0k + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0xf5y0k + Flow_1uwj5on + + + Flow_06rvauy + + + Flow_1s3el1j + Flow_00s15ao + Flow_0kko947 + + + + + + cssa_subforms_updated + + + Flow_11hmda7 + Flow_1vjuqup + Flow_0u4wuii + + + Flow_13jm4kf + Flow_1jlvkno + Flow_11hmda7 + + + Flow_0u4wuii + + + Flow_15nyxwz + Flow_1gd48dj + Flow_1vjuqup + + + Flow_0axjodg + Flow_1uwj5on + Flow_06rvauy + Flow_1s3el1j + var system = java.lang.System; +system.out.println ("Begin CSSA Flow - Sent To Caseworker"); +execution.setVariable('isCaseworker',false); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + + + execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('cssaStatus', "Resubmitted"); +execution.setVariable('isCssaResubmitted', false); + + + + + ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "cssaStatus"] + + + + execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('isCssaResubmitted', true); + + + + ["applicationId", "applicationStatus", "isCssaResubmitted"] + + + + ${action == 'Returned'} + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' or action == 'Approved' } + + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${isSentFromSociety == false} + + + + + + ["applicationId", "applicationStatus", "cssaStatus"] + + + + execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + + execution.setVariable('isCssaResubmitted', true); + + + + ["applicationId", "applicationStatus", "isCssaResubmitted"] + + + + ${action == 'Returned'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('cssaStatus', "Resubmitted"); +execution.setVariable('isCssaResubmitted', false); + + + + ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'CSSA'); + + + + + + + + + + + Flow_02nvps4 + Flow_147keeo + + Flow_0ly2cyz + Flow_0niwre0 + Flow_1nl5ipm + Flow_0f4x52g + 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', 'SoSC'); +task.execution.setVariable('soscStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','SoSC Form'); + + + + + + Flow_0f4x52g + Flow_0ut0zi1 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0ux2vew + Flow_0niwre0 + + + Flow_0of98ac + Flow_0ux2vew + Flow_1aeuu2q + Flow_1cqow89 + + + Flow_1aeuu2q + Flow_1qqnzvx + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"sosc"); + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'SoSC'); +task.execution.setVariable('soscStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','SoSC Form'); + + + + + + + + + Flow_0b48ica + Flow_02bhjf4 + + + Flow_0uqrlo1 + Flow_0ly2cyz + Flow_1qqnzvx + Flow_1c5adbp + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_1c5adbp + Flow_0cd2y9a + + + Flow_1cqow89 + Flow_0cd2y9a + Flow_08ue3be + Flow_027qwvp + var system = java.lang.System; +system.out.println ("Begin SoSC Flow - Sent To Caseworker"); +execution.setVariable('isCaseworker',false); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_08ue3be + + + Flow_027qwvp + Flow_1nl5ipm + Flow_0b48ica + + + + + + cssa_subforms_updated + + + Flow_1tw25qi + Flow_1wmn6pm + Flow_09ntkx7 + + + Flow_02bhjf4 + Flow_0uqrlo1 + Flow_1tw25qi + + + Flow_09ntkx7 + + + Flow_0ut0zi1 + Flow_0of98ac + Flow_1wmn6pm + + + + + execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "soscBundleStatus"] + + + + ${action == 'Accepted'} + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('soscStatus', "Resubmitted"); +execution.setVariable('isSoscResubmitted', false); + + + + + ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "soscStatus"] + + + + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('isSoscResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSoscResubmitted"] + + + + ${action == 'Returned'} + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' or action == 'Approved' } + + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${isSentFromSociety == false} + + + + + + ["applicationId", "applicationStatus", "soscStatus"] + + + + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + + execution.setVariable('isSoscResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSoscResubmitted"] + + + + ${action == 'Returned'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('soscStatus', "Resubmitted"); +execution.setVariable('isSoscResubmitted', false); + + + + ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'SoSC'); + + + + + + + + + + + Flow_01v1a0f + Flow_147keeo + Flow_1l5jf46 + + + Flow_0n61nyr + + + Flow_1b7b7vp + Flow_1j9qdt7 + + Flow_01dljge + Flow_1inicnb + Flow_00llqqu + Flow_10vct33 + 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', 'CSSA'); +task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','CSSA Form'); + + + + + + Flow_10vct33 + Flow_1orl3n2 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0y6yjq4 + Flow_1inicnb + + + Flow_0gcxxyc + Flow_0y6yjq4 + Flow_1x8qn14 + Flow_18f4dcj + + + Flow_1x8qn14 + Flow_1huo0lg + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"cssa"); + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'CSSA'); +task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','CSSA Form'); + + + + + + + + + Flow_1385q2s + Flow_0hla21j + + + Flow_1u5ar4j + Flow_01dljge + Flow_1huo0lg + Flow_08vhe64 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_08vhe64 + Flow_0j3ub9c + + + Flow_15qwrqx + + + Flow_1mlkd5t + Flow_00llqqu + Flow_1385q2s + + + + + + cssa_subforms_updated + + + Flow_1ldt3wq + Flow_1gathh9 + Flow_0vsb9eb + + + Flow_0hla21j + Flow_1u5ar4j + Flow_1ldt3wq + + + Flow_0vsb9eb + + + Flow_1orl3n2 + Flow_0gcxxyc + Flow_1gathh9 + + + Flow_18f4dcj + Flow_0j3ub9c + Flow_15qwrqx + Flow_1mlkd5t + var system = java.lang.System; +system.out.println ("Begin CSSA Flow - Sent To Caseworker"); +execution.setVariable('isCaseworker',false); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + + + execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('cssaStatus', "Resubmitted"); +execution.setVariable('isCssaResubmitted', false); + + + + + ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "cssaStatus"] + + + + execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('isCssaResubmitted', true); + + + + ["applicationId", "applicationStatus", "isCssaResubmitted"] + + + + ${action == 'Returned'} + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' or action == 'Approved' } + + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${isSentFromSociety == false} + + + + + + ["applicationId", "applicationStatus", "cssaStatus"] + + + + execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + + execution.setVariable('isCssaResubmitted', true); + + + + ["applicationId", "applicationStatus", "isCssaResubmitted"] + + + + ${action == 'Returned'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('cssaStatus', "Resubmitted"); +execution.setVariable('isCssaResubmitted', false); + + + + ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'CSSA'); + + + + + + + + + + + Flow_1r9sgs4 + Flow_1x22wup + + Flow_03yoy3w + Flow_0il3vmv + Flow_05wlevd + Flow_0are22b + 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('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','Caseworker'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + + Flow_0are22b + Flow_07l3syo + + + Flow_0an51l4 + Flow_1fu9yzy + Flow_1snhou2 + Flow_1ndkwtp + Flow_1h0m3i7 + + + Flow_1snhou2 + Flow_0xfqt3y + Flow_1vdz37b + Flow_01epz2i + Flow_16pxdg9 + 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')); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + Flow_16pxdg9 + Flow_0ftakdr + + + Flow_1yzlrk5 + Flow_1w63bha + Flow_1xo2d1y + Flow_0k8zbtn + + + Flow_1fu9yzy + Flow_1w63bha + Flow_057mgr6 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + Flow_1h0m3i7 + Flow_0il3vmv + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + Flow_1xo2d1y + Flow_0xfqt3y + + + Flow_1quxcj1 + Flow_05wlevd + Flow_1vdz37b + + + Flow_1ndkwtp + Flow_13fkd7i + Flow_18uiwvj + Flow_0qth6vy + Flow_1j7p3z3 + Flow_10q9ixt + var system = java.lang.System; +system.out.println ("Begin SRCR Flow - Sent To SRCO"); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_18uiwvj + + + + + + 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'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + Flow_10q9ixt + Flow_1jv9mjo + + + Flow_099g99i + Flow_057mgr6 + Flow_1m3u6g8 + Flow_0ubwm3f + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + Flow_0ubwm3f + Flow_13fkd7i + + + Flow_1m3u6g8 + Flow_01epz2i + Flow_1quxcj1 + + + Flow_0k8zbtn + Flow_0qth6vy + Flow_06l4mcj + + + Flow_06l4mcj + Flow_03yoy3w + Flow_1j7p3z3 + + + + + + cssa_subforms_updated + + + Flow_1f5nol9 + Flow_07t1o4f + Flow_04demhb + Flow_1fnm4v9 + + + Flow_1jv9mjo + Flow_099g99i + Flow_1f5nol9 + + + Flow_07l3syo + Flow_0an51l4 + Flow_07t1o4f + + + Flow_1fnm4v9 + + + Flow_0ftakdr + Flow_1yzlrk5 + Flow_04demhb + + + + + + + ${isSentFromSociety == false} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); + + + + ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] + + + + + + + + ${isSentFromSociety == false} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + + + execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "srcrBundleStatus"] + + + + ${action == 'Accepted'} + + + ${action == 'Recheck'} + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); + + + + + ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + ${siteRiskClassification != 'notHighRisk'} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Approved' or action == 'Rejected' } + + + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + ${action == 'Recheck' } + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' } + + + ${siteRiskClassification == 'notHighRisk'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); + + + + ["applicationId", "applicationStatus", "srcrStatus", "isSrcrResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'SRCR'); + + + + + + + + + + ${siteRiskClassification != 'notHighRisk' } + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); + + + + ["applicationId", "applicationStatus", "srcrBundleStatus"] + + + + ${action == 'Accepted'} + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + ${siteRiskClassification == 'notHighRisk' } + + + + + + + + + + + + execution.setVariable('bundleStatus', "cssaMgrAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + ${action == 'Recheck'} + + + + ${riskclassification == 'exempt'} + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${riskclassification != 'exempt'} + + + + + + + + execution.setVariable('formUrl', execution.getVariable('cssaFormUrl')); + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); +execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); +execution.setVariable('formUrl', execution.getVariable('soscFormUrl')); + + + + if (execution.getVariable('cssaStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" && execution.getVariable('soscStatus') === "Approved" ) +{ +execution.setVariable("applicationStatus", "Approved"); +} +else{ +execution.setVariable("applicationStatus", "Rejected"); +} + + + + + + ${applicationStatus== 'Resubmitted' and isSdm== true} + + + ${isSentFromSociety == true} + + + + + execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + + ${applicationStatus== 'Resubmitted' and isCaseworker== true} + + + ${action == 'Recheck' and isSentFromSociety == false} + + + ${isSoscAvailable==false} + + + + ${isSentFromSociety == false} + + + + + + + + execution.setVariable('isSdm',true); + + + ${action == 'Returned'} + + + ${action == 'Recheck' and isSentFromSociety == true} + + + ${action == 'Rejected' or action == 'Approved' } + + + ${isSoscAvailable==true} + + + ${isSoscAvailable==false} + + + + + + + + execution.setVariable('bundleStatus', "cssaTeamAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + ${action == 'Recheck'} + + + + ${applicationStatus== 'Resubmitted' and isCssaTeam== true} + + + ${applicationStatus== 'Resubmitted' and isSociety== true} + + + ${applicationStatus== 'Resubmitted' and isAp== true} + + + ${applicationStatus!= 'Resubmitted'} + + + + ${applicationStatus== 'Signed'} + + + ${owneroperatorradioGroup=='sameAsApplicant'} + + + + ${typeOfReview!= 'directToMinistryApplication'} + + + ${action == 'Recheck'} + + + + + ${action == 'Accepted'} + + + ${action == 'Recheck'} + + + + + + var system = java.lang.System; +execution.setVariable('isSentFromSociety',false); +system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSociety')); + + + ${typeOfReview== 'directToMinistryApplication'} + + + + + + + ["applicationId", "applicationStatus"] + + + + + + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); + + + + ["applicationId", "applicationStatus"] + + + + + + + + + + execution.setVariable('isCaseworker',true); + + + ${action == 'Returned'} + + + + + execution.setVariable('isCssaTeam',true); + + + ${action == 'Returned'} + + + + + execution.setVariable('isAp',true); + + + ${action == 'Returned'} + + + + + execution.setVariable('isSociety',true); + + + ${action == 'Returned'} + + + + + var system = java.lang.System; +system.out.println ("site owner flow"); + + + ${owneroperatorradioGroup=='different'} + + + + ${action == 'Accepted'} + + + + + + + ${action == 'Rejected'} + + + + + + + execution.setVariable('formUrl', execution.getVariable('cssaFormUrl')); + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); +execution.setVariable('formUrl', execution.getVariable('soscFormUrl')); + + + + if (execution.getVariable('cssaStatus') === "Approved" && execution.getVariable('soscStatus') === "Approved" ) +{ +execution.setVariable("applicationStatus", "Approved"); +} +else{ +execution.setVariable("applicationStatus", "Rejected"); +} + + + + + + + + + + + + + ${isSoscAvailable==true} + + + + + + + Flow_1j9qdt7 + Flow_1x22wup + Flow_17uy5we + + + + + + + execution.setVariable('formUrl', execution.getVariable('cssaFormUrl')); + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); +execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); + + + + if (execution.getVariable('cssaStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" ) +{ +execution.setVariable("applicationStatus", "Approved"); +} +else{ +execution.setVariable("applicationStatus", "Rejected"); +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 13f82f39f54d7342744d550a8784cbf24ab0e6f7 Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Wed, 17 Jan 2024 12:48:06 -0800 Subject: [PATCH 2/9] modification for dera sosc bundle --- .../subProcess/DERABundleWorkflow.bpmn | 6735 ++++++++++++----- .../subProcess/DERABundleWorklowv1.bpmn | 5776 -------------- 2 files changed, 4981 insertions(+), 7530 deletions(-) delete mode 100644 forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorklowv1.bpmn 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 63de0e52..07e4945d 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,18 +1,20 @@ - + - + - + - Activity_1v5ffpw - Activity_1ozfgid - Activity_0k6ixqm - StartEvent_1 - Gateway_08cgufe - Activity_15772wo Gateway_17raw62 + Activity_15772wo + Gateway_08cgufe + StartEvent_1 + Activity_0k6ixqm + Activity_1ozfgid + Activity_1v5ffpw + Gateway_1qqphxe + Activity_0a9pnut Activity_1uc1xs1 @@ -21,175 +23,150 @@ Activity_08ykdar Gateway_0oobb3z - Gateway_1jh43p2 + Gateway_1gzq005 Activity_1os7sys - Event_1mmor63 + Event_0bwdoce Activity_1ao3zkj Gateway_15p5urd - Gateway_1lbpcug - Activity_1hs3dja - Activity_1bsz2qm - Gateway_1lgyz1h - Activity_0tsm937 - Activity_15e3ho6 Gateway_1m36jwe - Gateway_0uf75ow - Activity_07ttn7q - Activity_1bhbq4y + Activity_15e3ho6 + Activity_0tsm937 + Gateway_1lgyz1h + Activity_1bsz2qm + Activity_1hs3dja + Gateway_1lbpcug + Gateway_1xrj5sn + Gateway_1l4bqor + Activity_0kxdigs + Gateway_0pty1fn Gateway_0o9l3lp - Gateway_0vaxmur + Activity_0q362ss + Gateway_0uf75ow + Event_1n5addo + Gateway_0vp590v + Gateway_0qemi54 Event_0sdygwc - Activity_0q5r5d4 - Gateway_0uti2q1 + Activity_1bhbq4y + Activity_07ttn7q + Activity_12e3zvm + Activity_1wrcu91 + Activity_0r75nsw + Activity_0baoxlp + Activity_1d2xuv3 + Gateway_06gmmov - Activity_0vo5rls - Gateway_1chdumm - Activity_1qnqtak Gateway_1lfy3cm + Activity_1qnqtak + Gateway_1chdumm + Gateway_1l0ehcm + Activity_0vo5rls + Gateway_0w0koaj - - ${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'} - - + + Flow_0gcqir8 + Flow_02ysv7t + Flow_0lgivc3 + + - ${action == 'Accepted'} - - - - ${applicationStatus== 'Resubmitted' and isCssaTeam== true} - - - ${applicationStatus== 'Resubmitted' and isSociety== true} - - - ${applicationStatus== 'Resubmitted' and isAp== true} - - - ${applicationStatus!= 'Resubmitted'} - - - + Flow_02ysv7t + Flow_026ykts + var system = java.lang.System; +var selectDeraSdm= execution.getVariable('selectDeraSdm'); +system.out.println ("selectDeraSdm"+selectDeraSdm); +execution.setVariable('deraSdmAssignment',selectDeraSdm); +system.out.println ("deraSdmAssignment"+execution.getVariable('deraSdmAssignment')); + +var selectDeraCaseworker= execution.getVariable('selectDeraCaseworker'); +system.out.println ("selectDeraCaseworker"+selectDeraCaseworker); +execution.setVariable('deraCaseworkerAssignment',selectDeraCaseworker); +system.out.println ("deraCaseworkerAssignment"+execution.getVariable('deraCaseworkerAssignment')); + +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 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'); +system.out.println ("selectSdm"+selectSdm); +execution.setVariable('sdmAssignment',selectSdm); +system.out.println ("sdmAssignment"+execution.getVariable('sdmAssignment')); + +var selectCaseworker= 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')); + + + Flow_026ykts + Flow_0drs8s9 + Flow_0i3fcvy + + + Flow_0fa3idu + Flow_1phkhb3 + Flow_1m5dyj2 + Flow_1nowy63 + + + Flow_0kw2jbo + Flow_057qs1x + Flow_0ovj0pk + Flow_07vh0na + var system = java.lang.System; +system.out.println ("Sent to SDM"); + + + Flow_0d8ioqs + Flow_1jxxrt6 + Flow_131saby + 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_0qiqnks + Flow_057qs1x + Flow_01suxh6 + + - task.execution.setVariable('isCssaTeam',false); -task.execution.setVariable('userRole','CSSA Team'); + task.execution.setVariable('isCaseworker',false); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); @@ -198,194 +175,59 @@ task.execution.setVariable('deleteReason', "completed"); - Flow_1quswsc - Flow_0gb2oz2 - Flow_0wr0mei - Flow_0lgivc3 - Flow_0bz8atu + Flow_01suxh6 + Flow_19ik9s7 - + - - execution.setVariable('applicationStatus', "Resubmit"); -execution.setVariable('returnedBy', "cssaTeam"); - - - + + 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_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'); -system.out.println ("typeOfReview "+typeOfReview); -execution.setVariable('typeOfReview',typeOfReview); -var clientEmail = execution.getVariable('simpleemail'); -system.out.println ("clientEmail "+clientEmail); -execution.setVariable('clientEmail',clientEmail); -var siteRiskClassification = execution.getVariable('siteRiskClassification'); -system.out.println ("siteRiskClassification "+siteRiskClassification ); -execution.setVariable('siteRiskClassification',siteRiskClassification); -execution.setVariable('formName','Detailed Ecological Risk Assessment Checklist'); -execution.setVariable('EmailType','DERA'); -execution.setVariable('name','User'); -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_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_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 + Flow_07vh0na + Flow_08c8ij1 - - ${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 + + Flow_0c90maq + Flow_0b5e332 + Flow_1jxxrt6 + Flow_07eueok + Flow_0aabyhy - - ${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 + + Flow_0drs8s9 + Flow_0g9jpvb + Flow_118thnc + + + Flow_118thnc + Flow_1b7b7vp + Flow_1r9sgs4 + + + Flow_1u3s5mj + Flow_1phkhb3 + + Flow_05vthw4 + Flow_1ojyq91 + Flow_019edzt + Flow_0cdvwnp var system = java.lang.System; -system.out.println ("Sent to SDM"); +system.out.println ("Sent to Caseworker"); - + @@ -397,51 +239,42 @@ system.out.println ("Sent to SDM"); task.execution.setVariable('task_id',task.getId()); - +task.execution.setVariableLocal('variable1',"srcr"); 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('requestType', 'SRCR'); task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','DERA Form'); +task.execution.setVariable('srcrStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','SRCR Form'); + - + - Flow_130v3rp - Flow_04rzv3x + Flow_0cdvwnp + Flow_1ccbyzk - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_0ui56bn - Flow_1vxydh0 - - - Flow_1wvb9m4 - Flow_0ui56bn - Flow_0pqk381 - Flow_07enxwq + + Flow_02gyla8 + Flow_0zzhoui + Flow_1ixkifd + Flow_0pqd76u + Flow_187pabg - - Flow_07enxwq - Flow_0yy721o - - + + Flow_1ixkifd + Flow_0izugkb + Flow_0xqj2sm + Flow_1pdey0j + Flow_0qaeplv + var system = java.lang.System; +system.out.println ("Sent to SDM"); + + @@ -452,33 +285,36 @@ task.execution.setVariable('subFormName','DERA Form'); - task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"dera"); - + 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('requestType', 'SRCR'); task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','DERA Form'); +task.execution.setVariable('srcrStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','SRCR Form'); - + - Flow_0go33vq - Flow_13zl1nd + Flow_0qaeplv + Flow_0mtd57d - - Flow_1qn2dpn - Flow_0f731f5 - Flow_0yy721o - Flow_1c0kfis - - + + Flow_1jm1bhe + Flow_0k5l8nk + Flow_0ryglee + Flow_1kizv19 + + + Flow_0zzhoui + Flow_0k5l8nk + Flow_14snpj2 + + execution.setVariable('applicationStatus', "Resubmit"); @@ -486,221 +322,453 @@ task.execution.setVariable('subFormName','DERA Form'); - ["applicationId", "applicationStatus"] + ["applicationId", "applicationStatus", "srcrStatus"] - Flow_1c0kfis - Flow_06v4kdf + Flow_187pabg + Flow_1ojyq91 - - Flow_0pqk381 - Flow_06v4kdf - Flow_18exjmw - Flow_0orrcue + + + + 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 DERA Flow - Sent To Caseworker"); -execution.setVariable('isCaseworker',false); +system.out.println ("Begin SRCR Flow - Sent To SRCO"); system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - Flow_18exjmw + + Flow_1axts3r - - Flow_0orrcue - Flow_00qi8nk - Flow_0go33vq + + + + + 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'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + Flow_0c71o5w + Flow_0h34vew + + + Flow_168htzm + Flow_14snpj2 + Flow_0qz0c7u + Flow_1ifs52w - - ${action == 'Accepted'} + + + + 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('deraStatus', "Resubmitted"); -execution.setVariable('isDeraResubmitted', false); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); - - ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] + ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] - - ${isSentFromSociety == true} + + ${isSentFromSociety == false} - - + + - ["applicationId", "applicationStatus", "deraStatus"] + ["applicationId", "applicationStatus", "srcrStatus"] - execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + ${action == 'Rejected'} - + - - - - execution.setVariable('isDeraResubmitted', true); + execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); - ["applicationId", "applicationStatus", "isDeraResubmitted"] + ["applicationId", "applicationStatus", "srcrBundleStatus"] - ${action == 'Returned'} + ${action == 'Accepted'} - - - - - - ${action == 'Recheck' and isSentFromSociety == false} + + + ${action == 'Recheck'} - + - - + - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + - ${action == 'Rejected' or action == 'Approved' } + ${action == 'Returned' } - + - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); + + + + + ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] + + + - ${action == 'Rejected'} - - ${isSentFromSociety == false} + + ${isSentFromSociety == true} + + + ${siteRiskClassification != 'notHighRisk'} - + + - ["applicationId", "applicationStatus", "deraStatus"] + ["applicationId", "applicationStatus", "srcrStatus"] - execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + ${action == 'Approved' or action == 'Rejected' } - + + + - execution.setVariable('isDeraResubmitted', true); + execution.setVariable('isSrcrResubmitted', true); - ["applicationId", "applicationStatus", "isDeraResubmitted"] + ["applicationId", "applicationStatus", "isSrcrResubmitted"] - ${action == 'Returned'} + ${action == 'Returned' } - + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' } + + + ${siteRiskClassification == 'notHighRisk'} + + execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('deraStatus', "Resubmitted"); -execution.setVariable('isDeraResubmitted', false); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); - ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] + ["applicationId", "applicationStatus", "srcrStatus", "isSrcrResubmitted"] - + execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'DERA'); +execution.setVariable('requestType', 'SRCR'); - + - + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); + + + + ["applicationId", "applicationStatus", "srcrBundleStatus"] + + + + ${action == 'Accepted'} + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + + + + + ${siteRiskClassification != 'notHighRisk' } + + + Flow_1kizv19 + Flow_1g44pgu + Flow_1q2jho1 + + + ${action == 'Recheck' } + + + Flow_1q2jho1 + Flow_05vthw4 + Flow_1up3td8 + + + ${siteRiskClassification == 'notHighRisk' } + + + + + + + ${isSentFromSociety == true} + + dera_subforms_updated - Flow_0zq3j61 - Flow_04eqln5 - Flow_19nit40 + Flow_0dn9scp + Flow_0v3xmtu + Flow_007p6h2 + Flow_1g9gkqq - - - Flow_13zl1nd - Flow_1qn2dpn - Flow_0zq3j61 + + + Flow_0h34vew + Flow_168htzm + Flow_0dn9scp - - - - - Flow_19nit40 + + + + Flow_1ccbyzk + Flow_02gyla8 + Flow_0v3xmtu + + + + Flow_1g9gkqq - - - - Flow_04rzv3x - Flow_1wvb9m4 - Flow_04eqln5 + + + + Flow_0mtd57d + Flow_1jm1bhe + Flow_007p6h2 - + - - Flow_08c8ij1 - Flow_0b5e332 - Flow_1jxxrt6 - Flow_07eueok - Flow_0aabyhy + + + + 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_0ohuh4k + Flow_1xj96i6 + Flow_0527h3y + Flow_0543g25 + Flow_0wr0mei + Flow_0d8ioqs + Flow_0ovj0pk - + + + + var system = java.lang.System; +system.out.println ("form signed"); + + + Flow_1asq9fa + Flow_16fwgn1 + Flow_0ohuh4k + + - task.execution.setVariable('isSdm',false); - + task.execution.setVariable('isAp',false); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('userRole','Contaminated Sites Approved Professional'); @@ -709,20 +777,24 @@ task.execution.setVariable('userRole','Statutory Decision Maker'); - Flow_07vh0na - Flow_08c8ij1 + Flow_142lsgk + Flow_0pzpbn7 + Flow_0527h3y + Flow_0b418rv - + - task.execution.setVariable('isCaseworker',false); - + task.execution.setVariable('isSociety',false); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); +var system = java.lang.System; +task.execution.setVariable('isSentFromSociety',true); +system.out.println ("isSentFromSociety "+ task.execution.getVariable('isSentFromSociety')); +task.execution.setVariable('userRole','Contaminated Sites Approved Professionals Society'); @@ -731,147 +803,199 @@ task.execution.setVariable('userRole','Caseworker'); - Flow_01suxh6 - Flow_19ik9s7 + Flow_0kfjdmp + Flow_0543g25 + Flow_1ev1kr6 + Flow_0d8ruax - - Flow_0qiqnks - Flow_057qs1x - Flow_01suxh6 + + Flow_1xj96i6 + Flow_1quswsc + Flow_142lsgk - - Flow_0i3fcvy - Flow_0d8ioqs - Flow_1jxxrt6 - Flow_0qiqnks + + Flow_1rc30l8 + + + Flow_1rc30l8 + Flow_0dbqph3 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')); +system.out.println ("Submit Bundle"); +execution.setVariable('isAp',false); +execution.setVariable('isSociety',false); +execution.setVariable('isCssaTeam',false); - - Flow_0kw2jbo - Flow_057qs1x - Flow_0ovj0pk - Flow_07vh0na + + Flow_0dbqph3 + Flow_1stifo9 + Flow_05pndkl var system = java.lang.System; -system.out.println ("Sent to SDM"); +var riskclassification = execution.getVariable('riskclassification'); +system.out.println ("riskclassification "+riskclassification); +var typeOfReview = execution.getVariable('typeOfReview'); +system.out.println ("typeOfReview "+typeOfReview); +execution.setVariable('typeOfReview',typeOfReview); +var clientEmail = execution.getVariable('simpleemail'); +system.out.println ("clientEmail "+clientEmail); +execution.setVariable('clientEmail',clientEmail); +var siteRiskClassification = execution.getVariable('siteRiskClassification'); +system.out.println ("siteRiskClassification "+siteRiskClassification ); +execution.setVariable('siteRiskClassification',siteRiskClassification); +execution.setVariable('formName','Detailed Ecological Risk Assessment Checklist'); +execution.setVariable('EmailType','DERA'); +execution.setVariable('name','User'); +var emailsToArray = []; +emailsToArray.push(clientEmail) +execution.setVariable("emailTo", Java.to(emailsToArray, "java.lang.Object[]")); + +var isSoscAvailable = typeOfReview === 'directToMinistryApplication'? false: true; +execution.setVariable('isSoscAvailable',isSoscAvailable); - - 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 + + + + execution.setVariable('applicationStatus', "Resubmit"); +execution.setVariable('returnedBy', "cssaTeam"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_19ktqsm + Flow_12uv3km + Flow_0qw9o9a + Flow_0wxa7vb + Flow_0b5e332 + Flow_1stifo9 + + + Flow_05pndkl + Flow_1asq9fa + Flow_1xx7tz6 - - - 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 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 selectSrco= execution.getVariable('selectSrco'); -system.out.println ("selectSrco"+selectSrco); -execution.setVariable('srcoAssignment',selectSrco); -system.out.println ("srcoAssignment"+execution.getVariable('srcoAssignment')); - - - - Flow_0gcqir8 - Flow_02ysv7t - Flow_0lgivc3 - - + + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_1xx7tz6 + Flow_16fwgn1 + + + + + task.execution.setVariable('isCssaTeam',false); + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','CSSA Team'); + + + + + ["applicationId", "applicationStatus"] + + + + Flow_1quswsc + Flow_0gb2oz2 + Flow_0wr0mei + Flow_0lgivc3 + Flow_0bz8atu + Flow_0b418rv Flow_12uv3km Flow_0kfjdmp - - Flow_1j8wa3r - Flow_19ktqsm - Flow_1tu4hj7 - Flow_1ev1kr6 - Flow_0qbjx6e - Flow_0d8ruax Flow_0gb2oz2 Flow_0qw9o9a Flow_0pzpbn7 - - - + + Flow_0iubwul + Flow_19ktqsm + Flow_0qbjx6e + Flow_1tu4hj7 + Flow_1ev1kr6 + + Flow_0bz8atu - Flow_1j8wa3r - Flow_1sj5fc8 + Flow_0iubwul + Flow_16ek6dk - - Flow_1u3s5mj - Flow_1phkhb3 - - Flow_05vthw4 - Flow_1ojyq91 - Flow_019edzt - Flow_0cdvwnp + + Flow_08c8ij1 + Flow_0c90maq + Flow_17tf2x2 + + + + + + dera_updated + + + Flow_0qbjx6e + Flow_07eueok + Flow_1nowy63 + Flow_1l5jf46 + Flow_17uy5we + Flow_0n61nyr + + + Flow_19ik9s7 + Flow_15f3evi + Flow_1i04zkp + + + Flow_15f3evi + Flow_0kw2jbo + Flow_0wxa7vb + Flow_1esdw3m + + + + + + dera_updated + + + Flow_16ek6dk + Flow_14qx1q0 + + + Flow_14qx1q0 + + + Flow_1kyum71 + Flow_0fa3idu + + Flow_0f731f5 + Flow_1vxydh0 + Flow_00qi8nk + Flow_130v3rp var system = java.lang.System; -system.out.println ("Sent to Caseworker"); +system.out.println ("Sent to SDM"); - + @@ -882,43 +1006,51 @@ system.out.println ("Sent to Caseworker"); - task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"srcr"); -task.execution.setVariable('userRole','Caseworker'); + 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('requestType', 'DERA'); +task.execution.setVariable('deraStatus', task.execution.getVariable('action')); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','SRCR Form'); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','DERA Form'); - + - Flow_0cdvwnp - Flow_1ccbyzk + Flow_130v3rp + Flow_04rzv3x - - Flow_09v3kpi - Flow_0zzhoui - Flow_1ixkifd - Flow_0pqd76u - Flow_187pabg + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0ui56bn + Flow_1vxydh0 + + + Flow_0xnspeg + Flow_0ui56bn + Flow_07enxwq + Flow_0pqk381 - - Flow_1ixkifd - Flow_0izugkb - Flow_0xqj2sm - Flow_1pdey0j - Flow_0qaeplv - var system = java.lang.System; -system.out.println ("Sent to SDM"); - - + + Flow_07enxwq + Flow_0yy721o + + @@ -930,36 +1062,34 @@ system.out.println ("Sent to SDM"); task.execution.setVariable('task_id',task.getId()); - +task.execution.setVariableLocal('variable1',"dera"); 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('requestType', 'DERA'); +task.execution.setVariable('deraStatus', task.execution.getVariable('action')); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','SRCR Form'); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','DERA Form'); + + + - + - Flow_0qaeplv - Flow_0mtd57d + Flow_0go33vq + Flow_13zl1nd - - Flow_0qvoubs - Flow_0k5l8nk - Flow_0ryglee - Flow_1kizv19 + + Flow_16qbig6 + Flow_0f731f5 + Flow_0yy721o + Flow_1c0kfis - - Flow_0zzhoui - Flow_0k5l8nk - Flow_14snpj2 - - + execution.setVariable('applicationStatus', "Resubmit"); @@ -967,1547 +1097,4644 @@ task.execution.setVariable('subFormName','SRCR Form'); - ["applicationId", "applicationStatus", "srcrStatus"] + ["applicationId", "applicationStatus"] - Flow_187pabg - Flow_1ojyq91 + Flow_1c0kfis + Flow_06v4kdf - + + Flow_18exjmw + + + Flow_0orrcue + Flow_00qi8nk + Flow_0go33vq + + - - execution.setVariable('applicationStatus', "Resubmit"); + + execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); - - + - ["applicationId", "applicationStatus", "srcrStatus"] + ["applicationId", "applicationStatus", "bundleStatus"] - - 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'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - 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} + ${action == 'Accepted'} - + - execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); +execution.setVariable('deraStatus', "Resubmitted"); +execution.setVariable('isDeraResubmitted', false); + - ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] + ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] - - ${isSentFromSociety == false} + + ${isSentFromSociety == true} - - + + - ["applicationId", "applicationStatus", "srcrStatus"] + ["applicationId", "applicationStatus", "deraStatus"] - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); - ${action == 'Rejected'} - + + + + - execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); + execution.setVariable('isDeraResubmitted', true); - ["applicationId", "applicationStatus", "srcrBundleStatus"] + ["applicationId", "applicationStatus", "isDeraResubmitted"] - ${action == 'Accepted'} - - - - ${action == 'Recheck'} + ${action == 'Returned'} - + - + + - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - ${action == 'Returned' } + ${action == 'Rejected' or action == 'Approved' } - + - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); - - - - - ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] - + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - + ${action == 'Rejected'} - - ${isSentFromSociety == true} - - - ${siteRiskClassification != 'notHighRisk'} + + ${isSentFromSociety == false} - - + - ["applicationId", "applicationStatus", "srcrStatus"] + ["applicationId", "applicationStatus", "deraStatus"] - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - ${action == 'Approved' or action == 'Rejected' } - + - - - execution.setVariable('isSrcrResubmitted', true); + execution.setVariable('isDeraResubmitted', true); - ["applicationId", "applicationStatus", "isSrcrResubmitted"] + ["applicationId", "applicationStatus", "isDeraResubmitted"] - ${action == 'Returned' } + ${action == 'Returned'} - + + + + + dera_subforms_updated + + + Flow_1sbxvgx + Flow_0rsx4qs + Flow_0jf2e1l + + + + Flow_13zl1nd + Flow_16qbig6 + Flow_1sbxvgx + + + + Flow_0jf2e1l + + + + + Flow_04rzv3x + Flow_0xnspeg + Flow_0rsx4qs + + + + + + - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'DERA'); + - ${action == 'Rejected' } - - - ${siteRiskClassification == 'notHighRisk'} - + execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); +execution.setVariable('deraStatus', "Resubmitted"); +execution.setVariable('isDeraResubmitted', false); - ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] + ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] - + - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'SRCR'); - + + ${action == 'Recheck' and isSentFromSociety == false} - - - - + + Flow_18exjmw + Flow_06v4kdf + Flow_0pqk381 + 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_0nkb4yt + Flow_1m5dyj2 + + Flow_15z92rp + Flow_17dpj6g + Flow_0p3u1yj + Flow_0639o7i + var system = java.lang.System; +system.out.println ("Sent to SDM"); + + - + + + Y + - ["applicationId", "applicationStatus", "srcrStatus"] + ["pid","applicationId","process_pid","task_id"] - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); + + + task.execution.setVariable('task_id',task.getId()); + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'SoSC'); +task.execution.setVariable('soscStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','SoSC Form'); + + + + + + Flow_0639o7i + Flow_0yi6pa7 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_003kmau + Flow_17dpj6g + + + Flow_0mjgxil + Flow_003kmau + Flow_1itdpy9 + Flow_1raj7vr + + + Flow_1itdpy9 + Flow_0lf9s8z + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"sosc"); + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'SoSC'); +task.execution.setVariable('soscStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','SoSC Form'); + + + + + + + + + Flow_0vw0lda + Flow_1dc1l9u + + + Flow_0es7x0e + Flow_15z92rp + Flow_0lf9s8z + Flow_1p0ezkl + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_1p0ezkl + Flow_0xixsb5 + + + Flow_1raj7vr + Flow_0xixsb5 + Flow_01dcv2u + Flow_0xnsojj + var system = java.lang.System; +system.out.println ("Begin SoSC Flow - Sent To Caseworker"); +execution.setVariable('isCaseworker',false); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_01dcv2u + + + Flow_0xnsojj + Flow_0p3u1yj + Flow_0vw0lda + + + + + + dera_subforms_updated + + + Flow_0vixcwm + Flow_1n9gcsu + Flow_11sb4e2 + + + Flow_1dc1l9u + Flow_0es7x0e + Flow_0vixcwm + + + Flow_11sb4e2 + + + Flow_0yi6pa7 + Flow_0mjgxil + Flow_1n9gcsu + + + + + execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); - ["applicationId", "applicationStatus", "srcrBundleStatus"] + ["applicationId", "applicationStatus", "soscBundleStatus"] ${action == 'Accepted'} - + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('soscStatus', "Resubmitted"); +execution.setVariable('isSoscResubmitted', false); + + + + + ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "soscStatus"] + + + + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + + + + + + - execution.setVariable('isSrcrResubmitted', true); + execution.setVariable('isSoscResubmitted', true); - ["applicationId", "applicationStatus", "isSrcrResubmitted"] + ["applicationId", "applicationStatus", "isSoscResubmitted"] - ${action == 'Returned' } + ${action == 'Returned'} - + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + - ${siteRiskClassification != 'notHighRisk' } + ${action == 'Rejected' or action == 'Approved' } - - Flow_1kizv19 - Flow_1g44pgu - Flow_1q2jho1 - - - ${action == 'Recheck' } + + + + + + ${action == 'Recheck' and isSentFromSociety == false} - - Flow_1q2jho1 - Flow_05vthw4 - Flow_1up3td8 - - - ${siteRiskClassification == 'notHighRisk' } + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} - + + ${isSentFromSociety == false} + + + + + ["applicationId", "applicationStatus", "soscStatus"] + + + + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + - ${isSentFromSociety == true} - - - Flow_0h34vew - Flow_1mxzqgt - Flow_0lklj13 - - + + - - - dera_subforms_updated - + + + execution.setVariable('isSoscResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSoscResubmitted"] + + - Flow_0lklj13 - Flow_18o75ov - Flow_1u837pr - Flow_0184u8i - - - - - Flow_1ccbyzk - Flow_09v3kpi - Flow_18o75ov - - - - - Flow_0mtd57d - Flow_0qvoubs - Flow_1u837pr - - - - Flow_0184u8i - - + ${action == 'Returned'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('soscStatus', "Resubmitted"); +execution.setVariable('isSoscResubmitted', false); + + + + ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'SoSC'); + + + + + + + + - - Flow_1s58qkt - Flow_0kw2jbo - Flow_0wxa7vb - Flow_1esdw3m - Flow_1xju4ax - - - - - - Flow_19ik9s7 - Flow_1s58qkt - Flow_1v6zje9 - - - - - - - - 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_1i04zkp + Flow_17tf2x2 + Flow_0jxnrvm - - Flow_0b5e332 - Flow_1ij7p7z - Flow_165eq8z + + Flow_0g9jpvb + Flow_1kyum71 + Flow_1u3s5mj + Flow_0nkb4yt - - - - - dera_updated - - - Flow_1sj5fc8 - Flow_1kvztr8 - - - Flow_1kvztr8 + + Flow_0jxnrvm - - - - - + + Flow_0i3fcvy + Flow_131saby + Flow_1azn5ag + + + Flow_1azn5ag + Flow_04qadhc + Flow_02nvps4 + + + Flow_04qadhc + Flow_01v1a0f + + Flow_1lumm7v + Flow_0rqk8na + Flow_00s15ao + Flow_1odhac6 + 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"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','DERA Form'); + + + + + + Flow_1odhac6 + Flow_15nyxwz + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_1surrqx + Flow_0rqk8na + + + Flow_1gd48dj + Flow_1surrqx + Flow_1g1rouj + Flow_0axjodg + + + Flow_1g1rouj + Flow_1r30rh3 + + + + + + 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"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','DERA Form'); + + + + + + + + + Flow_0kko947 + Flow_13jm4kf + + + Flow_1jlvkno + Flow_1lumm7v + Flow_1r30rh3 + Flow_0xf5y0k + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0xf5y0k + Flow_1uwj5on + + + Flow_06rvauy + + + Flow_1s3el1j + Flow_00s15ao + Flow_0kko947 + + + + + + dera_subforms_updated + + + Flow_11hmda7 + Flow_1vjuqup + Flow_0u4wuii + + + Flow_13jm4kf + Flow_1jlvkno + Flow_11hmda7 + + + Flow_0u4wuii + + + Flow_15nyxwz + Flow_1gd48dj + Flow_1vjuqup + + + Flow_0axjodg + Flow_1uwj5on + Flow_06rvauy + Flow_1s3el1j + 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')); + + + + + execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('deraStatus', "Resubmitted"); +execution.setVariable('isDeraResubmitted', false); + + + + + ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "deraStatus"] + + + + execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('isDeraResubmitted', true); + + + + ["applicationId", "applicationStatus", "isDeraResubmitted"] + + + + ${action == 'Returned'} + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' or action == 'Approved' } + + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${isSentFromSociety == false} + + + + + + ["applicationId", "applicationStatus", "deraStatus"] + + + + execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + + execution.setVariable('isDeraResubmitted', true); + + + + ["applicationId", "applicationStatus", "isDeraResubmitted"] + + + + ${action == 'Returned'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('deraStatus', "Resubmitted"); +execution.setVariable('isDeraResubmitted', false); + + + + ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'DERA'); + + + + + + + + + + + Flow_02nvps4 + Flow_147keeo + + Flow_0ly2cyz + Flow_0niwre0 + Flow_1nl5ipm + Flow_0f4x52g + 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', 'SoSC'); +task.execution.setVariable('soscStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','SoSC Form'); + + + + + + Flow_0f4x52g + Flow_0ut0zi1 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0ux2vew + Flow_0niwre0 + + + Flow_0of98ac + Flow_0ux2vew + Flow_1aeuu2q + Flow_1cqow89 + + + Flow_1aeuu2q + Flow_1qqnzvx + + + + + + Y + + + ["pid","applicationId","process_pid","task_id"] + + + + task.execution.setVariable('task_id',task.getId()); +task.execution.setVariableLocal('variable1',"sosc"); + + + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'SoSC'); +task.execution.setVariable('soscStatus', task.execution.getVariable('action')); +task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','SoSC Form'); + + + + + + + + + Flow_0b48ica + Flow_02bhjf4 + + + Flow_0uqrlo1 + Flow_0ly2cyz + Flow_1qqnzvx + Flow_1c5adbp + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_1c5adbp + Flow_0cd2y9a + + + Flow_1cqow89 + Flow_0cd2y9a + Flow_08ue3be + Flow_027qwvp + var system = java.lang.System; +system.out.println ("Begin SoSC Flow - Sent To Caseworker"); +execution.setVariable('isCaseworker',false); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_08ue3be + + + Flow_027qwvp + Flow_1nl5ipm + Flow_0b48ica + + + + + + dera_subforms_updated + + + Flow_1tw25qi + Flow_1wmn6pm + Flow_09ntkx7 + + + Flow_02bhjf4 + Flow_0uqrlo1 + Flow_1tw25qi + + + Flow_09ntkx7 + + + Flow_0ut0zi1 + Flow_0of98ac + Flow_1wmn6pm + + + + + execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "soscBundleStatus"] + + + + ${action == 'Accepted'} + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('soscStatus', "Resubmitted"); +execution.setVariable('isSoscResubmitted', false); + + + + + ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "soscStatus"] + + + + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('isSoscResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSoscResubmitted"] + + + + ${action == 'Returned'} + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' or action == 'Approved' } + + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${isSentFromSociety == false} + + + + + + ["applicationId", "applicationStatus", "soscStatus"] + + + + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + + execution.setVariable('isSoscResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSoscResubmitted"] + + + + ${action == 'Returned'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('soscStatus', "Resubmitted"); +execution.setVariable('isSoscResubmitted', false); + + + + ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'SoSC'); + + + + + + + + + + + Flow_01v1a0f + Flow_147keeo + Flow_1l5jf46 + + + Flow_0n61nyr + + + Flow_1b7b7vp + Flow_1j9qdt7 + + Flow_01dljge + Flow_1inicnb + Flow_00llqqu + Flow_10vct33 + 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"); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','DERA Form'); + + + + + + Flow_10vct33 + Flow_1orl3n2 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_0y6yjq4 + Flow_1inicnb + + + Flow_0gcxxyc + Flow_0y6yjq4 + Flow_1x8qn14 + Flow_18f4dcj + + + Flow_1x8qn14 + Flow_1huo0lg + + + + + + 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"); +task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('subFormName','DERA Form'); + + + + + + + + + Flow_1385q2s + Flow_0hla21j + + + Flow_1u5ar4j + Flow_01dljge + Flow_1huo0lg + Flow_08vhe64 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus"] + + + + + Flow_08vhe64 + Flow_0j3ub9c + + + Flow_15qwrqx + + + Flow_1mlkd5t + Flow_00llqqu + Flow_1385q2s + + + + + + dera_subforms_updated + + + Flow_1ldt3wq + Flow_1gathh9 + Flow_0vsb9eb + + + Flow_0hla21j + Flow_1u5ar4j + Flow_1ldt3wq + + + Flow_0vsb9eb + + + Flow_1orl3n2 + Flow_0gcxxyc + Flow_1gathh9 + + + Flow_18f4dcj + Flow_0j3ub9c + Flow_15qwrqx + Flow_1mlkd5t + 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')); + + + + + execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('deraStatus', "Resubmitted"); +execution.setVariable('isDeraResubmitted', false); + + + + + ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "deraStatus"] + + + + execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('isDeraResubmitted', true); + + + + ["applicationId", "applicationStatus", "isDeraResubmitted"] + + + + ${action == 'Returned'} + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' or action == 'Approved' } + + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + ${isSentFromSociety == false} + + + + + + ["applicationId", "applicationStatus", "deraStatus"] + + + + execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + + execution.setVariable('isDeraResubmitted', true); + + + + ["applicationId", "applicationStatus", "isDeraResubmitted"] + + + + ${action == 'Returned'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('deraStatus', "Resubmitted"); +execution.setVariable('isDeraResubmitted', false); + + + + ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'DERA'); + + + + + + + + + + + Flow_1r9sgs4 + Flow_1x22wup + + Flow_03yoy3w + Flow_0il3vmv + Flow_05wlevd + Flow_0are22b + 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('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','Caseworker'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + + Flow_0are22b + Flow_07l3syo + + + Flow_0an51l4 + Flow_1fu9yzy + Flow_1snhou2 + Flow_1ndkwtp + Flow_1h0m3i7 + + + Flow_1snhou2 + Flow_0xfqt3y + Flow_1vdz37b + Flow_01epz2i + Flow_16pxdg9 + 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')); +task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + Flow_16pxdg9 + Flow_0ftakdr + + + Flow_1yzlrk5 + Flow_1w63bha + Flow_1xo2d1y + Flow_0k8zbtn + + + Flow_1fu9yzy + Flow_1w63bha + Flow_057mgr6 + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + Flow_1h0m3i7 + Flow_0il3vmv + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + Flow_1xo2d1y + Flow_0xfqt3y + + + Flow_1quxcj1 + Flow_05wlevd + Flow_1vdz37b + + + Flow_1ndkwtp + Flow_13fkd7i + Flow_18uiwvj + Flow_0qth6vy + Flow_1j7p3z3 + Flow_10q9ixt + var system = java.lang.System; +system.out.println ("Begin SRCR Flow - Sent To SRCO"); +system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); + + + Flow_18uiwvj + + + + + + 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'); +task.execution.setVariable('subFormName','SRCR Form'); + + + + + + Flow_10q9ixt + Flow_1jv9mjo + + + Flow_099g99i + Flow_057mgr6 + Flow_1m3u6g8 + Flow_0ubwm3f + + + + + execution.setVariable('applicationStatus', "Resubmit"); + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + + Flow_0ubwm3f + Flow_13fkd7i + + + Flow_1m3u6g8 + Flow_01epz2i + Flow_1quxcj1 + + + Flow_0k8zbtn + Flow_0qth6vy + Flow_06l4mcj + + + Flow_06l4mcj + Flow_03yoy3w + Flow_1j7p3z3 + + + + + + dera_subforms_updated + + + Flow_1f5nol9 + Flow_07t1o4f + Flow_04demhb + Flow_1fnm4v9 + + + Flow_1jv9mjo + Flow_099g99i + Flow_1f5nol9 + + + Flow_07l3syo + Flow_0an51l4 + Flow_07t1o4f + + + Flow_1fnm4v9 + + + Flow_0ftakdr + Flow_1yzlrk5 + Flow_04demhb + + + + + + + ${isSentFromSociety == false} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); + + + + ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] + + + + + + + + ${isSentFromSociety == false} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected'} + + + + + execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "srcrBundleStatus"] + + + + ${action == 'Accepted'} + + + ${action == 'Recheck'} + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); + + + + + ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] + + + + + + + + ${isSentFromSociety == true} + + + ${siteRiskClassification != 'notHighRisk'} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Approved' or action == 'Rejected' } + + + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + ${action == 'Recheck' } + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${action == 'Rejected' } + + + ${siteRiskClassification == 'notHighRisk'} + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); +execution.setVariable('requestStatus', "Resubmitted"); +execution.setVariable('srcrStatus', "Resubmitted"); +execution.setVariable('isSrcrResubmitted', false); + + + + ["applicationId", "applicationStatus", "srcrStatus", "isSrcrResubmitted"] + + + + + + + + + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'SRCR'); + + + + + + + + + + ${siteRiskClassification != 'notHighRisk' } + + + + + + + ${isSentFromSociety == true} + + + + + + + ["applicationId", "applicationStatus", "srcrStatus"] + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + + + + + + + + + + execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); + + + + ["applicationId", "applicationStatus", "srcrBundleStatus"] + + + + ${action == 'Accepted'} + + + + + + execution.setVariable('isSrcrResubmitted', true); + + + + ["applicationId", "applicationStatus", "isSrcrResubmitted"] + + + + ${action == 'Returned' } + + + ${siteRiskClassification == 'notHighRisk' } + + + + + + + + + + + + execution.setVariable('bundleStatus', "deraMgrAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + ${action == 'Recheck'} + + + + ${riskclassification == 'exempt'} + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${riskclassification != 'exempt'} + + + + + + + + execution.setVariable('formUrl', execution.getVariable('deraFormUrl')); + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); +execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); +execution.setVariable('formUrl', execution.getVariable('soscFormUrl')); + + + + if (execution.getVariable('deraStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" && execution.getVariable('soscStatus') === "Approved" ) +{ +execution.setVariable("applicationStatus", "Approved"); +} +else{ +execution.setVariable("applicationStatus", "Rejected"); +} + + + + + + ${applicationStatus== 'Resubmitted' and isSdm== true} + + + ${isSentFromSociety == true} + + + + + execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + + ${applicationStatus== 'Resubmitted' and isCaseworker== true} + + + ${action == 'Recheck' and isSentFromSociety == false} + + + ${isSoscAvailable==false} + + + + ${isSentFromSociety == false} + + + + + + + + execution.setVariable('isSdm',true); + + + ${action == 'Returned'} + + + ${action == 'Recheck' and isSentFromSociety == true} + + + ${action == 'Rejected' or action == 'Approved' } + + + ${isSoscAvailable==true} + + + ${isSoscAvailable==false} + + + + + + + + execution.setVariable('bundleStatus', "cssaTeamAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + + ${action == 'Accepted'} + + + ${action == 'Recheck'} + + + + ${applicationStatus== 'Resubmitted' and isCssaTeam== true} + + + ${applicationStatus== 'Resubmitted' and isSociety== true} + + + ${applicationStatus== 'Resubmitted' and isAp== true} + + + ${applicationStatus!= 'Resubmitted'} + + + + ${applicationStatus== 'Signed'} + + + ${owneroperatorradioGroup=='sameAsApplicant'} + + + + ${typeOfReview!= 'directToMinistryApplication'} + + + ${action == 'Recheck'} + + + + + ${action == 'Accepted'} + + + ${action == 'Recheck'} + + + + + + var system = java.lang.System; +execution.setVariable('isSentFromSociety',false); +system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSociety')); + + + ${typeOfReview== 'directToMinistryApplication'} + + + + + + + ["applicationId", "applicationStatus"] + + + + + + + + + + + execution.setVariable('applicationStatus', "Resubmitted"); + + + + ["applicationId", "applicationStatus"] + + + + + + + + + + execution.setVariable('isCaseworker',true); + + + ${action == 'Returned'} + + + + + execution.setVariable('isCssaTeam',true); + + + ${action == 'Returned'} + + + + + execution.setVariable('isAp',true); + + + ${action == 'Returned'} + + + + + execution.setVariable('isSociety',true); + + + ${action == 'Returned'} + + + + + var system = java.lang.System; +system.out.println ("site owner flow"); + + + ${owneroperatorradioGroup=='different'} + + + + ${action == 'Accepted'} + + + + + + + ${action == 'Rejected'} + + + + + + + execution.setVariable('formUrl', execution.getVariable('deraFormUrl')); + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); +execution.setVariable('formUrl', execution.getVariable('soscFormUrl')); + + + + if (execution.getVariable('deraStatus') === "Approved" && execution.getVariable('soscStatus') === "Approved" ) +{ +execution.setVariable("applicationStatus", "Approved"); +} +else{ +execution.setVariable("applicationStatus", "Rejected"); +} + + + + + + + + + + + + + ${isSoscAvailable==true} + + + + + + + Flow_1j9qdt7 + Flow_1x22wup + Flow_17uy5we + + + + + + + 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"); +} + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + - - - + + - - - + + + + + - - + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + + + + + + + + + + + + - + - - - - - + + + - + - - - - + + + + + - + - - - - - - - + + + - - - - + + + - - - - - - - - - - - - - - - - + + + + + + - - - + + + + - - - + + + + + + - - - - - + + + + + - + - - - + + + + + - + - - - - - + + + - + - - - + + + - - - + + + - - - + + + - + - - - - - - - - - + + + + - + - - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + - - - - + + + + + - + - - - - + + + - - - + + + + + + + - + - - - + + + + - - - - - + + + - + - - - - - + + + + + + + + - - - - - + + + + + + + + - - - - - + + + - + - - - + + + - - - + + + + + + + - + - - - - - + + + + - + - - - - - + + + - - - - - + + + - - - + + + + - - - + + + + + + + + + + + - + - - - - - - + + + - + - - - - - - + + + + + + + + + + + + + + + + - + - - - - - - - - - - + + + - + - - - - + + + + + + - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - + + + - + - - - + + + + + - + - - - + + + - - - + + + - - - + + + - + - - - + + + + - - - - - + + + - + - - - - - + + + + + - + - - - + + + + + - + - - - - - + + + - + - - - - + + + + + + + + + + + - + - - - - - - - + + + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + + + + - - + + + + + + + + - + - - + + - + - - - + + - - - + + - - - + + + + + - - + + + + + - + - - + + - - + + + + + + + + - - + + + + + - - + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + - - - + + + + + + + - - - + + + + + + - - - + + + - - - + + + - - - + + + - - - + + + + + + + + - - - - + + + - + - - - + + + + + - + - - - + + + + + + + - - - + + + + - + - - - - - + + + + + - + - - - + + + + + - + - - - - - + + + + + + + + + + + + + + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - + + + - + - - - + + + - + - - - + + + - + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + - + - - - + + + + + + - + - - - - - - + + + + + + + + - + - - - - - - - - - + + + + - + - - - + + + + + - + - - - - - - - - - - - - - - - - + + + + + - + - - - - - - - - - - - + + + + + - + - - - - - - - - - + + + + + - + - - - - - - + + + + + + + + + + + + - + - - - - - - - - - - + + + + - + - - - + + + + + + + + + + - + - - - + + + + + + - + - - - - - - - - - - - - - - - + + + + + + + - - - + + + - - - - + + + + + + - - - + + + - - - + + + - - - + + + - - - - - + + + + - + - - - + + + + + + + + + - + - - - + + + - + - - - - - + + + + - + - - - + + + + + + + + + + + + + + + + + + - + - - - + + + + + - + - - - + + + - - - + + + + + - - - + + + + + - - - - + + + + + - + - - - + + + - + - - - - - + + + + + + + + - + - - - - + + + + - + - - - + + + + + - + - - - - - - - + + + - - - - - + + + - + - - - - - + + + + + - + - - - - - - - + + + - - - - + + + + - + - - - - - - - - + + + - - - - - - + + + - - - - - + + + - + - - - - - - - + + + - - - + + + + + - + - - - - + + + + + - + - - - - + + + + + - + - - - - - - - - - + + + + + - + - - - - - - - - - + + + + - + - - - + + + + - + - - - - - - - - - + + + + + + + + + + + + + + - + - - - - - - + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + + + + + + + + + - + - - - + + + + + - + - - - + + + + + - + - - - - - - - - - - - - - - - - - - - + + + + + - + - - - - - - + + + + + - + - - - - - - - - + diff --git a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorklowv1.bpmn b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorklowv1.bpmn deleted file mode 100644 index 809b5505..00000000 --- a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/DERABundleWorklowv1.bpmn +++ /dev/null @@ -1,5776 +0,0 @@ - - - - - - - - - Gateway_17raw62 - Activity_15772wo - Gateway_08cgufe - StartEvent_1 - Activity_0k6ixqm - Activity_1ozfgid - Activity_1v5ffpw - Gateway_1qqphxe - Activity_0a9pnut - - - Activity_1uc1xs1 - Gateway_04o747e - - - Activity_08ykdar - Gateway_0oobb3z - Gateway_1gzq005 - Activity_1os7sys - Event_0bwdoce - - - Activity_1ao3zkj - Gateway_15p5urd - - - Gateway_1m36jwe - Activity_15e3ho6 - Activity_0tsm937 - Gateway_1lgyz1h - Activity_1bsz2qm - Activity_1hs3dja - Gateway_1lbpcug - Gateway_1xrj5sn - Gateway_1l4bqor - Activity_0kxdigs - Gateway_0pty1fn - Gateway_0o9l3lp - Activity_0q362ss - Gateway_0uf75ow - Event_1n5addo - Gateway_0vp590v - Gateway_0qemi54 - Event_0sdygwc - Activity_1bhbq4y - Activity_07ttn7q - Activity_12e3zvm - Activity_1wrcu91 - Activity_0r75nsw - Activity_0baoxlp - Activity_1d2xuv3 - Gateway_06gmmov - - - Gateway_1lfy3cm - Activity_1qnqtak - Gateway_1chdumm - Gateway_1l0ehcm - Activity_0vo5rls - Gateway_0w0koaj - - - - Flow_0gcqir8 - Flow_02ysv7t - Flow_0lgivc3 - - - - Flow_02ysv7t - Flow_026ykts - var system = java.lang.System; -var selectDeraSdm= execution.getVariable('selectDeraSdm'); -system.out.println ("selectDeraSdm"+selectDeraSdm); -execution.setVariable('deraSdmAssignment',selectDeraSdm); -system.out.println ("deraSdmAssignment"+execution.getVariable('deraSdmAssignment')); - -var selectDeraCaseworker= execution.getVariable('selectDeraCaseworker'); -system.out.println ("selectDeraCaseworker"+selectDeraCaseworker); -execution.setVariable('deraCaseworkerAssignment',selectDeraCaseworker); -system.out.println ("deraCaseworkerAssignment"+execution.getVariable('deraCaseworkerAssignment')); - -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 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'); -system.out.println ("selectSdm"+selectSdm); -execution.setVariable('sdmAssignment',selectSdm); -system.out.println ("sdmAssignment"+execution.getVariable('sdmAssignment')); - -var selectCaseworker= 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')); - - - Flow_026ykts - Flow_0drs8s9 - Flow_0i3fcvy - - - Flow_0fa3idu - Flow_1phkhb3 - Flow_1m5dyj2 - Flow_1nowy63 - - - Flow_0kw2jbo - Flow_057qs1x - Flow_0ovj0pk - Flow_07vh0na - var system = java.lang.System; -system.out.println ("Sent to SDM"); - - - Flow_0d8ioqs - Flow_1jxxrt6 - Flow_131saby - Flow_0qiqnks - var system = java.lang.System; -system.out.println ("Begin CSSA Individual Flow - Sent To Caseworker"); -execution.setVariable('isCaseworker',false); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - - Flow_0qiqnks - Flow_057qs1x - Flow_01suxh6 - - - - - task.execution.setVariable('isCaseworker',false); - - - - task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); - - - - - ["applicationId", "applicationStatus"] - - - - Flow_01suxh6 - Flow_19ik9s7 - - - - - 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 - - - Flow_0c90maq - Flow_0b5e332 - Flow_1jxxrt6 - Flow_07eueok - Flow_0aabyhy - - - Flow_0drs8s9 - Flow_0g9jpvb - Flow_118thnc - - - Flow_118thnc - Flow_1b7b7vp - Flow_1r9sgs4 - - - 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('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','Caseworker'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - - Flow_0cdvwnp - Flow_1ccbyzk - - - Flow_02gyla8 - 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')); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - Flow_0qaeplv - Flow_0mtd57d - - - Flow_1jm1bhe - 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'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - Flow_0c71o5w - Flow_0h34vew - - - Flow_168htzm - 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"); -execution.setVariable('isSrcrResubmitted', false); - - - - ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] - - - - - - - - ${isSentFromSociety == false} - - - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - - - execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "srcrBundleStatus"] - - - - ${action == 'Accepted'} - - - - ${action == 'Recheck'} - - - - - - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - - - - ${action == 'Returned' } - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); - - - - - ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - ${siteRiskClassification != 'notHighRisk'} - - - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Approved' or action == 'Rejected' } - - - - - - - - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - - - - ${action == 'Returned' } - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' } - - - ${siteRiskClassification == 'notHighRisk'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); - - - - ["applicationId", "applicationStatus", "srcrStatus", "isSrcrResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'SRCR'); - - - - - - - - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); - - - - ["applicationId", "applicationStatus", "srcrBundleStatus"] - - - - ${action == 'Accepted'} - - - - - - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - - - - ${action == 'Returned' } - - - - - - - ${siteRiskClassification != 'notHighRisk' } - - - Flow_1kizv19 - Flow_1g44pgu - Flow_1q2jho1 - - - ${action == 'Recheck' } - - - Flow_1q2jho1 - Flow_05vthw4 - Flow_1up3td8 - - - ${siteRiskClassification == 'notHighRisk' } - - - - - - - ${isSentFromSociety == true} - - - - - - cssa_subforms_updated - - - Flow_0dn9scp - Flow_0v3xmtu - Flow_007p6h2 - Flow_1g9gkqq - - - - Flow_0h34vew - Flow_168htzm - Flow_0dn9scp - - - - - Flow_1ccbyzk - Flow_02gyla8 - Flow_0v3xmtu - - - - Flow_1g9gkqq - - - - - Flow_0mtd57d - Flow_1jm1bhe - Flow_007p6h2 - - - - - - - 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_0ohuh4k - Flow_1xj96i6 - Flow_0527h3y - Flow_0543g25 - Flow_0wr0mei - Flow_0d8ioqs - Flow_0ovj0pk - - - - - var system = java.lang.System; -system.out.println ("form signed"); - - - Flow_1asq9fa - Flow_16fwgn1 - Flow_0ohuh4k - - - - - task.execution.setVariable('isAp',false); - - - - task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Contaminated Sites Approved Professional'); - - - - - ["applicationId", "applicationStatus"] - - - - Flow_142lsgk - Flow_0pzpbn7 - Flow_0527h3y - Flow_0b418rv - - - - - task.execution.setVariable('isSociety',false); - - - - 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')); -task.execution.setVariable('userRole','Contaminated Sites Approved Professionals Society'); - - - - - ["applicationId", "applicationStatus"] - - - - Flow_0kfjdmp - Flow_0543g25 - Flow_1ev1kr6 - Flow_0d8ruax - - - Flow_1xj96i6 - Flow_1quswsc - Flow_142lsgk - - - Flow_1rc30l8 - - - 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_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'); -system.out.println ("typeOfReview "+typeOfReview); -execution.setVariable('typeOfReview',typeOfReview); -var clientEmail = execution.getVariable('simpleemail'); -system.out.println ("clientEmail "+clientEmail); -execution.setVariable('clientEmail',clientEmail); -var siteRiskClassification = execution.getVariable('siteRiskClassification'); -system.out.println ("siteRiskClassification "+siteRiskClassification ); -execution.setVariable('siteRiskClassification',siteRiskClassification); - - -var owneroperatorradioGroup = execution.getVariable('owneroperatorradioGroup'); -var hiddenUserIdForFormSharingApplicantAsOwner = execution.getVariable('hiddenUserIdForFormSharingApplicantAsOwner'); -var hiddenUserIdForFormSharingWithDiffOwner = execution.getVariable('hiddenUserIdForFormSharingWithDiffOwner'); -var userIdForSharing = ''; - - -system.out.println ("owneroperatorradioGroup "+owneroperatorradioGroup ); -system.out.println ("hiddenUserIdForFormSharingApplicantAsOwner"+hiddenUserIdForFormSharingApplicantAsOwner); -system.out.println ("hiddenUserIdForFormSharingWithDiffOwner "+hiddenUserIdForFormSharingWithDiffOwner); - - -if(owneroperatorradioGroup == "sameAsApplicant") - { - system.out.println("owneroperatorradioGroup"+hiddenUserIdForFormSharingApplicantAsOwner); - userIdForSharing = hiddenUserIdForFormSharingApplicantAsOwner; - - } - else - { - - system.out.println("WithDiffOwner"+hiddenUserIdForFormSharingWithDiffOwner); - userIdForSharing = hiddenUserIdForFormSharingWithDiffOwner; - - } - -system.out.println ("userIdForSharing"+userIdForSharing); -execution.setVariable('userIdForSharing',userIdForSharing); - -var listOwnerEmailAddress = []; -listOwnerEmailAddress.push(clientEmail); -execution.setVariable('EmailType','CSSA'); -execution.setVariable('name','User'); -execution.setVariable("emailTo", Java.to(listOwnerEmailAddress, "java.lang.Object[]")); -execution.setVariable('formName','Contaminated Sites Services Application Form'); - -var applicationsrequested = execution.getVariable('applicationsrequested'); -var certificationdocumentradioGroup = execution.getVariable('certificationdocumentradioGroup'); -var submissionTypeTwo = execution.getVariable('submissionTypeTwo'); -var isSoscAvailable = (submissionTypeTwo ? submissionTypeTwo.reportsSubmitted : false) || (applicationsrequested ? applicationsrequested.siteReclassification || -applicationsrequested.approvalOfBackgroundConcentrations : false) || (certificationdocumentradioGroup ? certificationdocumentradioGroup.determinationOfContaminatedSite -|| certificationdocumentradioGroup.approvalInPrinciple || certificationdocumentradioGroup.certificateOfCompliance : false) ? true : false; - -execution.setVariable('isSoscAvailable',isSoscAvailable); - - - - - execution.setVariable('applicationStatus', "Resubmit"); -execution.setVariable('returnedBy', "cssaTeam"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_19ktqsm - Flow_12uv3km - Flow_0qw9o9a - Flow_0wxa7vb - Flow_0b5e332 - Flow_1stifo9 - - - Flow_05pndkl - Flow_1asq9fa - Flow_1xx7tz6 - - - - - - task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); - - - - - ["applicationId", "applicationStatus"] - - - - Flow_1xx7tz6 - Flow_16fwgn1 - - - - - task.execution.setVariable('isCssaTeam',false); - - - - task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','CSSA Team'); - - - - - ["applicationId", "applicationStatus"] - - - - Flow_1quswsc - Flow_0gb2oz2 - Flow_0wr0mei - Flow_0lgivc3 - Flow_0bz8atu - - - Flow_0b418rv - Flow_12uv3km - Flow_0kfjdmp - - - Flow_0d8ruax - Flow_0gb2oz2 - Flow_0qw9o9a - Flow_0pzpbn7 - - - Flow_0iubwul - Flow_19ktqsm - Flow_0qbjx6e - Flow_1tu4hj7 - Flow_1ev1kr6 - - - Flow_0bz8atu - Flow_0iubwul - Flow_16ek6dk - - - Flow_08c8ij1 - Flow_0c90maq - Flow_17tf2x2 - - - - - - cssa_updated - - - Flow_0qbjx6e - Flow_07eueok - Flow_1nowy63 - Flow_1l5jf46 - Flow_17uy5we - Flow_0n61nyr - - - Flow_19ik9s7 - Flow_15f3evi - Flow_1i04zkp - - - Flow_15f3evi - Flow_0kw2jbo - Flow_0wxa7vb - Flow_1esdw3m - - - - - - cssa_updated - - - Flow_16ek6dk - Flow_14qx1q0 - - - Flow_14qx1q0 - - - 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', 'CSSA'); -task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','CSSA Form'); - - - - - - Flow_130v3rp - Flow_04rzv3x - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_0ui56bn - Flow_1vxydh0 - - - Flow_0xnspeg - Flow_0ui56bn - Flow_07enxwq - Flow_0pqk381 - - - Flow_07enxwq - Flow_0yy721o - - - - - - Y - - - ["pid","applicationId","process_pid","task_id"] - - - - task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"cssa"); - - - task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'CSSA'); -task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','CSSA Form'); - - - - - - - - - Flow_0go33vq - Flow_13zl1nd - - - Flow_16qbig6 - Flow_0f731f5 - Flow_0yy721o - Flow_1c0kfis - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_1c0kfis - Flow_06v4kdf - - - Flow_18exjmw - - - Flow_0orrcue - Flow_00qi8nk - Flow_0go33vq - - - - - execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - - - - ${action == 'Accepted'} - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('cssaStatus', "Resubmitted"); -execution.setVariable('isCssaResubmitted', false); - - - - - ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "cssaStatus"] - - - - execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('isCssaResubmitted', true); - - - - ["applicationId", "applicationStatus", "isCssaResubmitted"] - - - - ${action == 'Returned'} - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' or action == 'Approved' } - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - ${isSentFromSociety == false} - - - - - - ["applicationId", "applicationStatus", "cssaStatus"] - - - - execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('isCssaResubmitted', true); - - - - ["applicationId", "applicationStatus", "isCssaResubmitted"] - - - - ${action == 'Returned'} - - - - - - cssa_subforms_updated - - - Flow_1sbxvgx - Flow_0rsx4qs - Flow_0jf2e1l - - - - Flow_13zl1nd - Flow_16qbig6 - Flow_1sbxvgx - - - - Flow_0jf2e1l - - - - - Flow_04rzv3x - Flow_0xnspeg - Flow_0rsx4qs - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'CSSA'); - - - - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('cssaStatus', "Resubmitted"); -execution.setVariable('isCssaResubmitted', false); - - - - ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] - - - - - - - - - - - - ${action == 'Recheck' and isSentFromSociety == false} - - - Flow_18exjmw - Flow_06v4kdf - Flow_0pqk381 - Flow_0orrcue - var system = java.lang.System; -system.out.println ("Begin CSSA Flow - Sent To Caseworker"); -execution.setVariable('isCaseworker',false); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - - - Flow_0nkb4yt - Flow_1m5dyj2 - - Flow_15z92rp - Flow_17dpj6g - Flow_0p3u1yj - Flow_0639o7i - 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', 'SoSC'); -task.execution.setVariable('soscStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','SoSC Form'); - - - - - - Flow_0639o7i - Flow_0yi6pa7 - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_003kmau - Flow_17dpj6g - - - Flow_0mjgxil - Flow_003kmau - Flow_1itdpy9 - Flow_1raj7vr - - - Flow_1itdpy9 - Flow_0lf9s8z - - - - - - Y - - - ["pid","applicationId","process_pid","task_id"] - - - - task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"sosc"); - - - task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'SoSC'); -task.execution.setVariable('soscStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','SoSC Form'); - - - - - - - - - Flow_0vw0lda - Flow_1dc1l9u - - - Flow_0es7x0e - Flow_15z92rp - Flow_0lf9s8z - Flow_1p0ezkl - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_1p0ezkl - Flow_0xixsb5 - - - Flow_1raj7vr - Flow_0xixsb5 - Flow_01dcv2u - Flow_0xnsojj - var system = java.lang.System; -system.out.println ("Begin SoSC Flow - Sent To Caseworker"); -execution.setVariable('isCaseworker',false); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - - Flow_01dcv2u - - - Flow_0xnsojj - Flow_0p3u1yj - Flow_0vw0lda - - - - - - cssa_subforms_updated - - - Flow_0vixcwm - Flow_1n9gcsu - Flow_11sb4e2 - - - Flow_1dc1l9u - Flow_0es7x0e - Flow_0vixcwm - - - Flow_11sb4e2 - - - Flow_0yi6pa7 - Flow_0mjgxil - Flow_1n9gcsu - - - - - execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "soscBundleStatus"] - - - - ${action == 'Accepted'} - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('soscStatus', "Resubmitted"); -execution.setVariable('isSoscResubmitted', false); - - - - - ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "soscStatus"] - - - - execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('isSoscResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSoscResubmitted"] - - - - ${action == 'Returned'} - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' or action == 'Approved' } - - - - - - - ${action == 'Recheck' and isSentFromSociety == false} - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - ${isSentFromSociety == false} - - - - - - ["applicationId", "applicationStatus", "soscStatus"] - - - - execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - - execution.setVariable('isSoscResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSoscResubmitted"] - - - - ${action == 'Returned'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('soscStatus', "Resubmitted"); -execution.setVariable('isSoscResubmitted', false); - - - - ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'SoSC'); - - - - - - - - - - - - - - cssa_updated - - - Flow_1i04zkp - Flow_17tf2x2 - Flow_0jxnrvm - - - Flow_0g9jpvb - Flow_1kyum71 - Flow_1u3s5mj - Flow_0nkb4yt - - - Flow_0jxnrvm - - - Flow_0i3fcvy - Flow_131saby - Flow_1azn5ag - - - Flow_1azn5ag - Flow_04qadhc - Flow_02nvps4 - - - Flow_04qadhc - Flow_01v1a0f - - Flow_1lumm7v - Flow_0rqk8na - Flow_00s15ao - Flow_1odhac6 - 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', 'CSSA'); -task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','CSSA Form'); - - - - - - Flow_1odhac6 - Flow_15nyxwz - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_1surrqx - Flow_0rqk8na - - - Flow_1gd48dj - Flow_1surrqx - Flow_1g1rouj - Flow_0axjodg - - - Flow_1g1rouj - Flow_1r30rh3 - - - - - - Y - - - ["pid","applicationId","process_pid","task_id"] - - - - task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"cssa"); - - - task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'CSSA'); -task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','CSSA Form'); - - - - - - - - - Flow_0kko947 - Flow_13jm4kf - - - Flow_1jlvkno - Flow_1lumm7v - Flow_1r30rh3 - Flow_0xf5y0k - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_0xf5y0k - Flow_1uwj5on - - - Flow_06rvauy - - - Flow_1s3el1j - Flow_00s15ao - Flow_0kko947 - - - - - - cssa_subforms_updated - - - Flow_11hmda7 - Flow_1vjuqup - Flow_0u4wuii - - - Flow_13jm4kf - Flow_1jlvkno - Flow_11hmda7 - - - Flow_0u4wuii - - - Flow_15nyxwz - Flow_1gd48dj - Flow_1vjuqup - - - Flow_0axjodg - Flow_1uwj5on - Flow_06rvauy - Flow_1s3el1j - var system = java.lang.System; -system.out.println ("Begin CSSA Flow - Sent To Caseworker"); -execution.setVariable('isCaseworker',false); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - - - - execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - - - - ${action == 'Accepted'} - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('cssaStatus', "Resubmitted"); -execution.setVariable('isCssaResubmitted', false); - - - - - ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "cssaStatus"] - - - - execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('isCssaResubmitted', true); - - - - ["applicationId", "applicationStatus", "isCssaResubmitted"] - - - - ${action == 'Returned'} - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' or action == 'Approved' } - - - - - - - ${action == 'Recheck' and isSentFromSociety == false} - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - ${isSentFromSociety == false} - - - - - - ["applicationId", "applicationStatus", "cssaStatus"] - - - - execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - - execution.setVariable('isCssaResubmitted', true); - - - - ["applicationId", "applicationStatus", "isCssaResubmitted"] - - - - ${action == 'Returned'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('cssaStatus', "Resubmitted"); -execution.setVariable('isCssaResubmitted', false); - - - - ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'CSSA'); - - - - - - - - - - - Flow_02nvps4 - Flow_147keeo - - Flow_0ly2cyz - Flow_0niwre0 - Flow_1nl5ipm - Flow_0f4x52g - 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', 'SoSC'); -task.execution.setVariable('soscStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','SoSC Form'); - - - - - - Flow_0f4x52g - Flow_0ut0zi1 - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_0ux2vew - Flow_0niwre0 - - - Flow_0of98ac - Flow_0ux2vew - Flow_1aeuu2q - Flow_1cqow89 - - - Flow_1aeuu2q - Flow_1qqnzvx - - - - - - Y - - - ["pid","applicationId","process_pid","task_id"] - - - - task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"sosc"); - - - task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'SoSC'); -task.execution.setVariable('soscStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','SoSC Form'); - - - - - - - - - Flow_0b48ica - Flow_02bhjf4 - - - Flow_0uqrlo1 - Flow_0ly2cyz - Flow_1qqnzvx - Flow_1c5adbp - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_1c5adbp - Flow_0cd2y9a - - - Flow_1cqow89 - Flow_0cd2y9a - Flow_08ue3be - Flow_027qwvp - var system = java.lang.System; -system.out.println ("Begin SoSC Flow - Sent To Caseworker"); -execution.setVariable('isCaseworker',false); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - - Flow_08ue3be - - - Flow_027qwvp - Flow_1nl5ipm - Flow_0b48ica - - - - - - cssa_subforms_updated - - - Flow_1tw25qi - Flow_1wmn6pm - Flow_09ntkx7 - - - Flow_02bhjf4 - Flow_0uqrlo1 - Flow_1tw25qi - - - Flow_09ntkx7 - - - Flow_0ut0zi1 - Flow_0of98ac - Flow_1wmn6pm - - - - - execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "soscBundleStatus"] - - - - ${action == 'Accepted'} - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('soscStatus', "Resubmitted"); -execution.setVariable('isSoscResubmitted', false); - - - - - ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "soscStatus"] - - - - execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('isSoscResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSoscResubmitted"] - - - - ${action == 'Returned'} - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' or action == 'Approved' } - - - - - - - ${action == 'Recheck' and isSentFromSociety == false} - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - ${isSentFromSociety == false} - - - - - - ["applicationId", "applicationStatus", "soscStatus"] - - - - execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - - execution.setVariable('isSoscResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSoscResubmitted"] - - - - ${action == 'Returned'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('soscStatus', "Resubmitted"); -execution.setVariable('isSoscResubmitted', false); - - - - ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'SoSC'); - - - - - - - - - - - Flow_01v1a0f - Flow_147keeo - Flow_1l5jf46 - - - Flow_0n61nyr - - - Flow_1b7b7vp - Flow_1j9qdt7 - - Flow_01dljge - Flow_1inicnb - Flow_00llqqu - Flow_10vct33 - 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', 'CSSA'); -task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','CSSA Form'); - - - - - - Flow_10vct33 - Flow_1orl3n2 - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_0y6yjq4 - Flow_1inicnb - - - Flow_0gcxxyc - Flow_0y6yjq4 - Flow_1x8qn14 - Flow_18f4dcj - - - Flow_1x8qn14 - Flow_1huo0lg - - - - - - Y - - - ["pid","applicationId","process_pid","task_id"] - - - - task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"cssa"); - - - task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'CSSA'); -task.execution.setVariable('cssaStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','CSSA Form'); - - - - - - - - - Flow_1385q2s - Flow_0hla21j - - - Flow_1u5ar4j - Flow_01dljge - Flow_1huo0lg - Flow_08vhe64 - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_08vhe64 - Flow_0j3ub9c - - - Flow_15qwrqx - - - Flow_1mlkd5t - Flow_00llqqu - Flow_1385q2s - - - - - - cssa_subforms_updated - - - Flow_1ldt3wq - Flow_1gathh9 - Flow_0vsb9eb - - - Flow_0hla21j - Flow_1u5ar4j - Flow_1ldt3wq - - - Flow_0vsb9eb - - - Flow_1orl3n2 - Flow_0gcxxyc - Flow_1gathh9 - - - Flow_18f4dcj - Flow_0j3ub9c - Flow_15qwrqx - Flow_1mlkd5t - var system = java.lang.System; -system.out.println ("Begin CSSA Flow - Sent To Caseworker"); -execution.setVariable('isCaseworker',false); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - - - - execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - - - - ${action == 'Accepted'} - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('cssaStatus', "Resubmitted"); -execution.setVariable('isCssaResubmitted', false); - - - - - ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "cssaStatus"] - - - - execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('isCssaResubmitted', true); - - - - ["applicationId", "applicationStatus", "isCssaResubmitted"] - - - - ${action == 'Returned'} - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' or action == 'Approved' } - - - - - - - ${action == 'Recheck' and isSentFromSociety == false} - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - ${isSentFromSociety == false} - - - - - - ["applicationId", "applicationStatus", "cssaStatus"] - - - - execution.setVariable('cssaFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - - execution.setVariable('isCssaResubmitted', true); - - - - ["applicationId", "applicationStatus", "isCssaResubmitted"] - - - - ${action == 'Returned'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('cssaStatus', "Resubmitted"); -execution.setVariable('isCssaResubmitted', false); - - - - ["applicationId", "applicationStatus", "cssaStatus","isCssaResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'CSSA'); - - - - - - - - - - - Flow_1r9sgs4 - Flow_1x22wup - - Flow_03yoy3w - Flow_0il3vmv - Flow_05wlevd - Flow_0are22b - 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('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','Caseworker'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - - Flow_0are22b - Flow_07l3syo - - - Flow_0an51l4 - Flow_1fu9yzy - Flow_1snhou2 - Flow_1ndkwtp - Flow_1h0m3i7 - - - Flow_1snhou2 - Flow_0xfqt3y - Flow_1vdz37b - Flow_01epz2i - Flow_16pxdg9 - 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')); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - Flow_16pxdg9 - Flow_0ftakdr - - - Flow_1yzlrk5 - Flow_1w63bha - Flow_1xo2d1y - Flow_0k8zbtn - - - Flow_1fu9yzy - Flow_1w63bha - Flow_057mgr6 - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - - Flow_1h0m3i7 - Flow_0il3vmv - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - - Flow_1xo2d1y - Flow_0xfqt3y - - - Flow_1quxcj1 - Flow_05wlevd - Flow_1vdz37b - - - Flow_1ndkwtp - Flow_13fkd7i - Flow_18uiwvj - Flow_0qth6vy - Flow_1j7p3z3 - Flow_10q9ixt - var system = java.lang.System; -system.out.println ("Begin SRCR Flow - Sent To SRCO"); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - - Flow_18uiwvj - - - - - - 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'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - Flow_10q9ixt - Flow_1jv9mjo - - - Flow_099g99i - Flow_057mgr6 - Flow_1m3u6g8 - Flow_0ubwm3f - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - - Flow_0ubwm3f - Flow_13fkd7i - - - Flow_1m3u6g8 - Flow_01epz2i - Flow_1quxcj1 - - - Flow_0k8zbtn - Flow_0qth6vy - Flow_06l4mcj - - - Flow_06l4mcj - Flow_03yoy3w - Flow_1j7p3z3 - - - - - - cssa_subforms_updated - - - Flow_1f5nol9 - Flow_07t1o4f - Flow_04demhb - Flow_1fnm4v9 - - - Flow_1jv9mjo - Flow_099g99i - Flow_1f5nol9 - - - Flow_07l3syo - Flow_0an51l4 - Flow_07t1o4f - - - Flow_1fnm4v9 - - - Flow_0ftakdr - Flow_1yzlrk5 - Flow_04demhb - - - - - - - ${isSentFromSociety == false} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); - - - - ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] - - - - - - - - ${isSentFromSociety == false} - - - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - - - execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "srcrBundleStatus"] - - - - ${action == 'Accepted'} - - - ${action == 'Recheck'} - - - - - - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - - - - ${action == 'Returned' } - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); - - - - - ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - ${siteRiskClassification != 'notHighRisk'} - - - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Approved' or action == 'Rejected' } - - - - - - - - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - - - - ${action == 'Returned' } - - - ${action == 'Recheck' } - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' } - - - ${siteRiskClassification == 'notHighRisk'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); - - - - ["applicationId", "applicationStatus", "srcrStatus", "isSrcrResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'SRCR'); - - - - - - - - - - ${siteRiskClassification != 'notHighRisk' } - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); - - - - ["applicationId", "applicationStatus", "srcrBundleStatus"] - - - - ${action == 'Accepted'} - - - - - - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - - - - ${action == 'Returned' } - - - ${siteRiskClassification == 'notHighRisk' } - - - - - - - - - - - - execution.setVariable('bundleStatus', "cssaMgrAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - - - - ${action == 'Accepted'} - - - ${action == 'Recheck'} - - - - ${riskclassification == 'exempt'} - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${riskclassification != 'exempt'} - - - - - - - - execution.setVariable('formUrl', execution.getVariable('cssaFormUrl')); - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('formUrl', execution.getVariable('soscFormUrl')); - - - - if (execution.getVariable('cssaStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" && execution.getVariable('soscStatus') === "Approved" ) -{ -execution.setVariable("applicationStatus", "Approved"); -} -else{ -execution.setVariable("applicationStatus", "Rejected"); -} - - - - - - ${applicationStatus== 'Resubmitted' and isSdm== true} - - - ${isSentFromSociety == true} - - - - - execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - - - - ${action == 'Accepted'} - - - - ${applicationStatus== 'Resubmitted' and isCaseworker== true} - - - ${action == 'Recheck' and isSentFromSociety == false} - - - ${isSoscAvailable==false} - - - - ${isSentFromSociety == false} - - - - - - - - execution.setVariable('isSdm',true); - - - ${action == 'Returned'} - - - ${action == 'Recheck' and isSentFromSociety == true} - - - ${action == 'Rejected' or action == 'Approved' } - - - ${isSoscAvailable==true} - - - ${isSoscAvailable==false} - - - - - - - - execution.setVariable('bundleStatus', "cssaTeamAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - - - - ${action == 'Accepted'} - - - ${action == 'Recheck'} - - - - ${applicationStatus== 'Resubmitted' and isCssaTeam== true} - - - ${applicationStatus== 'Resubmitted' and isSociety== true} - - - ${applicationStatus== 'Resubmitted' and isAp== true} - - - ${applicationStatus!= 'Resubmitted'} - - - - ${applicationStatus== 'Signed'} - - - ${owneroperatorradioGroup=='sameAsApplicant'} - - - - ${typeOfReview!= 'directToMinistryApplication'} - - - ${action == 'Recheck'} - - - - - ${action == 'Accepted'} - - - ${action == 'Recheck'} - - - - - - var system = java.lang.System; -execution.setVariable('isSentFromSociety',false); -system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSociety')); - - - ${typeOfReview== 'directToMinistryApplication'} - - - - - - - ["applicationId", "applicationStatus"] - - - - - - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); - - - - ["applicationId", "applicationStatus"] - - - - - - - - - - execution.setVariable('isCaseworker',true); - - - ${action == 'Returned'} - - - - - execution.setVariable('isCssaTeam',true); - - - ${action == 'Returned'} - - - - - execution.setVariable('isAp',true); - - - ${action == 'Returned'} - - - - - execution.setVariable('isSociety',true); - - - ${action == 'Returned'} - - - - - var system = java.lang.System; -system.out.println ("site owner flow"); - - - ${owneroperatorradioGroup=='different'} - - - - ${action == 'Accepted'} - - - - - - - ${action == 'Rejected'} - - - - - - - execution.setVariable('formUrl', execution.getVariable('cssaFormUrl')); - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('formUrl', execution.getVariable('soscFormUrl')); - - - - if (execution.getVariable('cssaStatus') === "Approved" && execution.getVariable('soscStatus') === "Approved" ) -{ -execution.setVariable("applicationStatus", "Approved"); -} -else{ -execution.setVariable("applicationStatus", "Rejected"); -} - - - - - - - - - - - - - ${isSoscAvailable==true} - - - - - - - Flow_1j9qdt7 - Flow_1x22wup - Flow_17uy5we - - - - - - - execution.setVariable('formUrl', execution.getVariable('cssaFormUrl')); - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); - - - - if (execution.getVariable('cssaStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" ) -{ -execution.setVariable("applicationStatus", "Approved"); -} -else{ -execution.setVariable("applicationStatus", "Rejected"); -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From c90e94b36c2a4e6efc1632e36200c0f5118c2a9d Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Thu, 1 Feb 2024 07:44:51 -0800 Subject: [PATCH 3/9] unit test issue fixes --- .../subProcess/DERABundleWorkflow.bpmn | 5942 +++++------------ 1 file changed, 1714 insertions(+), 4228 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 07e4945d..82598115 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,172 +1,86 @@ - + - + - - Gateway_17raw62 - Activity_15772wo - Gateway_08cgufe - StartEvent_1 - Activity_0k6ixqm - Activity_1ozfgid - Activity_1v5ffpw - Gateway_1qqphxe - Activity_0a9pnut + + Activity_0vo5rls + Gateway_1chdumm + Activity_1qnqtak + Gateway_1lfy3cm + Gateway_0nmz6ta - - Activity_1uc1xs1 - Gateway_04o747e + + Gateway_1lbpcug + Activity_1hs3dja + Activity_1bsz2qm + Gateway_1lgyz1h + Activity_0tsm937 + Activity_15e3ho6 + Gateway_1m36jwe + Activity_0n1ya4a + Event_1e6nd7t + Gateway_17ke2cd + Gateway_0o9l3lp + Gateway_0vaxmur + Event_0sdygwc + Activity_0q5r5d4 + Activity_07ttn7q + Activity_15vmujd + Gateway_0uf75ow + Gateway_0aqwiam + Gateway_1lhvo5s + Gateway_0yz3paf + Gateway_0jk8i7p + Activity_1bhbq4y + + + Activity_1ao3zkj + Gateway_15p5urd + Gateway_15zb6fp Activity_08ykdar Gateway_0oobb3z - Gateway_1gzq005 + Gateway_1jh43p2 Activity_1os7sys - Event_0bwdoce - - - Activity_1ao3zkj - Gateway_15p5urd + Event_1mmor63 - - Gateway_1m36jwe - Activity_15e3ho6 - Activity_0tsm937 - Gateway_1lgyz1h - Activity_1bsz2qm - Activity_1hs3dja - Gateway_1lbpcug - Gateway_1xrj5sn - Gateway_1l4bqor - Activity_0kxdigs - Gateway_0pty1fn - Gateway_0o9l3lp - Activity_0q362ss - Gateway_0uf75ow - Event_1n5addo - Gateway_0vp590v - Gateway_0qemi54 - Event_0sdygwc - Activity_1bhbq4y - Activity_07ttn7q - Activity_12e3zvm - Activity_1wrcu91 - Activity_0r75nsw - Activity_0baoxlp - Activity_1d2xuv3 - Gateway_06gmmov + + Activity_1uc1xs1 + Gateway_04o747e + Gateway_0p70jh9 - - Gateway_1lfy3cm - Activity_1qnqtak - Gateway_1chdumm - Gateway_1l0ehcm - Activity_0vo5rls - Gateway_0w0koaj + + Activity_1v5ffpw + Activity_1ozfgid + Activity_0k6ixqm + StartEvent_1 + Gateway_08cgufe + Activity_15772wo + Gateway_17raw62 - - Flow_0gcqir8 - Flow_02ysv7t - Flow_0lgivc3 - - - - Flow_02ysv7t - Flow_026ykts - var system = java.lang.System; -var selectDeraSdm= execution.getVariable('selectDeraSdm'); -system.out.println ("selectDeraSdm"+selectDeraSdm); -execution.setVariable('deraSdmAssignment',selectDeraSdm); -system.out.println ("deraSdmAssignment"+execution.getVariable('deraSdmAssignment')); - -var selectDeraCaseworker= execution.getVariable('selectDeraCaseworker'); -system.out.println ("selectDeraCaseworker"+selectDeraCaseworker); -execution.setVariable('deraCaseworkerAssignment',selectDeraCaseworker); -system.out.println ("deraCaseworkerAssignment"+execution.getVariable('deraCaseworkerAssignment')); - -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 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'); -system.out.println ("selectSdm"+selectSdm); -execution.setVariable('sdmAssignment',selectSdm); -system.out.println ("sdmAssignment"+execution.getVariable('sdmAssignment')); - -var selectCaseworker= 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')); - - - Flow_026ykts - Flow_0drs8s9 - Flow_0i3fcvy - - - Flow_0fa3idu - Flow_1phkhb3 - Flow_1m5dyj2 - Flow_1nowy63 - - - Flow_0kw2jbo - Flow_057qs1x - Flow_0ovj0pk - Flow_07vh0na - var system = java.lang.System; -system.out.println ("Sent to SDM"); - - - Flow_0d8ioqs - Flow_1jxxrt6 - Flow_131saby - 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_0qiqnks - Flow_057qs1x - Flow_01suxh6 + + Flow_0io9st8 + Flow_0b5e332 + Flow_1jxxrt6 + Flow_07eueok + Flow_0aabyhy - + - task.execution.setVariable('isCaseworker',false); + task.execution.setVariable('isSdm',false); + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); +task.execution.setVariable('userRole','Statutory Decision Maker'); @@ -175,19 +89,20 @@ task.execution.setVariable('userRole','Caseworker'); - Flow_01suxh6 - Flow_19ik9s7 + Flow_07vh0na + Flow_08c8ij1 - + - task.execution.setVariable('isSdm',false); + task.execution.setVariable('isCaseworker',false); + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Statutory Decision Maker'); +task.execution.setVariable('userRole','Caseworker'); @@ -196,28 +111,59 @@ task.execution.setVariable('userRole','Statutory Decision Maker'); - Flow_07vh0na - Flow_08c8ij1 + Flow_01suxh6 + Flow_19ik9s7 - - Flow_0c90maq - Flow_0b5e332 - Flow_1jxxrt6 - Flow_07eueok - Flow_0aabyhy - - - Flow_0drs8s9 - Flow_0g9jpvb - Flow_118thnc + + Flow_0qiqnks + Flow_057qs1x + Flow_01suxh6 - - Flow_118thnc - Flow_1b7b7vp - Flow_1r9sgs4 + + 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_0kw2jbo + Flow_057qs1x + Flow_0ovj0pk + Flow_07vh0na + var system = java.lang.System; +system.out.println ("Sent to SDM"); + + + Flow_0fa3idu + Flow_1qdnyub + Flow_09v5hyw + Flow_1nowy63 + + + + + + dera_updated + + + Flow_1v6zje9 + Flow_032upr4 + Flow_0y1xa83 + + + Flow_0y1xa83 + + + Flow_08c8ij1 + Flow_0io9st8 + Flow_032upr4 - Flow_1u3s5mj + Flow_13aqwr9 Flow_1phkhb3 Flow_05vthw4 @@ -239,7 +185,8 @@ system.out.println ("Sent to Caseworker"); task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"srcr"); +task.execution.setVariableLocal('variable1',"srcr"); +task.execution.setVariable('userRole','Caseworker'); task.execution.setVariable('requestStatus', task.execution.getVariable('action')); @@ -248,8 +195,7 @@ 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','Caseworker'); -task.execution.setVariable('subFormName','SRCR Form'); - +task.execution.setVariable('subFormName','SRCR Form'); @@ -259,7 +205,7 @@ task.execution.setVariable('subFormName','SRCR Form'); Flow_1ccbyzk - Flow_02gyla8 + Flow_09v3kpi Flow_0zzhoui Flow_1ixkifd Flow_0pqd76u @@ -285,7 +231,8 @@ system.out.println ("Sent to SDM"); - task.execution.setVariable('task_id',task.getId()); + task.execution.setVariable('task_id',task.getId()); + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); @@ -304,7 +251,7 @@ task.execution.setVariable('subFormName','SRCR Form'); Flow_0mtd57d - Flow_1jm1bhe + Flow_0qvoubs Flow_0k5l8nk Flow_0ryglee Flow_1kizv19 @@ -377,7 +324,8 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"srcr"); +task.execution.setVariableLocal('variable1',"srcr"); + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); @@ -396,7 +344,7 @@ task.execution.setVariable('subFormName','SRCR Form'); Flow_0h34vew - Flow_168htzm + Flow_1mxzqgt Flow_14snpj2 Flow_0qz0c7u Flow_1ifs52w @@ -451,7 +399,7 @@ execution.setVariable('isSrcrResubmitted', false); ${isSentFromSociety == false} - + @@ -529,7 +477,7 @@ execution.setVariable('isSrcrResubmitted', false); ${siteRiskClassification != 'notHighRisk'} - + @@ -589,7 +537,7 @@ execution.setVariable('isSrcrResubmitted', false); - ["applicationId", "applicationStatus", "srcrStatus", "isSrcrResubmitted"] + ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] @@ -608,7 +556,7 @@ execution.setVariable('requestType', 'SRCR'); - + @@ -679,311 +627,72 @@ execution.setVariable('requestType', 'SRCR'); ${isSentFromSociety == true} - + + + Flow_0h34vew + Flow_1mxzqgt + Flow_0lklj13 + + dera_subforms_updated - Flow_0dn9scp - Flow_0v3xmtu - Flow_007p6h2 - Flow_1g9gkqq + Flow_0lklj13 + Flow_18o75ov + Flow_1u837pr + Flow_0184u8i - - - Flow_0h34vew - Flow_168htzm - Flow_0dn9scp - - - - + + + Flow_1ccbyzk - Flow_02gyla8 - Flow_0v3xmtu + Flow_09v3kpi + Flow_18o75ov - - - Flow_1g9gkqq - - - - + + + Flow_0mtd57d - Flow_1jm1bhe - Flow_007p6h2 + Flow_0qvoubs + Flow_1u837pr - + + + Flow_0184u8i + + - - - - 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_0ohuh4k - Flow_1xj96i6 - Flow_0527h3y - Flow_0543g25 - Flow_0wr0mei - Flow_0d8ioqs - Flow_0ovj0pk + + Flow_1s58qkt + Flow_0kw2jbo + Flow_0wxa7vb + Flow_1esdw3m + Flow_1xju4ax - - - - var system = java.lang.System; -system.out.println ("form signed"); - - - Flow_1asq9fa - Flow_16fwgn1 - Flow_0ohuh4k - - - - - task.execution.setVariable('isAp',false); - - - - task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Contaminated Sites Approved Professional'); - - - - - ["applicationId", "applicationStatus"] - - - - Flow_142lsgk - Flow_0pzpbn7 - Flow_0527h3y - Flow_0b418rv - - - - - task.execution.setVariable('isSociety',false); - - - - 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')); -task.execution.setVariable('userRole','Contaminated Sites Approved Professionals Society'); - - - - - ["applicationId", "applicationStatus"] - - - - Flow_0kfjdmp - Flow_0543g25 - Flow_1ev1kr6 - Flow_0d8ruax - - - Flow_1xj96i6 - Flow_1quswsc - Flow_142lsgk - - - Flow_1rc30l8 - - - 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_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'); -system.out.println ("typeOfReview "+typeOfReview); -execution.setVariable('typeOfReview',typeOfReview); -var clientEmail = execution.getVariable('simpleemail'); -system.out.println ("clientEmail "+clientEmail); -execution.setVariable('clientEmail',clientEmail); -var siteRiskClassification = execution.getVariable('siteRiskClassification'); -system.out.println ("siteRiskClassification "+siteRiskClassification ); -execution.setVariable('siteRiskClassification',siteRiskClassification); -execution.setVariable('formName','Detailed Ecological Risk Assessment Checklist'); -execution.setVariable('EmailType','DERA'); -execution.setVariable('name','User'); -var emailsToArray = []; -emailsToArray.push(clientEmail) -execution.setVariable("emailTo", Java.to(emailsToArray, "java.lang.Object[]")); - -var isSoscAvailable = typeOfReview === 'directToMinistryApplication'? false: true; -execution.setVariable('isSoscAvailable',isSoscAvailable); - - - - - execution.setVariable('applicationStatus', "Resubmit"); -execution.setVariable('returnedBy', "cssaTeam"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_19ktqsm - Flow_12uv3km - Flow_0qw9o9a - Flow_0wxa7vb - Flow_0b5e332 - Flow_1stifo9 - - - Flow_05pndkl - Flow_1asq9fa - Flow_1xx7tz6 - - - - - - task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); - - - - - ["applicationId", "applicationStatus"] - - - - Flow_1xx7tz6 - Flow_16fwgn1 - - - - - task.execution.setVariable('isCssaTeam',false); - - - - task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','CSSA Team'); - - - - - ["applicationId", "applicationStatus"] - - - - Flow_1quswsc - Flow_0gb2oz2 - Flow_0wr0mei - Flow_0lgivc3 - Flow_0bz8atu - - - Flow_0b418rv - Flow_12uv3km - Flow_0kfjdmp - - - Flow_0d8ruax - Flow_0gb2oz2 - Flow_0qw9o9a - Flow_0pzpbn7 - - - Flow_0iubwul - Flow_19ktqsm - Flow_0qbjx6e - Flow_1tu4hj7 - Flow_1ev1kr6 - - - Flow_0bz8atu - Flow_0iubwul - Flow_16ek6dk - - - Flow_08c8ij1 - Flow_0c90maq - Flow_17tf2x2 - - + + Flow_19ik9s7 + Flow_1s58qkt + Flow_1v6zje9 + + + Flow_0izwlc1 + + dera_updated - Flow_0qbjx6e Flow_07eueok + Flow_0qbjx6e + Flow_1xju4ax Flow_1nowy63 - Flow_1l5jf46 - Flow_17uy5we - Flow_0n61nyr - - - Flow_19ik9s7 - Flow_15f3evi - Flow_1i04zkp - - - Flow_15f3evi - Flow_0kw2jbo - Flow_0wxa7vb - Flow_1esdw3m - - - - - - dera_updated - - - Flow_16ek6dk - Flow_14qx1q0 + Flow_0izwlc1 - - Flow_14qx1q0 - Flow_1kyum71 Flow_0fa3idu @@ -995,7 +704,7 @@ task.execution.setVariable('userRole','CSSA Team'); var system = java.lang.System; system.out.println ("Sent to SDM"); - + @@ -1006,7 +715,8 @@ system.out.println ("Sent to SDM"); - task.execution.setVariable('task_id',task.getId()); + task.execution.setVariable('task_id',task.getId()); + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); @@ -1041,16 +751,16 @@ task.execution.setVariable('subFormName','DERA Form'); Flow_1vxydh0 - Flow_0xnspeg + Flow_1wvb9m4 Flow_0ui56bn - Flow_07enxwq Flow_0pqk381 + Flow_07enxwq Flow_07enxwq Flow_0yy721o - + @@ -1062,7 +772,8 @@ task.execution.setVariable('subFormName','DERA Form'); task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"dera"); +task.execution.setVariableLocal('variable1',"dera"); + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); @@ -1071,10 +782,7 @@ task.execution.setVariable('deraStatus', task.execution.getVariable('action')); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); task.execution.setVariable('deleteReason', "completed"); task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','DERA Form'); - - - +task.execution.setVariable('subFormName','DERA Form'); @@ -1084,7 +792,7 @@ task.execution.setVariable('subFormName','DERA Form'); Flow_13zl1nd - Flow_16qbig6 + Flow_1qn2dpn Flow_0f731f5 Flow_0yy721o Flow_1c0kfis @@ -1105,6 +813,16 @@ task.execution.setVariable('subFormName','DERA Form'); 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_18exjmw @@ -1114,16 +832,6 @@ task.execution.setVariable('subFormName','DERA Form'); Flow_0go33vq - - - execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - - - ${action == 'Accepted'} @@ -1148,7 +856,7 @@ execution.setVariable('isDeraResubmitted', false); ${isSentFromSociety == true} - + @@ -1176,6 +884,13 @@ execution.setVariable('isDeraResubmitted', false); ${action == 'Returned'} + + + + + + ${action == 'Recheck' and isSentFromSociety == false} + @@ -1197,7 +912,7 @@ execution.setVariable('isDeraResubmitted', false); ${isSentFromSociety == false} - + @@ -1225,47 +940,6 @@ execution.setVariable('isDeraResubmitted', false); ${action == 'Returned'} - - - - - dera_subforms_updated - - - Flow_1sbxvgx - Flow_0rsx4qs - Flow_0jf2e1l - - - - Flow_13zl1nd - Flow_16qbig6 - Flow_1sbxvgx - - - - Flow_0jf2e1l - - - - - Flow_04rzv3x - Flow_0xnspeg - Flow_0rsx4qs - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'DERA'); - - - - @@ -1284,36 +958,62 @@ execution.setVariable('isDeraResubmitted', false); - + - + + execution.setVariable('requestStatus', 'New'); +execution.setVariable('requestType', 'DERA'); + - ${action == 'Recheck' and isSentFromSociety == false} - - Flow_18exjmw - Flow_06v4kdf - Flow_0pqk381 - 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')); - + + + + + + + + dera_subforms_updated + + + Flow_0zq3j61 + Flow_04eqln5 + Flow_19nit40 + + + + Flow_13zl1nd + Flow_1qn2dpn + Flow_0zq3j61 + + + + + + Flow_19nit40 + + + + + Flow_04rzv3x + Flow_1wvb9m4 + Flow_04eqln5 + + - - Flow_0nkb4yt - Flow_1m5dyj2 - - Flow_15z92rp - Flow_17dpj6g - Flow_0p3u1yj - Flow_0639o7i + + Flow_0njpoxv + Flow_1phnzgm + + Flow_08gusn0 + Flow_1ancmpa + Flow_18kdaee + Flow_11d9mar var system = java.lang.System; system.out.println ("Sent to SDM"); - + @@ -1324,25 +1024,26 @@ system.out.println ("Sent to SDM"); - task.execution.setVariable('task_id',task.getId()); + task.execution.setVariable('task_id',task.getId()); + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'SoSC'); -task.execution.setVariable('soscStatus', 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"); task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','SoSC Form'); +task.execution.setVariable('subFormName','DERA Form'); - + - Flow_0639o7i - Flow_0yi6pa7 + Flow_11d9mar + Flow_0tqsk2f - + execution.setVariable('applicationStatus', "Resubmit"); @@ -1355,20 +1056,20 @@ task.execution.setVariable('subFormName','SoSC Form'); - Flow_003kmau - Flow_17dpj6g + Flow_13fbogw + Flow_1ancmpa - - Flow_0mjgxil - Flow_003kmau - Flow_1itdpy9 - Flow_1raj7vr + + Flow_1x5geew + Flow_13fbogw + Flow_0zjhnx3 + Flow_0f2ltzc - - Flow_1itdpy9 - Flow_0lf9s8z + + Flow_0f2ltzc + Flow_1uju8pu - + @@ -1380,7 +1081,8 @@ task.execution.setVariable('subFormName','SoSC Form'); task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"sosc"); +task.execution.setVariableLocal('variable1',"sosc"); + task.execution.setVariable('requestStatus', task.execution.getVariable('action')); @@ -1389,25 +1091,22 @@ task.execution.setVariable('soscStatus', task.execution.getVariable('action')); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); task.execution.setVariable('deleteReason', "completed"); task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','SoSC Form'); - - - +task.execution.setVariable('subFormName','SoSC Form'); - Flow_0vw0lda - Flow_1dc1l9u + Flow_1wgbrcd + Flow_09s9m5h - - Flow_0es7x0e - Flow_15z92rp - Flow_0lf9s8z - Flow_1p0ezkl + + Flow_1cy9wf5 + Flow_08gusn0 + Flow_1uju8pu + Flow_1hgk3zw - + execution.setVariable('applicationStatus', "Resubmit"); @@ -1420,71 +1119,61 @@ task.execution.setVariable('subFormName','SoSC Form'); - Flow_1p0ezkl - Flow_0xixsb5 + Flow_1hgk3zw + Flow_1u9msnt - - Flow_1raj7vr - Flow_0xixsb5 - Flow_01dcv2u - Flow_0xnsojj + + Flow_0zjhnx3 + Flow_1u9msnt + Flow_0l2a4l0 + Flow_0x6lu8g var system = java.lang.System; system.out.println ("Begin SoSC Flow - Sent To Caseworker"); execution.setVariable('isCaseworker',false); system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - Flow_01dcv2u + + Flow_0l2a4l0 - - Flow_0xnsojj - Flow_0p3u1yj - Flow_0vw0lda + + Flow_0x6lu8g + Flow_18kdaee + Flow_1wgbrcd - + - dera_subforms_updated + sosc_subforms_updated - Flow_0vixcwm - Flow_1n9gcsu - Flow_11sb4e2 + Flow_15rrs2v + Flow_0oeq414 + Flow_141nwha - - Flow_1dc1l9u - Flow_0es7x0e - Flow_0vixcwm + + Flow_09s9m5h + Flow_1cy9wf5 + Flow_15rrs2v - - Flow_11sb4e2 + + Flow_141nwha - - Flow_0yi6pa7 - Flow_0mjgxil - Flow_1n9gcsu + + Flow_0tqsk2f + Flow_1x5geew + Flow_0oeq414 - - - - execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "soscBundleStatus"] - - - + ${action == 'Accepted'} - + execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('soscStatus', "Resubmitted"); -execution.setVariable('isSoscResubmitted', false); +execution.setVariable('deraStatus', "Resubmitted"); +execution.setVariable('isDeraResubmitted', false); @@ -1496,11 +1185,11 @@ execution.setVariable('isSoscResubmitted', false); - + ${isSentFromSociety == true} - - + + @@ -1512,7 +1201,7 @@ execution.setVariable('isSoscResubmitted', false); - + @@ -1528,25 +1217,25 @@ execution.setVariable('isSoscResubmitted', false); ${action == 'Returned'} - - + + - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - ${action == 'Rejected' or action == 'Approved' } + ${action == 'Recheck' and isSentFromSociety == false} - + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + - ${action == 'Recheck' and isSentFromSociety == false} + ${action == 'Rejected' or action == 'Approved' } - + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); @@ -1554,10 +1243,10 @@ execution.setVariable('isSoscResubmitted', false); ${action == 'Rejected'} - + ${isSentFromSociety == false} - + @@ -1571,8 +1260,8 @@ execution.setVariable('isSoscResubmitted', false); - - + + @@ -1586,14 +1275,14 @@ execution.setVariable('isSoscResubmitted', false); ${action == 'Returned'} - + execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('soscStatus', "Resubmitted"); -execution.setVariable('isSoscResubmitted', false); +execution.setVariable('deraStatus', "Resubmitted"); +execution.setVariable('isDeraResubmitted', false); @@ -1604,7 +1293,7 @@ execution.setVariable('isSoscResubmitted', false); - + execution.setVariable('requestStatus', 'New'); @@ -1613,1824 +1302,568 @@ execution.setVariable('requestType', 'SoSC'); - - - - + + + + - + - - - dera_updated - + + execution.setVariable('isCaseworker',true); + - Flow_1i04zkp - Flow_17tf2x2 - Flow_0jxnrvm - - - Flow_0g9jpvb - Flow_1kyum71 - Flow_1u3s5mj - Flow_0nkb4yt - - - Flow_0jxnrvm - - - Flow_0i3fcvy - Flow_131saby - Flow_1azn5ag + ${action == 'Returned'} + + + + + execution.setVariable('isSdm',true); + + + ${action == 'Returned'} + + + ${applicationStatus== 'Resubmitted' and isCaseworker== true} + + + ${applicationStatus== 'Resubmitted' and isSdm== true} + + + ${action == 'Recheck'} + + + ${action == 'Recheck' and isSentFromSociety == true} + + + + ${action == 'Rejected' or action == 'Approved' } + + + ${action == 'Recheck' and isSentFromSociety == false} + + + + + ${isSentFromSociety == false} + + + + + ${isSentFromSociety == true} + + + ${riskclassification == 'exempt' && isSoscAvailable==false} + + + ${action == 'Accepted'} + + + + + + + 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"); +} + + + + + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + + + ${riskclassification != 'exempt' || isSoscAvailable==true} + + + + + + ${action == 'Rejected'} + + + + + + + ${action == 'Rejected'} + + + + + + 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_0b5e332 + 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'); +system.out.println ("typeOfReview "+typeOfReview); +execution.setVariable('typeOfReview',typeOfReview); +var clientEmail = execution.getVariable('simpleemail'); +system.out.println ("clientEmail "+clientEmail); +execution.setVariable('clientEmail',clientEmail); +var siteRiskClassification = execution.getVariable('siteRiskClassification'); +system.out.println ("siteRiskClassification "+siteRiskClassification ); +execution.setVariable('siteRiskClassification',siteRiskClassification); +execution.setVariable('formName','Detailed Ecological Risk Assessment Checklist'); +execution.setVariable('EmailType','DERA'); +execution.setVariable('name','User'); +var emailsToArray = []; +emailsToArray.push(clientEmail) +execution.setVariable("emailTo", Java.to(emailsToArray, "java.lang.Object[]")); + +execution.setVariable('isSoscAvailable',true); + + + 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_1rc30l8 + + + Flow_1xj96i6 + Flow_1quswsc + Flow_142lsgk - - Flow_1azn5ag - Flow_04qadhc - Flow_02nvps4 - - - Flow_04qadhc - Flow_01v1a0f - - Flow_1lumm7v - Flow_0rqk8na - Flow_00s15ao - Flow_1odhac6 - 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"); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','DERA Form'); - - - - - - Flow_1odhac6 - Flow_15nyxwz - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_1surrqx - Flow_0rqk8na - - - Flow_1gd48dj - Flow_1surrqx - Flow_1g1rouj - Flow_0axjodg - - - Flow_1g1rouj - Flow_1r30rh3 - - - - - - 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('isSociety',false); +task.execution.setVariable('userRole','CSAP Society'); + + + + task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','DERA Form'); +var system = java.lang.System; +task.execution.setVariable('isSentFromSociety',true); +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 + + + + + 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 + + + + + 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_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); +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')); - - - - - - - Flow_0kko947 - Flow_13jm4kf - - - Flow_1jlvkno - Flow_1lumm7v - Flow_1r30rh3 - Flow_0xf5y0k - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_0xf5y0k - Flow_1uwj5on - - - Flow_06rvauy - - - Flow_1s3el1j - Flow_00s15ao - Flow_0kko947 - - - - - - dera_subforms_updated - - - Flow_11hmda7 - Flow_1vjuqup - Flow_0u4wuii - - - Flow_13jm4kf - Flow_1jlvkno - Flow_11hmda7 - - - Flow_0u4wuii - - - Flow_15nyxwz - Flow_1gd48dj - Flow_1vjuqup - - - Flow_0axjodg - Flow_1uwj5on - Flow_06rvauy - Flow_1s3el1j - 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')); - - - - - execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - - - - ${action == 'Accepted'} - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('deraStatus', "Resubmitted"); -execution.setVariable('isDeraResubmitted', false); - - - - - ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "deraStatus"] - - - - execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('isDeraResubmitted', true); - - - - ["applicationId", "applicationStatus", "isDeraResubmitted"] - - - - ${action == 'Returned'} - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' or action == 'Approved' } - - - - - - - ${action == 'Recheck' and isSentFromSociety == false} - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - ${isSentFromSociety == false} - - - - - - ["applicationId", "applicationStatus", "deraStatus"] - - - - execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - - execution.setVariable('isDeraResubmitted', true); - - - - ["applicationId", "applicationStatus", "isDeraResubmitted"] - - - - ${action == 'Returned'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('deraStatus', "Resubmitted"); -execution.setVariable('isDeraResubmitted', false); - - - - ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'DERA'); - - - - - - - - - - - Flow_02nvps4 - Flow_147keeo - - Flow_0ly2cyz - Flow_0niwre0 - Flow_1nl5ipm - Flow_0f4x52g - 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', 'SoSC'); -task.execution.setVariable('soscStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','SoSC Form'); - - - - - - Flow_0f4x52g - Flow_0ut0zi1 - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_0ux2vew - Flow_0niwre0 - - - Flow_0of98ac - Flow_0ux2vew - Flow_1aeuu2q - Flow_1cqow89 - - - Flow_1aeuu2q - Flow_1qqnzvx - - - - - - Y - - - ["pid","applicationId","process_pid","task_id"] - - - - task.execution.setVariable('task_id',task.getId()); -task.execution.setVariableLocal('variable1',"sosc"); - - - task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'SoSC'); -task.execution.setVariable('soscStatus', task.execution.getVariable('action')); -task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','SoSC Form'); +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')); - - - - - - - Flow_0b48ica - Flow_02bhjf4 - - - Flow_0uqrlo1 - Flow_0ly2cyz - Flow_1qqnzvx - Flow_1c5adbp - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_1c5adbp - Flow_0cd2y9a - - - Flow_1cqow89 - Flow_0cd2y9a - Flow_08ue3be - Flow_027qwvp - var system = java.lang.System; -system.out.println ("Begin SoSC Flow - Sent To Caseworker"); -execution.setVariable('isCaseworker',false); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - - Flow_08ue3be - - - Flow_027qwvp - Flow_1nl5ipm - Flow_0b48ica - - - - - - dera_subforms_updated - - - Flow_1tw25qi - Flow_1wmn6pm - Flow_09ntkx7 - - - Flow_02bhjf4 - Flow_0uqrlo1 - Flow_1tw25qi - - - Flow_09ntkx7 - - - Flow_0ut0zi1 - Flow_0of98ac - Flow_1wmn6pm - - - - - execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "soscBundleStatus"] - - - - ${action == 'Accepted'} - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('soscStatus', "Resubmitted"); -execution.setVariable('isSoscResubmitted', false); - - - - - ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "soscStatus"] - - - - execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('isSoscResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSoscResubmitted"] - - - - ${action == 'Returned'} - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' or action == 'Approved' } - - - - - - - ${action == 'Recheck' and isSentFromSociety == false} - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - ${isSentFromSociety == false} - - - - - - ["applicationId", "applicationStatus", "soscStatus"] - - - - execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - - execution.setVariable('isSoscResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSoscResubmitted"] - - - - ${action == 'Returned'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('soscStatus', "Resubmitted"); -execution.setVariable('isSoscResubmitted', false); - - - - ["applicationId", "applicationStatus", "soscStatus","isSoscResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'SoSC'); - - - - - - - - - - - Flow_01v1a0f - Flow_147keeo - Flow_1l5jf46 - - - Flow_0n61nyr - - - Flow_1b7b7vp - Flow_1j9qdt7 - - Flow_01dljge - Flow_1inicnb - Flow_00llqqu - Flow_10vct33 - 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"); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','DERA Form'); - - - - - - Flow_10vct33 - Flow_1orl3n2 - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_0y6yjq4 - Flow_1inicnb - - - Flow_0gcxxyc - Flow_0y6yjq4 - Flow_1x8qn14 - Flow_18f4dcj - - - Flow_1x8qn14 - Flow_1huo0lg - - - - - - 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"); -task.execution.setVariable('userRole','Caseworker'); -task.execution.setVariable('subFormName','DERA Form'); +var selectDeraCaseworker= execution.getVariable('selectDeraCaseworker'); +system.out.println ("selectDeraCaseworker"+selectDeraCaseworker); +execution.setVariable('caseworkerDeraAssignment',selectDeraCaseworker); +system.out.println ("caseworkerDeraAssignment"+execution.getVariable('caseworkerDeraAssignment')); +var selectSoscCaseworker= execution.getVariable('selectSoscCaseworker'); +system.out.println ("selectSoscCaseworker"+selectSoscCaseworker); +execution.setVariable('caseworkerSoscAssignment',selectSoscCaseworker); +system.out.println ("caseworkerSoscAssignment"+execution.getVariable('caseworkerSoscAssignment')); - - - - - - - Flow_1385q2s - Flow_0hla21j - - - Flow_1u5ar4j - Flow_01dljge - Flow_1huo0lg - Flow_08vhe64 - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus"] - - - - - Flow_08vhe64 - Flow_0j3ub9c - - - Flow_15qwrqx - - - Flow_1mlkd5t - Flow_00llqqu - Flow_1385q2s - - - - - - dera_subforms_updated - - - Flow_1ldt3wq - Flow_1gathh9 - Flow_0vsb9eb - - - Flow_0hla21j - Flow_1u5ar4j - Flow_1ldt3wq - - - Flow_0vsb9eb - - - Flow_1orl3n2 - Flow_0gcxxyc - Flow_1gathh9 - - - Flow_18f4dcj - Flow_0j3ub9c - Flow_15qwrqx - Flow_1mlkd5t - 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')); - - - - - execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - - - - ${action == 'Accepted'} - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('deraStatus', "Resubmitted"); -execution.setVariable('isDeraResubmitted', false); - - - - - ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "deraStatus"] - - - - execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('isDeraResubmitted', true); - - - - ["applicationId", "applicationStatus", "isDeraResubmitted"] - - - - ${action == 'Returned'} - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' or action == 'Approved' } - - - - - - - ${action == 'Recheck' and isSentFromSociety == false} - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - ${isSentFromSociety == false} - - - - - - ["applicationId", "applicationStatus", "deraStatus"] - - - - execution.setVariable('deraFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - - execution.setVariable('isDeraResubmitted', true); - - - - ["applicationId", "applicationStatus", "isDeraResubmitted"] - - - - ${action == 'Returned'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('deraStatus', "Resubmitted"); -execution.setVariable('isDeraResubmitted', false); - - - - ["applicationId", "applicationStatus", "deraStatus","isDeraResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'DERA'); - - - - - - - - - - - Flow_1r9sgs4 - Flow_1x22wup - - Flow_03yoy3w - Flow_0il3vmv - Flow_05wlevd - Flow_0are22b - 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('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','Caseworker'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - - Flow_0are22b - Flow_07l3syo - - - Flow_0an51l4 - Flow_1fu9yzy - Flow_1snhou2 - Flow_1ndkwtp - Flow_1h0m3i7 - - - Flow_1snhou2 - Flow_0xfqt3y - Flow_1vdz37b - Flow_01epz2i - Flow_16pxdg9 - 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')); -task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - Flow_16pxdg9 - Flow_0ftakdr - - - Flow_1yzlrk5 - Flow_1w63bha - Flow_1xo2d1y - Flow_0k8zbtn - - - Flow_1fu9yzy - Flow_1w63bha - Flow_057mgr6 - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - - Flow_1h0m3i7 - Flow_0il3vmv - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - - Flow_1xo2d1y - Flow_0xfqt3y - - - Flow_1quxcj1 - Flow_05wlevd - Flow_1vdz37b - - - Flow_1ndkwtp - Flow_13fkd7i - Flow_18uiwvj - Flow_0qth6vy - Flow_1j7p3z3 - Flow_10q9ixt - var system = java.lang.System; -system.out.println ("Begin SRCR Flow - Sent To SRCO"); -system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociety')); - - - Flow_18uiwvj - - - - - - 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'); -task.execution.setVariable('subFormName','SRCR Form'); - - - - - - Flow_10q9ixt - Flow_1jv9mjo - - - Flow_099g99i - Flow_057mgr6 - Flow_1m3u6g8 - Flow_0ubwm3f - - - - - execution.setVariable('applicationStatus', "Resubmit"); - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - - Flow_0ubwm3f - Flow_13fkd7i - - - Flow_1m3u6g8 - Flow_01epz2i - Flow_1quxcj1 - - - Flow_0k8zbtn - Flow_0qth6vy - Flow_06l4mcj - - - Flow_06l4mcj - Flow_03yoy3w - Flow_1j7p3z3 - - - - - - dera_subforms_updated - - - Flow_1f5nol9 - Flow_07t1o4f - Flow_04demhb - Flow_1fnm4v9 - - - Flow_1jv9mjo - Flow_099g99i - Flow_1f5nol9 - - - Flow_07l3syo - Flow_0an51l4 - Flow_07t1o4f - - - Flow_1fnm4v9 - - - Flow_0ftakdr - Flow_1yzlrk5 - Flow_04demhb - - - - - - - ${isSentFromSociety == false} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); - - - - ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] - - - - - - - - ${isSentFromSociety == false} - - - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected'} - - - - - execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); - - - - ["applicationId", "applicationStatus", "srcrBundleStatus"] - - - - ${action == 'Accepted'} - - - ${action == 'Recheck'} - - - - - - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - - - - ${action == 'Returned' } - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); - - - - - ["applicationId", "applicationStatus", "srcrStatus","isSrcrResubmitted"] - - - - - - - - ${isSentFromSociety == true} - - - ${siteRiskClassification != 'notHighRisk'} - - - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Approved' or action == 'Rejected' } - - - - - - - - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - - - - ${action == 'Returned' } - - - ${action == 'Recheck' } - - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); - - - ${action == 'Rejected' } - - - ${siteRiskClassification == 'notHighRisk'} - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); -execution.setVariable('requestStatus', "Resubmitted"); -execution.setVariable('srcrStatus', "Resubmitted"); -execution.setVariable('isSrcrResubmitted', false); - - - - ["applicationId", "applicationStatus", "srcrStatus", "isSrcrResubmitted"] - - - - - - - - - - execution.setVariable('requestStatus', 'New'); -execution.setVariable('requestType', 'SRCR'); - - - - - - - - - - ${siteRiskClassification != 'notHighRisk' } - - - - - - - ${isSentFromSociety == true} - - - - - - - ["applicationId", "applicationStatus", "srcrStatus"] - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - - - - - - - - - - execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); - - - - ["applicationId", "applicationStatus", "srcrBundleStatus"] - - - - ${action == 'Accepted'} - - - - - - execution.setVariable('isSrcrResubmitted', true); - - - - ["applicationId", "applicationStatus", "isSrcrResubmitted"] - - - - ${action == 'Returned' } - - - ${siteRiskClassification == 'notHighRisk' } - - - - - - - - +var selectSrco= execution.getVariable('selectSrco'); +system.out.println ("selectSrco"+selectSrco); +execution.setVariable('srcoAssignment',selectSrco); +system.out.println ("srcoAssignment"+execution.getVariable('srcoAssignment')); + + + Flow_00pfp2v + Flow_02ysv7t + Flow_0lgivc3 + + + Flow_0fv5367 + Flow_12uv3km + Flow_0kfjdmp + + + Flow_1j8wa3r + Flow_19ktqsm + Flow_1tu4hj7 + Flow_1ev1kr6 + Flow_0qbjx6e + + + Flow_1rlisdb + Flow_0gb2oz2 + Flow_0qw9o9a + Flow_0pzpbn7 + + + Flow_0bz8atu + Flow_1j8wa3r + Flow_1sj5fc8 + + + + + + dera_updated + + + Flow_1sj5fc8 + Flow_16ofiye + Flow_15d65om + Flow_183ni86 + Flow_1kvztr8 + + + Flow_1kvztr8 + + + Flow_0b418rv + Flow_0fv5367 + Flow_16ofiye + + + Flow_0d8ruax + Flow_1rlisdb + Flow_15d65om + + + Flow_0gcqir8 + Flow_00pfp2v + Flow_183ni86 + + - - execution.setVariable('bundleStatus', "deraMgrAccepted"); - - - - ["applicationId", "applicationStatus", "bundleStatus"] - + var system = java.lang.System; +execution.setVariable('isSentFromSociety',false); +system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSociety')); + ${typeOfReview== 'directToMinistryApplication'} + + + ${action == 'Accepted'} + + ${applicationStatus== 'Resubmitted' and isCssaTeam== true} + ${action == 'Recheck'} - - - ${riskclassification == 'exempt'} + + - + - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); + execution.setVariable('isCssaTeam',true); - ${riskclassification != 'exempt'} + ${action == 'Returned'} - - - - + - execution.setVariable('formUrl', execution.getVariable('deraFormUrl')); - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('formUrl', execution.getVariable('soscFormUrl')); + execution.setVariable('isAp',true); - + + ${action == 'Returned'} + + + - if (execution.getVariable('deraStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" && execution.getVariable('soscStatus') === "Approved" ) -{ -execution.setVariable("applicationStatus", "Approved"); -} -else{ -execution.setVariable("applicationStatus", "Rejected"); -} + execution.setVariable('isSociety',true); - + ${action == 'Returned'} - - ${applicationStatus== 'Resubmitted' and isSdm== true} - - - ${isSentFromSociety == true} - - + + - execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); + execution.setVariable('applicationStatus', "Resubmitted"); - ["applicationId", "applicationStatus", "bundleStatus"] + ["applicationId", "applicationStatus"] + - ${action == 'Accepted'} - - - - ${applicationStatus== 'Resubmitted' and isCaseworker== true} - - - ${action == 'Recheck' and isSentFromSociety == false} - - - ${isSoscAvailable==false} - - - - ${isSentFromSociety == false} - - - - - - - - execution.setVariable('isSdm',true); - - - ${action == 'Returned'} - - - ${action == 'Recheck' and isSentFromSociety == true} - - - ${action == 'Rejected' or action == 'Approved' } - - - ${isSoscAvailable==true} - - ${isSoscAvailable==false} - - - - - + + + - - execution.setVariable('bundleStatus', "cssaTeamAccepted"); - + - ["applicationId", "applicationStatus", "bundleStatus"] + ["applicationId", "applicationStatus"] + - ${action == 'Accepted'} - - - ${action == 'Recheck'} - - - - ${applicationStatus== 'Resubmitted' and isCssaTeam== true} - - - ${applicationStatus== 'Resubmitted' and isSociety== true} - - - ${applicationStatus== 'Resubmitted' and isAp== true} ${applicationStatus!= 'Resubmitted'} - - - ${applicationStatus== 'Signed'} - - - ${owneroperatorradioGroup=='sameAsApplicant'} - ${typeOfReview!= 'directToMinistryApplication'} - - ${action == 'Recheck'} - - ${action == 'Accepted'} + + ${applicationStatus== 'Resubmitted' and isSociety== true} + ${action == 'Recheck'} - - - - - var system = java.lang.System; -execution.setVariable('isSentFromSociety',false); -system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSociety')); - - - ${typeOfReview== 'directToMinistryApplication'} - - - - - - - ["applicationId", "applicationStatus"] - - - - - - - - - - - execution.setVariable('applicationStatus', "Resubmitted"); - - - - ["applicationId", "applicationStatus"] - - - - - - - - - - execution.setVariable('isCaseworker',true); - - - ${action == 'Returned'} - - - - - execution.setVariable('isCssaTeam',true); - - - ${action == 'Returned'} + + + ${action == 'Recheck'} - - - - execution.setVariable('isAp',true); - - - ${action == 'Returned'} + + ${applicationStatus== 'Resubmitted' and isAp== true} - - - - execution.setVariable('isSociety',true); - - - ${action == 'Returned'} + + + + ${action == 'Accepted'} - + + + - - var system = java.lang.System; -system.out.println ("site owner flow"); - + - ${owneroperatorradioGroup=='different'} - - - ${action == 'Accepted'} - - - - - - ${action == 'Rejected'} + + + + + + + + + + + Flow_0drs8s9 + Flow_1kyum71 + Flow_1u3s5mj + Flow_03jspvi + + + Flow_03jspvi + Flow_0njpoxv + Flow_0kehuqf + + + ${isSoscAvailable==true} - - - + + + Flow_1phnzgm + Flow_0kehuqf + Flow_1qdnyub + + + - execution.setVariable('formUrl', execution.getVariable('deraFormUrl')); - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('formUrl', execution.getVariable('soscFormUrl')); - - - - if (execution.getVariable('deraStatus') === "Approved" && execution.getVariable('soscStatus') === "Approved" ) -{ -execution.setVariable("applicationStatus", "Approved"); -} -else{ -execution.setVariable("applicationStatus", "Rejected"); -} + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + +var system = java.lang.System; +execution.setVariable('soscStatus','Approved'); +system.out.println ("soscStatus "+execution.getVariable('soscStatus') ); - + ${isSoscAvailable==false} - - - - - - - - - ${isSoscAvailable==true} - - - - - - - Flow_1j9qdt7 - Flow_1x22wup - Flow_17uy5we - - - - - - - execution.setVariable('formUrl', execution.getVariable('deraFormUrl')); - - - - execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); - - + + Flow_1u3s5mj + Flow_13aqwr9 + Flow_1hjiq9n + + + ${riskclassification != 'exempt'} + + + Flow_1phkhb3 + Flow_1hjiq9n + Flow_09v5hyw + + + + - if (execution.getVariable('deraStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" ) -{ -execution.setVariable("applicationStatus", "Approved"); -} -else{ -execution.setVariable("applicationStatus", "Rejected"); -} + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + +var system = java.lang.System; +execution.setVariable('srcrStatus','Approved'); +system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - + ${riskclassification == 'exempt'} @@ -3438,2301 +1871,1354 @@ execution.setVariable("applicationStatus", "Rejected"); - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - + + + - - + + - - + + + - - + + + + + - + - - + + - - + + - - + + - + - - - - - + + - - + + + + + - + - - - - - - - - + + - - + + + + + - + - + - - - + + + + + + + + - - + + + - - + + - - + + - - + + + - - + + - - + + - + - - + + - + - - + + + - - - - - + + + - - + + + - - + + - + - - + + + + + + - + - - + + - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - - - - - - + + + - + - - - - - - + + + + + + - - + + - - + + - - - - - + + - - - - - + + - - + + - - + + - + - - + + - - - - - - - - + + - - - - - + + - - + + - - - - - + + - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - + - - + + + + + - - - + + - - + + - - + + + + + - - + + - - + + - + - - + + + + + + - + - - + + + - - + + - + - - - - - + + - + - - + + - + - - - + + - - + + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - + - - - - - - - - - - - + + + + - + - - - - + + + - + - - - - - - - - - - - - + + + - - - - + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - + + + + + + - + - - - - - - - - - + + + + + + - + - - - + + + + + - + - - - - - - - - - - - - - - - - - + + + + + - + - - - + + + + + - + - - - - - + + + + + - + - - - + + + + + + + - - - + + + - - - + + + - + - - - - - - - - + + + + - + - - - - - + + + - + - - - - - + + + + + - + - - - + + + - + - - - + + + + + + + - - - + + + - - - + + + + + - + - - - - + + + + + - + - - - - - - - + + + - - - - + + + - - - - + + + - - - + + + + + + - - + + + - + - - - + + + + - + - - - + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - + - - + + - + - - + + - - + + - + - - + + + + + - - + + - + - - + + - + - - + + - - + + - - + + - - + + - - - - - - + + + - + - - - + + + - + - - - - - + + + + + - + - - - + + + - - - + + + - - - + + + - + - - - - + + + - - - + + + + + - + - - - - - + + + - + - - - - - + + + + + - + - - - + + + - + - - - + + + - - - + + + - - - + + + - + - - - - + + + + - + - - - + + + - - - + + + - - - - + + + - - - - + + + + + - - - + + + - - - - - - - - - + + - - - - - - - - + + - - + + - - - - - - - - - - - - - - + + - - - - - + + - + - - - - - + + - + - - - + + - - + + - + - - - + + - - - - - + + - - + + - + - - + + - + - - + + - - + + - - + + - - + + - - - - - - - + + + - + - - - - + + + - + - - - + + + + + - + - - - - - - - + + + - - - + + + - - - - - + + + - + - - - + + + + + + + + + - + - - - - - + + + - + - - - - + + + + + - + - - - - + + + - + - - - - - + + + + + + + + + + + - + - - - - - + + + + - + - - - - - - - + + + - - - + + + - - - - - - + + + - - - - - - - + + + + + - - - - - - + + + - - - - - + + + + + - + - - - + + + + + - + - - - - + + + + + - + - - - - - - - - - - - - + + + + + - - - - - + + + + + - + - - - - - - - - - - - + + + + - - - - - - + + + - - - + + + - + - - - + + + + - + - - - - - - - - - - - - - - - - - - + + + - - - - - - + + + - - - + + + - + - - - - - + + + + + + + + + + + + + - + - - - - - - + + + - + - - - + + + - + - - - + + - + - - - - - - - - - - - + + + - + - - - - - - - - - - - - - - - - - - + + + - + - - - + + + - + - - - + + + + - - - - - - - - + + + + - - - - - - - - + + + - - - - + + + + + - + - - - - - - - - - - + + + - - - + + + + + - - - + + + - - - + + + - - - - + + + + + - + - - - - - + + + - - - + + + + - + - - - + + + - + - - - - + + + + + + + + + + + - + - - - - - - - - - - - - - - + + + - - - + + + + + - + - - - - - + + + + + - + - - - - - - - - - - - - - - - - - - - - - + + + + + - + - - - + + + - + - - - - + + + - - - - - - + + + - - - - + + + + + + + - + - - - - - + + + + - + - - - - - - + + - + + + + + + + - - - - + + + + - + - - + + - - - - + + + + + - + - - - - - - - - - - - + + + + + - + - - - - - - - - - - - - + + + - - - - - - - - + + + - - - - - + + + - + - - - - - - - - + + + - - - - - - + + + - - - + + + - + - - - - - - - + + + - - - - - - - - + + + - - - + + + - - - - + + + - - - - - - - + + + - - - + + + + - - - + + + + - - - + + + + - - - + + + - - - - - - - - - - - - - - - - - - + + + - + - - - - - - - - - + + + - - - - - - - + + + + - - - - + + + + + - + - - - - + + + - + - - - - - - - + + + - - - - + + + + + - + From fe121912ea4a57227f19aab639fd947b94b61509 Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Thu, 1 Feb 2024 21:36:55 -0800 Subject: [PATCH 4/9] unit test issue fix --- .../Bundling/subProcess/DERABundleWorkflow.bpmn | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 82598115..3115c431 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 @@ -379,6 +379,7 @@ task.execution.setVariable('subFormName','SRCR Form'); + execution.setVariable('applicationStatus', "Resubmitted"); @@ -454,6 +455,7 @@ execution.setVariable('isSrcrResubmitted', false); + execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); @@ -528,6 +530,7 @@ execution.setVariable('isSrcrResubmitted', false); + execution.setVariable('applicationStatus', "Resubmitted"); @@ -836,6 +839,7 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet + execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); @@ -942,6 +946,7 @@ execution.setVariable('isDeraResubmitted', false); + execution.setVariable('applicationStatus', "Resubmitted"); @@ -1169,6 +1174,7 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet + execution.setVariable('applicationStatus', "Resubmitted"); execution.setVariable('requestStatus', "Resubmitted"); @@ -1277,6 +1283,7 @@ execution.setVariable('isDeraResubmitted', false); + execution.setVariable('applicationStatus', "Resubmitted"); @@ -1735,6 +1742,7 @@ system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSocie + execution.setVariable('applicationStatus', "Resubmitted"); @@ -3223,4 +3231,4 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - + \ No newline at end of file From 080550197755cc803cff42da0f8c9f1ab512786b Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Thu, 1 Feb 2024 22:21:17 -0800 Subject: [PATCH 5/9] unit test issue fix --- .../subProcess/CSSABundleWorklow.bpmn | 2 +- .../processes/Common/email-template.dmn | 28 ++++++++++++++++++- 2 files changed, 28 insertions(+), 2 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 f00b659a..b6a91364 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 @@ -519,7 +519,7 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet - cssa_subforms_updated + sosc_subforms_updated Flow_0vixcwm diff --git a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Common/email-template.dmn b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Common/email-template.dmn index 9c01e388..15afdc55 100644 --- a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Common/email-template.dmn +++ b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Common/email-template.dmn @@ -1,5 +1,5 @@ - + @@ -300,6 +300,32 @@ "epd-support@gov.bc.ca" + + + sosc_subforms_updated + + + + + + "NOREPLYEPD@gov.bc.ca" + + + + + + + + + "Summary of Site Condition Report Update" + + + "templates/request_updated.ftl" + + + "epd-support@gov.bc.ca" + + From b9471b5037b5e8975262e17e21e747bffa313e3a Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Mon, 5 Feb 2024 14:07:55 -0800 Subject: [PATCH 6/9] unit test issue fixes --- .../subProcess/DERABundleWorkflow.bpmn | 398 +++++++++--------- .../processes/Common/email-template.dmn | 2 +- 2 files changed, 200 insertions(+), 200 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 3115c431..306a4294 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 @@ -1379,7 +1379,7 @@ execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); - if (execution.getVariable('deraStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" ) + if (execution.getVariable('deraStatus') === "Approved" && execution.getVariable('srcrStatus') === "Approved" && execution.getVariable('soscStatus') === "Approved") { execution.setVariable("applicationStatus", "Approved"); } @@ -1882,29 +1882,29 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - + + + + + - - + + - - + + - - + + - - - @@ -1947,141 +1947,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2217,10 +2082,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - - @@ -2288,10 +2149,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - - @@ -2307,13 +2164,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - - - - - @@ -2342,24 +2192,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - - - - - - - - - - - - - - - - @@ -2368,10 +2200,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - - @@ -2386,6 +2214,22 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); + + + + + + + + + + + + + + + + @@ -2393,15 +2237,36 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); + + + + + + + + + + + + + + + + + + + + + @@ -2411,6 +2276,25 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); + + + + + + + + + + + + + + + + + + + @@ -2514,10 +2398,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - - @@ -2554,10 +2434,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - - @@ -2581,20 +2457,28 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); + + + + + + + + + + + + - - - - @@ -2779,6 +2663,122 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3206,7 +3206,7 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - + @@ -3226,9 +3226,9 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - + - \ No newline at end of file + diff --git a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Common/email-template.dmn b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Common/email-template.dmn index 15afdc55..bd2ae726 100644 --- a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Common/email-template.dmn +++ b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Common/email-template.dmn @@ -302,7 +302,7 @@ - sosc_subforms_updated + "sosc_subforms_updated" From e0fc6a379e00021897908c95b0bdfff698eb3ee8 Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Tue, 6 Feb 2024 07:50:58 -0800 Subject: [PATCH 7/9] final changes for dera/sosc --- ... Ecological Risk Assessment Checklist.json | 829 +++++++++--------- .../Site Risk Classification Report.json | 128 ++- .../bundling/Summary of Site Condition.json | 553 ++++++------ .../subProcess/CSSABundleWorklow.bpmn | 148 ++-- .../subProcess/DERABundleWorkflow.bpmn | 87 +- 5 files changed, 859 insertions(+), 886 deletions(-) diff --git a/forms-flow-ai/epd-forms/bundling/Detailed Ecological Risk Assessment Checklist.json b/forms-flow-ai/epd-forms/bundling/Detailed Ecological Risk Assessment Checklist.json index 7239a0ec..cb5a427c 100644 --- a/forms-flow-ai/epd-forms/bundling/Detailed Ecological Risk Assessment Checklist.json +++ b/forms-flow-ai/epd-forms/bundling/Detailed Ecological Risk Assessment Checklist.json @@ -177,12 +177,38 @@ }, { "title": "Reviewer Actions", + "theme": "default", + "tooltip": "", + "customClass": "", "collapsible": false, - "hideLabel": true, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, "key": "reviewerActions", - "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\nif(roles.includes(\"formsflow-client\") || \r\nroles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\")|| \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") ||\r\nroles.includes(\"formsflow-reviewer/formsflow-client-reviewer\")) {\r\n show = false;\r\n}\r\nelse\r\n{\r\n if (data.riskclassification === \"exempt\") {\r\n show = false;\r\n } else {\r\n show = true;\r\n }\r\n}", + "tags": [], + "properties": {}, + "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\nif(roles.includes(\"formsflow-client\") || \r\nroles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\")|| \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") ||\r\nroles.includes(\"formsflow-reviewer/formsflow-client-reviewer\")) {\r\n show = false;\r\n}\r\nelse\r\n{\r\n show = true;\r\n}", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "type": "panel", "label": "Panel", + "breadcrumb": "default", + "tabindex": "", "input": false, "tableView": false, "components": [ @@ -195,60 +221,35 @@ "label": "Previous Reviewer", "action": "custom", "showValidations": false, - "theme": "primary", - "size": "md", - "block": false, - "leftIcon": "", - "rightIcon": "", - "shortcut": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "disableOnInvalid": false, - "hidden": false, - "autofocus": false, - "disabled": false, "tableView": false, - "modalEdit": false, "key": "prevReviewer", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\n\r\nif(roles.includes(\"formsflow-reviewer\") && \r\n!roles.includes(\"formsflow-reviewer/caseworker\") &&\r\n!(roles.includes(\"formsflow-reviewer/sdm\") && data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "button", "custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\nconst filteredData = _.pick(data, data.deraUtilKeys);\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Recheck'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Recheck'\r\n }); \r\n});", "input": true, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", + "modalEdit": false, "dataGridLabel": true, "labelPosition": "top", + "description": "", "errorLabel": "", + "tooltip": "", "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", @@ -256,6 +257,7 @@ "widget": { "type": "input" }, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -265,13 +267,32 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "eewy7m" + "size": "md", + "leftIcon": "", + "rightIcon": "", + "block": false, + "disableOnInvalid": false, + "theme": "primary", + "id": "em2u3g" } ], "offset": 0, @@ -287,60 +308,35 @@ "label": "Next Reviewer", "action": "custom", "showValidations": false, - "theme": "primary", - "size": "md", - "block": false, - "leftIcon": "", - "rightIcon": "", - "shortcut": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "disableOnInvalid": false, - "hidden": false, - "autofocus": false, - "disabled": false, "tableView": false, - "modalEdit": false, "key": "nextReviewer", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/caseworker\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "button", "custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\n\r\nconst filteredData = _.pick(data, data.deraUtilKeys);\r\n\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Accepted'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Accepted'\r\n }); \r\n});", "input": true, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", + "modalEdit": false, "dataGridLabel": true, "labelPosition": "top", + "description": "", "errorLabel": "", + "tooltip": "", "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", @@ -348,6 +344,7 @@ "widget": { "type": "input" }, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -357,72 +354,66 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "ed219g" + "size": "md", + "leftIcon": "", + "rightIcon": "", + "block": false, + "disableOnInvalid": false, + "theme": "primary", + "id": "e7lx1r3q" }, { "label": "Approved", "action": "custom", "showValidations": false, - "theme": "primary", - "size": "md", - "block": false, - "leftIcon": "", - "rightIcon": "", - "shortcut": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "disableOnInvalid": false, - "hidden": false, - "autofocus": false, - "disabled": false, "tableView": false, - "modalEdit": false, "key": "approved", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "button", "custom": "\r\nconst submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\nconst filteredData = _.pick(data, data.deraUtilKeys);\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Approved'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Approved'\r\n }); \r\n});", "input": true, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", + "modalEdit": false, "dataGridLabel": true, "labelPosition": "top", + "description": "", "errorLabel": "", + "tooltip": "", "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", @@ -430,6 +421,7 @@ "widget": { "type": "input" }, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -439,13 +431,32 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "ex948n9" + "size": "md", + "leftIcon": "", + "rightIcon": "", + "block": false, + "disableOnInvalid": false, + "theme": "primary", + "id": "e6rusls" } ], "width": 3, @@ -462,41 +473,10 @@ "action": "custom", "showValidations": false, "theme": "warning", - "size": "md", - "block": false, - "leftIcon": "", - "rightIcon": "", - "shortcut": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "disableOnInvalid": false, - "hidden": false, - "autofocus": false, "disabled": true, "tableView": false, - "modalEdit": false, "key": "needsMoreInfo", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\nconst taskUrl = window.location.pathname.split('/');\r\nconst taskId = taskUrl[2];\r\nconst authToken = localStorage.getItem(\"authToken\");\r\nconst bpmUrl = localStorage.getItem(\"bpmApiUrl\");\r\nvar reqUrl = bpmUrl + \"/task/\" + taskId + \"/variables\";\r\n\r\n\r\n getData(reqUrl, authToken).then((response) => {\r\n \r\n\t if(roles.includes(\"formsflow-reviewer\")) {\r\n \tvar applicationStatus = response.applicationStatus ? response.applicationStatus.value : '';\r\n\tvar isResubmitted = response.isSrcrResubmitted ? response.isSrcrResubmitted.value : false;\r\n \t show = true;\r\n \t \r\n\r\n \t\t\r\n\t if (isResubmitted) {\r\n\t component.disabled = true;\r\n\t component.description = 'Disabled since SRCR resubmission in progress';\r\n\t instance.triggerRedraw();\r\n\t } else {\r\n\t component.description = '';\r\n\t component.disabled = false;\r\n\t instance.triggerRedraw();\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n \t\tshow = false;\r\n\t }\r\n });\r\n\r\n\r\nasync function getData(reqUrl, authToken) {\r\n const response = await fetch(reqUrl, {\r\n method: \"GET\",\r\n headers: {\r\n \"Content-type\": \"application/json\",\r\n Accept: \"application/json\",\r\n Authorization: \"Bearer \" + authToken,\r\n },\r\n });\r\n const data = await response.json();\r\n return data;\r\n}", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "button", "custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;+submissionId;\r\nconst filteredData = _.pick(data, data.deraUtilKeys);\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Returned'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Returned'\r\n }); \r\n});", "input": true, @@ -504,18 +484,25 @@ "keyModified": true, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", + "modalEdit": false, "dataGridLabel": true, "labelPosition": "top", + "description": "", "errorLabel": "", + "tooltip": "", "hideLabel": false, + "tabindex": "", + "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", @@ -523,6 +510,7 @@ "widget": { "type": "input" }, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -532,13 +520,31 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "eozzsx" + "size": "md", + "leftIcon": "", + "rightIcon": "", + "block": false, + "disableOnInvalid": false, + "id": "er4piec" } ], "size": "md", @@ -555,59 +561,35 @@ "action": "custom", "showValidations": false, "theme": "danger", - "size": "md", - "block": false, - "leftIcon": "", - "rightIcon": "", - "shortcut": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "disableOnInvalid": false, - "hidden": false, - "autofocus": false, - "disabled": false, "tableView": false, - "modalEdit": false, "key": "rejected", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer\") && \r\n!(roles.includes(\"formsflow-reviewer/csap\") ||\r\nroles.includes(\"formsflow-reviewer/csap-society\"))) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "button", "custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\nconst filteredData = _.pick(data, data.deraUtilKeys);\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Rejected'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Rejected'\r\n }); \r\n});\r\n", "input": true, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", + "modalEdit": false, "dataGridLabel": true, "labelPosition": "top", + "description": "", "errorLabel": "", + "tooltip": "", "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", @@ -615,6 +597,7 @@ "widget": { "type": "input" }, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -624,13 +607,31 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "e44vww" + "size": "md", + "leftIcon": "", + "rightIcon": "", + "block": false, + "disableOnInvalid": false, + "id": "ezt2gnf" } ], "size": "md", @@ -705,38 +706,31 @@ "tree": false, "lazyLoad": false, "autoAdjust": false, - "id": "evh2su" + "id": "e6e8v9c" } ], "keyModified": true, "placeholder": "", "prefix": "", - "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, - "hidden": false, "clearOnHide": false, "refreshOn": "", "redrawOn": "", - "modalEdit": false, "dataGridLabel": false, "labelPosition": "top", "description": "", "errorLabel": "", - "tooltip": "", - "tabindex": "", - "disabled": false, "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", "calculateServer": false, "widget": null, - "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -746,38 +740,50 @@ "multiple": false, "unique": false }, - "conditional": { - "show": null, - "when": null, - "eq": "" - }, - "overlay": { - "style": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, - "properties": {}, "allowMultipleMasks": false, "addons": [], "tree": false, "lazyLoad": false, - "theme": "default", - "breadcrumb": "default", - "id": "e2pmea" + "id": "ek6yob" }, { "title": "Reviewer Actions", + "theme": "default", + "tooltip": "", + "customClass": "", "collapsible": false, - "key": "cssaBundleActions", - "customConditional": "\r\nconst UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") ||\r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\")|| \r\nroles.includes(\"formsflow-reviewer/caseworker\")|| \r\nroles.includes(\"formsflow-reviewer/sdm\")) {\r\n if (data.riskclassification === \"exempt\"){\r\n show = true;\r\n } else {\r\n show = false;\r\n }\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "deraBundleActions", + "tags": [], + "properties": {}, + "customConditional": "\r\nconst UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-client\") || \r\nroles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") ||\r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\")|| \r\nroles.includes(\"formsflow-reviewer/caseworker\")|| \r\nroles.includes(\"formsflow-reviewer/sdm\"))\r\n{\r\n show = false;\r\n}", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "type": "panel", "label": "Panel", + "breadcrumb": "default", + "tabindex": "", "input": false, "tableView": false, "components": [ @@ -861,7 +867,7 @@ "block": false, "disableOnInvalid": false, "theme": "primary", - "id": "eh2ix9" + "id": "etca1sw" } ], "width": 3, @@ -877,61 +883,36 @@ "label": "Next Reviewer", "action": "custom", "showValidations": false, - "theme": "primary", - "size": "md", - "block": false, - "leftIcon": "", - "rightIcon": "", - "shortcut": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "disableOnInvalid": false, - "hidden": false, - "autofocus": false, - "disabled": false, "tableView": false, - "modalEdit": false, "key": "sendBundleToNextReviewer", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, "customConditional": "\r\nconst UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n\r\n\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\n\r\nif(roles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") || \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") || \r\nroles.includes(\"formsflow-reviewer/caseworker\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "button", "custom": "form.emit('customEvent', {\n type: \"actionComplete\", \n component: component,\n actionType:'Accepted'\n });", "input": true, "keyModified": true, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", + "modalEdit": false, "dataGridLabel": true, "labelPosition": "top", + "description": "", "errorLabel": "", + "tooltip": "", "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", @@ -939,6 +920,7 @@ "widget": { "type": "input" }, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -948,13 +930,32 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "em2s64" + "size": "md", + "leftIcon": "", + "rightIcon": "", + "block": false, + "disableOnInvalid": false, + "theme": "primary", + "id": "ey4wl2h" }, { "label": "Approved", @@ -1031,7 +1032,7 @@ "block": false, "disableOnInvalid": false, "theme": "primary", - "id": "e2wcgt7" + "id": "eqnqvd6" } ], "width": 3, @@ -1118,7 +1119,7 @@ "rightIcon": "", "block": false, "disableOnInvalid": false, - "id": "e0z6swf" + "id": "ejbws4" } ], "size": "md", @@ -1205,7 +1206,7 @@ "rightIcon": "", "block": false, "disableOnInvalid": false, - "id": "eq7crx" + "id": "ee403b" } ], "size": "md", @@ -1280,39 +1281,31 @@ "tree": false, "lazyLoad": false, "autoAdjust": false, - "id": "etzdd6x" + "id": "ei1ile" } ], "keyModified": true, "placeholder": "", "prefix": "", - "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, - "hidden": false, "clearOnHide": false, "refreshOn": "", "redrawOn": "", - "modalEdit": false, "dataGridLabel": false, "labelPosition": "top", "description": "", "errorLabel": "", - "tooltip": "", - "hideLabel": false, - "tabindex": "", - "disabled": false, "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", "calculateServer": false, "widget": null, - "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -1322,38 +1315,50 @@ "multiple": false, "unique": false }, - "conditional": { - "show": null, - "when": null, - "eq": "" - }, - "overlay": { - "style": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, - "properties": {}, "allowMultipleMasks": false, "addons": [], "tree": false, "lazyLoad": false, - "theme": "default", - "breadcrumb": "default", - "id": "e7ancpq" + "id": "eppmkgr" }, { "title": "Assign Reviewers", + "theme": "default", + "tooltip": "", + "customClass": "", "collapsible": true, - "key": "cssaReviewerAssignment", - "customConditional": " if (data.riskclassification === \"exempt\"){\r\n const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n const roles = UserDetails[\"role\"];\r\n \r\n if(roles.includes(\"formsflow-reviewer/cssa-manager\")) {\r\n show = true;\r\n }\r\n else\r\n {\r\n show = false;\r\n }\r\n} else {\r\n show = false;\r\n}", + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "deraReviewerAssignment", + "tags": [], + "properties": {}, + "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n \r\nif (data.riskclassification === \"exempt\" ||\r\nroles.includes(\"formsflow-client\")||\r\nroles.includes(\"formsflow-reviewer/cssa-team\")||\r\nroles.includes(\"formsflow-reviewer/cssa-manager\") ||\r\nroles.includes(\"formsflow-reviewer/caseworker\") ||\r\nroles.includes(\"formsflow-reviewer/sdm\")\r\n){\r\n show = false;\r\n}", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "type": "panel", "label": "", + "breadcrumb": "default", + "tabindex": "", "collapsed": false, "input": false, "tableView": false, @@ -1365,31 +1370,10 @@ "components": [ { "label": "Select SDM", - "labelPosition": "top", "widget": "choicesjs", - "placeholder": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "hidden": false, - "hideLabel": false, - "uniqueOptions": false, - "autofocus": false, - "disabled": false, "tableView": true, - "modalEdit": false, - "multiple": false, "dataSrc": "url", "data": { - "values": [ - { - "label": "", - "value": "" - } - ], - "resource": "", - "json": "", "url": "{{localStorage.getItem('formsflow.ai.api.url')}}/user?memberOfGroup=formsflow/formsflow-reviewer/sdm", "headers": [ { @@ -1405,96 +1389,107 @@ "value": "application/json" } ], + "values": [ + { + "label": "", + "value": "" + } + ], + "json": "", + "resource": "", "custom": "" }, "dataType": "string", - "idPath": "id", "valueProperty": "username", "template": "{{ item.lastName }}, {{ item.firstName }}", - "refreshOn": "", - "refreshOnBlur": "", - "clearOnRefresh": false, - "searchEnabled": true, - "selectThreshold": 0.3, - "readOnlyValue": false, - "customOptions": {}, - "useExactSearch": false, - "persistent": true, + "key": "selectDeraSdm", + "type": "select", + "selectValues": "data", + "disableLimit": false, + "input": true, + "keyModified": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, "protected": false, - "dbIndex": false, - "encrypted": false, + "unique": false, + "persistent": true, + "hidden": false, "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, "customDefaultValue": "", "calculateValue": "", "calculateServer": false, - "allowCalculateOverride": false, + "attributes": {}, "validateOn": "change", "validate": { "required": false, - "onlyAvailableItems": false, - "customMessage": "", "custom": "", "customPrivate": false, - "json": "", "strictDateValidation": false, "multiple": false, - "unique": false + "unique": false, + "onlyAvailableItems": false }, - "unique": false, - "errorLabel": "", - "errors": "", - "key": "selectDeraSdm", - "tags": [], - "properties": {}, "conditional": { "show": null, "when": null, - "eq": "", - "json": "" + "eq": "" }, - "customConditional": "", - "logic": [], - "attributes": {}, "overlay": { "style": "", - "page": "", "left": "", "top": "", "width": "", "height": "" }, - "type": "select", - "indexeddb": { - "filter": {} - }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "idPath": "id", + "clearOnRefresh": false, + "limit": 100, "lazyLoad": true, - "selectValues": "data", - "selectFields": "", - "disableLimit": false, - "searchField": "", + "filter": "", + "searchEnabled": true, "searchDebounce": 0.3, + "searchField": "", "minSearch": 0, - "filter": "", - "limit": 100, + "readOnlyValue": false, "authenticate": false, "ignoreCache": false, - "redrawOn": "", - "input": true, - "keyModified": true, - "prefix": "", - "suffix": "", - "dataGridLabel": false, - "showCharCount": false, - "showWordCount": false, - "allowMultipleMasks": false, - "addons": [], + "selectFields": "", + "selectThreshold": 0.3, + "uniqueOptions": false, "fuseOptions": { "include": "score", "threshold": 0.3 }, - "id": "efplfsc", - "defaultValue": "", - "sort": "" + "indexeddb": { + "filter": {} + }, + "customOptions": {}, + "useExactSearch": false, + "id": "ee2k2k" } ], "width": 4, @@ -1508,31 +1503,10 @@ "components": [ { "label": "Select Caseworker", - "labelPosition": "top", "widget": "choicesjs", - "placeholder": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "hidden": false, - "hideLabel": false, - "uniqueOptions": false, - "autofocus": false, - "disabled": false, "tableView": true, - "modalEdit": false, - "multiple": false, "dataSrc": "url", "data": { - "values": [ - { - "label": "", - "value": "" - } - ], - "resource": "", - "json": "", "url": "{{localStorage.getItem('formsflow.ai.api.url')}}/user?memberOfGroup=formsflow/formsflow-reviewer/caseworker", "headers": [ { @@ -1548,96 +1522,108 @@ "value": "application/json" } ], + "values": [ + { + "label": "", + "value": "" + } + ], + "json": "", + "resource": "", "custom": "" }, "dataType": "string", - "idPath": "id", "valueProperty": "username", "template": "{{ item.lastName }}, {{ item.firstName }}", - "refreshOn": "", - "refreshOnBlur": "", - "clearOnRefresh": false, - "searchEnabled": true, - "selectThreshold": 0.3, - "readOnlyValue": false, - "customOptions": {}, - "useExactSearch": false, - "persistent": true, + "key": "selectDeraCaseworker", + "customConditional": "if (data.typeOfReview==='applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc')\n{\n show = false;\n}\nelse {\n show = true;\n}", + "type": "select", + "selectValues": "data", + "disableLimit": false, + "input": true, + "keyModified": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, "protected": false, - "dbIndex": false, - "encrypted": false, + "unique": false, + "persistent": true, + "hidden": false, "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, "customDefaultValue": "", "calculateValue": "", "calculateServer": false, - "allowCalculateOverride": false, + "attributes": {}, "validateOn": "change", "validate": { "required": false, - "onlyAvailableItems": false, - "customMessage": "", "custom": "", "customPrivate": false, - "json": "", "strictDateValidation": false, "multiple": false, - "unique": false + "unique": false, + "onlyAvailableItems": false }, - "unique": false, - "errorLabel": "", - "errors": "", - "key": "selectDeraCaseworker", - "tags": [], - "properties": {}, "conditional": { "show": null, "when": null, - "eq": "", - "json": "" + "eq": "" }, - "customConditional": "if (data.typeOfReview==='applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc')\n{\n show = false;\n}\nelse {\n show = true;\n}", - "logic": [], - "attributes": {}, "overlay": { "style": "", - "page": "", "left": "", "top": "", "width": "", "height": "" }, - "type": "select", - "indexeddb": { - "filter": {} - }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "idPath": "id", + "clearOnRefresh": false, + "limit": 100, "lazyLoad": true, - "selectValues": "data", - "selectFields": "", - "disableLimit": false, - "searchField": "", + "filter": "", + "searchEnabled": true, "searchDebounce": 0.3, + "searchField": "", "minSearch": 0, - "filter": "", - "limit": 100, + "readOnlyValue": false, "authenticate": false, "ignoreCache": false, - "redrawOn": "", - "input": true, - "keyModified": true, - "prefix": "", - "suffix": "", - "dataGridLabel": false, - "showCharCount": false, - "showWordCount": false, - "allowMultipleMasks": false, - "addons": [], + "selectFields": "", + "selectThreshold": 0.3, + "uniqueOptions": false, "fuseOptions": { "include": "score", "threshold": 0.3 }, - "id": "ead6qr", - "defaultValue": "", - "sort": "" + "indexeddb": { + "filter": {} + }, + "customOptions": {}, + "useExactSearch": false, + "id": "e51zw6d" } ], "width": 4, @@ -1721,39 +1707,31 @@ "tree": false, "lazyLoad": false, "autoAdjust": false, - "id": "ek5j0sc" + "id": "ecvc539" } ], "keyModified": true, "placeholder": "", "prefix": "", - "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, - "hidden": false, "clearOnHide": false, "refreshOn": "", "redrawOn": "", - "modalEdit": false, "dataGridLabel": false, "labelPosition": "top", "description": "", "errorLabel": "", - "tooltip": "", - "hideLabel": false, - "tabindex": "", - "disabled": false, "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", "calculateServer": false, "widget": null, - "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -1763,30 +1741,15 @@ "multiple": false, "unique": false }, - "conditional": { - "show": null, - "when": null, - "eq": "" - }, - "overlay": { - "style": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, - "properties": {}, "allowMultipleMasks": false, "addons": [], "tree": false, "lazyLoad": false, - "theme": "default", - "breadcrumb": "default", - "id": "e48c647" + "id": "ehgpjvr" }, { "label": "Notes", @@ -5582,7 +5545,7 @@ "attributes": {}, "components": [ { - "id": "eh8z2bfa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "eh8z2bfa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "key": "panel", "tags": [], "tree": false, @@ -36178,7 +36141,7 @@ } ], "collapsible": false, - "id": "eof7940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "eof7940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", diff --git a/forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json b/forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json index 7cc70009..44fb5289 100644 --- a/forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json +++ b/forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json @@ -2763,50 +2763,10 @@ "breadcrumb": "default", "tabindex": "", "input": false, - "placeholder": "", - "prefix": "", - "suffix": "", - "multiple": false, - "defaultValue": null, - "protected": false, - "unique": false, - "persistent": false, - "clearOnHide": false, - "refreshOn": "", - "redrawOn": "", "tableView": false, - "dataGridLabel": false, - "labelPosition": "top", - "description": "", - "errorLabel": "", - "autofocus": false, - "dbIndex": false, - "customDefaultValue": "", - "calculateValue": "", - "calculateServer": false, - "widget": null, - "validateOn": "change", - "validate": { - "required": false, - "custom": "", - "customPrivate": false, - "strictDateValidation": false, - "multiple": false, - "unique": false - }, - "allowCalculateOverride": false, - "encrypted": false, - "showCharCount": false, - "showWordCount": false, - "allowMultipleMasks": false, - "addons": [], - "tree": false, - "lazyLoad": false, "components": [ { "label": "HTML", - "tag": "p", - "className": "", "attrs": [ { "attr": "", @@ -2815,43 +2775,24 @@ ], "content": "

\nCollection Notice for Environmental Protection Platform:
\nYour personal information is collected under 26(c) of the Freedom of Information and Protection of Privacy Act for the purpose of accessing services of the Environmental Protection Division. If you have any questions about the collection of your information, please contact Site Remediation Services at site@gov.bc.ca

\nCollection Notice for Site Remediation Forms:
\nYour personal information is collected under 26(c) of the Freedom of Information and Protection of Privacy Act for the purpose of receiving site remediation services. If you have any questions about the collection of your information, please contact Site Remediation Services at site@gov.bc.ca\n

", "refreshOnChange": false, - "customClass": "", - "hidden": false, - "modalEdit": false, "key": "html", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, - "customConditional": "", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "htmlelement", "input": false, "tableView": false, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", + "modalEdit": false, "dataGridLabel": false, "labelPosition": "top", "description": "", @@ -2866,6 +2807,7 @@ "calculateValue": "", "calculateServer": false, "widget": null, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -2875,16 +2817,68 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "ef9l67" + "tag": "p", + "id": "e39btfg" } ], - "id": "e37ho8k" + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "eieh49c" }, { "id": "ecrddmq", @@ -5154,7 +5148,7 @@ "attributes": {}, "components": [ { - "id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "key": "spropertyOwnerAndOrOperator", "tree": false, "type": "panel", @@ -14566,7 +14560,7 @@ "attributes": {}, "components": [ { - "id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "key": "exposurePathwayQuestionnaireAffectedParcel", "tree": false, "type": "panel", @@ -18509,7 +18503,7 @@ } ], "collapsible": false, - "id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", diff --git a/forms-flow-ai/epd-forms/bundling/Summary of Site Condition.json b/forms-flow-ai/epd-forms/bundling/Summary of Site Condition.json index 9007961c..3dd83784 100644 --- a/forms-flow-ai/epd-forms/bundling/Summary of Site Condition.json +++ b/forms-flow-ai/epd-forms/bundling/Summary of Site Condition.json @@ -23,7 +23,7 @@ "key": "formActions", "tags": [], "properties": {}, - "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails?UserDetails[\"role\"]:[];\r\nconsole.log('data-----', data);\r\nif(!UserDetails){\r\n show = false;\r\n}\r\nelse if(roles.includes(\"formsflow-client\") || \r\nroles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\")|| \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") ||\r\nroles.includes(\"formsflow-reviewer/formsflow-client-reviewer\")) {\r\n show = false;\r\n}\r\nelse\r\n{\r\n if (data.riskclassification === \"exempt\" && !(data.SoSC || data.certificationdocumentradioGroup.determinationOfContaminatedSite \r\n|| data.certificationdocumentradioGroup.approvalInPrinciple || data.certificationdocumentradioGroup.certificateOfCompliance)) {\r\n show = false;\r\n } else {\r\n show = true;\r\n }\r\n}", + "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails?UserDetails[\"role\"]:[];\r\nconst isSoscAvailable = (data.submissionTypeTwo ? data.submissionTypeTwo.reportsSubmitted : false) || (data.applicationsrequested ? data.applicationsrequested.siteReclassification ||data.applicationsrequested.approvalOfBackgroundConcentrations : false) || (data.certificationdocumentradioGroup ? data.certificationdocumentradioGroup.determinationOfContaminatedSite || data.certificationdocumentradioGroup.approvalInPrinciple || data.certificationdocumentradioGroup.certificateOfCompliance : false) || (data.deraStatus !== null || data.deraStatus !== undefined) ? true : false;\r\nconsole.log('isSoscAvailable-----',isSoscAvailable);\r\nif(!UserDetails){\r\n show = false;\r\n}\r\nelse if(roles.includes(\"formsflow-client\") || \r\nroles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\")|| \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") ||\r\nroles.includes(\"formsflow-reviewer/formsflow-client-reviewer\")) {\r\n show = false;\r\n}\r\nelse\r\n{\r\n if (data.riskclassification === \"exempt\" && !(isSoscAvailable)) {\r\n show = false;\r\n } else {\r\n show = true;\r\n }\r\n}", "conditional": { "json": "", "show": null, @@ -56,60 +56,35 @@ "label": "Previous Reviewer", "action": "custom", "showValidations": false, - "theme": "primary", - "size": "md", - "block": false, - "leftIcon": "", - "rightIcon": "", - "shortcut": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "disableOnInvalid": false, - "hidden": false, - "autofocus": false, - "disabled": false, "tableView": false, - "modalEdit": false, "key": "sendToPreviousReviewer", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer\") && \r\n!roles.includes(\"formsflow-reviewer/caseworker\") &&\r\n!(roles.includes(\"formsflow-reviewer/sdm\") && data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n if (roles.includes(\"formsflow-reviewer/caseworker\") &&\r\n roles.includes(\"formsflow-reviewer/sdm\") &&\r\n data.soscBundleStatus === \"soscCaseworkerAccepted\")\r\n show = true;\r\n else\r\n show = false;\r\n}", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "button", "custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\nconst filteredData = _.pick(data, data.soscUtilKeys);\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Recheck'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Recheck'\r\n }); \r\n});", "input": true, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", + "modalEdit": false, "dataGridLabel": true, "labelPosition": "top", + "description": "", "errorLabel": "", + "tooltip": "", "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", @@ -117,6 +92,7 @@ "widget": { "type": "input" }, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -126,13 +102,32 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "et6hmui" + "size": "md", + "leftIcon": "", + "rightIcon": "", + "block": false, + "disableOnInvalid": false, + "theme": "primary", + "id": "etk0doi" } ], "width": 3, @@ -148,61 +143,36 @@ "label": "Next Reviewer", "action": "custom", "showValidations": false, - "theme": "primary", - "size": "md", - "block": false, - "leftIcon": "", - "rightIcon": "", - "shortcut": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "disableOnInvalid": false, - "hidden": false, - "autofocus": false, - "disabled": false, "tableView": false, - "modalEdit": false, "key": "sendToNextReviewer", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/caseworker\")) {\r\n\tif((data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" && data.bundleStatus === 'cssaMgrAccepted')||\r\n\tdata.soscBundleStatus === 'soscCaseworkerAccepted')\r\n \t \tshow = false;\r\n\telse\r\n\t\tshow = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "button", "custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\nconst filteredData = _.pick(data, data.soscUtilKeys);\r\n\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Accepted'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Accepted'\r\n }); \r\n});", "input": true, "keyModified": true, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", + "modalEdit": false, "dataGridLabel": true, "labelPosition": "top", + "description": "", "errorLabel": "", + "tooltip": "", "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", @@ -210,6 +180,7 @@ "widget": { "type": "input" }, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -219,13 +190,32 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "ejbnyn7" + "size": "md", + "leftIcon": "", + "rightIcon": "", + "block": false, + "disableOnInvalid": false, + "theme": "primary", + "id": "efn2hwmj" }, { "label": "Approved", @@ -307,7 +297,7 @@ "showWordCount": false, "allowMultipleMasks": false, "addons": [], - "id": "eajutmg" + "id": "eqdfrab" } ], "width": 3, @@ -394,7 +384,7 @@ "rightIcon": "", "block": false, "disableOnInvalid": false, - "id": "euwstpw" + "id": "eewetd5" } ], "size": "md", @@ -481,7 +471,7 @@ "rightIcon": "", "block": false, "disableOnInvalid": false, - "id": "enfhldh" + "id": "esoctjq" } ], "size": "md", @@ -556,7 +546,7 @@ "tree": false, "lazyLoad": false, "autoAdjust": false, - "id": "ewhwp1e" + "id": "e3p3nf" } ], "keyModified": true, @@ -598,7 +588,7 @@ "addons": [], "tree": false, "lazyLoad": false, - "id": "eoq8qxp" + "id": "e07qwtb" }, { "title": "Reviewer Actions", @@ -613,7 +603,7 @@ "key": "soscBundleActions", "tags": [], "properties": {}, - "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") ||\r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\")) {\r\n if (data.riskclassification === \"exempt\"){\r\n show = true;\r\n } else {\r\n show = false;\r\n }\r\n} else if (roles.includes(\"formsflow-reviewer/caseworker\")|| \r\nroles.includes(\"formsflow-reviewer/sdm\")) {\r\n if (data.riskclassification === \"exempt\" && !(data.SoSC || data.certificationdocumentradioGroup.determinationOfContaminatedSite \r\n|| data.certificationdocumentradioGroup.approvalInPrinciple || data.certificationdocumentradioGroup.certificateOfCompliance)){\r\n show = true;\r\n } else {\r\n show = false;\r\n }\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", + "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\nconst isSoscAvailable = (data.submissionTypeTwo ? data.submissionTypeTwo.reportsSubmitted : false) || (data.applicationsrequested ? data.applicationsrequested.siteReclassification ||data.applicationsrequested.approvalOfBackgroundConcentrations : false) || (data.certificationdocumentradioGroup ? data.certificationdocumentradioGroup.determinationOfContaminatedSite || data.certificationdocumentradioGroup.approvalInPrinciple || data.certificationdocumentradioGroup.certificateOfCompliance : false) || (data.deraStatus !== null || data.deraStatus !== undefined) ? true : false;\r\n\r\nif(roles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") ||\r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\")) {\r\n if (data.riskclassification === \"exempt\"){\r\n show = true;\r\n } else {\r\n show = false;\r\n }\r\n} else if (roles.includes(\"formsflow-reviewer/caseworker\")|| \r\nroles.includes(\"formsflow-reviewer/sdm\")) {\r\n if (data.riskclassification === \"exempt\" && !(isSoscAvailable)){\r\n if (data.deraStatus)\r\n show = false;\r\n else\r\n show = true;\r\n } else {\r\n show = false;\r\n }\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", "conditional": { "json": "", "show": null, @@ -717,7 +707,7 @@ "block": false, "disableOnInvalid": false, "theme": "primary", - "id": "eppsbjd" + "id": "eweuy80g" } ], "width": 3, @@ -733,61 +723,36 @@ "label": "Next Reviewer", "action": "custom", "showValidations": false, - "theme": "primary", - "size": "md", - "block": false, - "leftIcon": "", - "rightIcon": "", - "shortcut": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "disableOnInvalid": false, - "hidden": false, - "autofocus": false, - "disabled": false, "tableView": false, - "modalEdit": false, "key": "sendBundleToNextReviewer", - "tags": [], - "properties": {}, - "conditional": { - "show": null, - "when": null, - "eq": "", - "json": "" - }, "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\nif(roles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") || \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") || \r\nroles.includes(\"formsflow-reviewer/caseworker\") || \r\nroles.includes(\"formsflow-reviewer/sdm\")) \r\n{\r\n if(data.bundleStatus === 'cssaCaseworkerAccepted' ||\r\n (data.bundleStatus === 'cssaMgrAccepted' && \r\n data.typeOfReview === 'applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc'))\r\n show = false;\r\n else\r\n show = true;\r\n}\r\nelse\r\n{\r\n if(data.bundleStatus === 'cssaMgrAccepted')\r\n show = true;\r\n else\r\n show = false;\r\n}", - "logic": [], - "attributes": {}, - "overlay": { - "style": "", - "page": "", - "left": "", - "top": "", - "width": "", - "height": "" - }, "type": "button", "custom": "form.emit('customEvent', {\n type: \"actionComplete\", \n component: component,\n actionType:'Accepted'\n });", "input": true, "keyModified": true, "placeholder": "", "prefix": "", + "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, + "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", + "modalEdit": false, "dataGridLabel": true, "labelPosition": "top", + "description": "", "errorLabel": "", + "tooltip": "", "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", @@ -795,6 +760,7 @@ "widget": { "type": "input" }, + "attributes": {}, "validateOn": "change", "validate": { "required": false, @@ -804,13 +770,32 @@ "multiple": false, "unique": false }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, "allowCalculateOverride": false, "encrypted": false, "showCharCount": false, "showWordCount": false, + "properties": {}, "allowMultipleMasks": false, "addons": [], - "id": "ez5eeme" + "size": "md", + "leftIcon": "", + "rightIcon": "", + "block": false, + "disableOnInvalid": false, + "theme": "primary", + "id": "e90fzmc" }, { "label": "Approved", @@ -887,7 +872,7 @@ "block": false, "disableOnInvalid": false, "theme": "primary", - "id": "ewrzali" + "id": "e2imk9" } ], "width": 3, @@ -974,7 +959,7 @@ "rightIcon": "", "block": false, "disableOnInvalid": false, - "id": "eidbuob" + "id": "e5wyb2q" } ], "size": "md", @@ -1061,7 +1046,7 @@ "rightIcon": "", "block": false, "disableOnInvalid": false, - "id": "eyj3ukl" + "id": "er5g2kk" } ], "size": "md", @@ -1136,7 +1121,7 @@ "tree": false, "lazyLoad": false, "autoAdjust": false, - "id": "esyinhy" + "id": "e9hv797" } ], "keyModified": true, @@ -1178,7 +1163,7 @@ "addons": [], "tree": false, "lazyLoad": false, - "id": "excfqro" + "id": "e3ee7vn" }, { "title": "Assign Reviewers", @@ -1193,7 +1178,7 @@ "key": "sdmAssignment", "tags": [], "properties": {}, - "customConditional": " if (data.riskclassification === \"exempt\" && (data.SoSC || \r\n data.certificationdocumentradioGroup.determinationOfContaminatedSite ||\r\n data.certificationdocumentradioGroup.approvalInPrinciple ||\r\n data.certificationdocumentradioGroup.certificateOfCompliance \r\n //|| data.applicationsrequested.553\r\n )){\r\n const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n const roles = UserDetails[\"role\"];\r\n \r\n if(roles.includes(\"formsflow-reviewer/cssa-manager\")) {\r\n show = true;\r\n }\r\n else\r\n {\r\n show = false;\r\n }\r\n} else {\r\n show = false;\r\n}", + "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\nconst isSoscAvailable = (data.submissionTypeTwo ? data.submissionTypeTwo.reportsSubmitted : false) || (data.applicationsrequested ? data.applicationsrequested.siteReclassification ||data.applicationsrequested.approvalOfBackgroundConcentrations : false) || (data.certificationdocumentradioGroup ? data.certificationdocumentradioGroup.determinationOfContaminatedSite || data.certificationdocumentradioGroup.approvalInPrinciple || data.certificationdocumentradioGroup.certificateOfCompliance : false) || (data.deraStatus !== null || data.deraStatus !== undefined) ? true : false;\r\n\r\n if(roles.includes(\"formsflow-client\") ||\r\n roles.includes(\"formsflow-reviewer/cssa-team\")||\r\n roles.includes(\"formsflow-reviewer/caseworker\")||\r\n roles.includes(\"formsflow-reviewer/sdm\")) {\r\n show = false;\r\n }\r\n else if (data.riskclassification === \"exempt\" && isSoscAvailable){\r\n if(roles.includes(\"formsflow-reviewer/cssa-manager\")) {\r\n show = true;\r\n }\r\n else\r\n {\r\n show = false;\r\n }\r\n} else {\r\n show = false;\r\n}", "conditional": { "json": "", "show": null, @@ -1225,31 +1210,10 @@ "components": [ { "label": "Select SDM", - "labelPosition": "top", "widget": "choicesjs", - "placeholder": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "hidden": false, - "hideLabel": false, - "uniqueOptions": false, - "autofocus": false, - "disabled": false, "tableView": true, - "modalEdit": false, - "multiple": false, "dataSrc": "url", "data": { - "values": [ - { - "label": "", - "value": "" - } - ], - "resource": "", - "json": "", "url": "{{localStorage.getItem('formsflow.ai.api.url')}}/user?memberOfGroup=formsflow/formsflow-reviewer/sdm", "headers": [ { @@ -1265,96 +1229,107 @@ "value": "application/json" } ], + "values": [ + { + "label": "", + "value": "" + } + ], + "json": "", + "resource": "", "custom": "" }, "dataType": "string", - "idPath": "id", "valueProperty": "username", "template": "{{ item.lastName }}, {{ item.firstName }}", - "refreshOn": "", - "refreshOnBlur": "", - "clearOnRefresh": false, - "searchEnabled": true, - "selectThreshold": 0.3, - "readOnlyValue": false, - "customOptions": {}, - "useExactSearch": false, - "persistent": true, + "key": "selectSoscSdm", + "type": "select", + "selectValues": "data", + "disableLimit": false, + "input": true, + "keyModified": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, "protected": false, - "dbIndex": false, - "encrypted": false, + "unique": false, + "persistent": true, + "hidden": false, "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, "customDefaultValue": "", "calculateValue": "", "calculateServer": false, - "allowCalculateOverride": false, + "attributes": {}, "validateOn": "change", "validate": { "required": false, - "onlyAvailableItems": false, - "customMessage": "", "custom": "", "customPrivate": false, - "json": "", "strictDateValidation": false, "multiple": false, - "unique": false + "unique": false, + "onlyAvailableItems": false }, - "unique": false, - "errorLabel": "", - "errors": "", - "key": "selectSoscSdm", - "tags": [], - "properties": {}, "conditional": { "show": null, "when": null, - "eq": "", - "json": "" + "eq": "" }, - "customConditional": "", - "logic": [], - "attributes": {}, "overlay": { "style": "", - "page": "", "left": "", "top": "", "width": "", "height": "" }, - "type": "select", - "indexeddb": { - "filter": {} - }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "idPath": "id", + "clearOnRefresh": false, + "limit": 100, "lazyLoad": true, - "selectValues": "data", - "selectFields": "", - "disableLimit": false, - "searchField": "", + "filter": "", + "searchEnabled": true, "searchDebounce": 0.3, + "searchField": "", "minSearch": 0, - "filter": "", - "limit": 100, + "readOnlyValue": false, "authenticate": false, "ignoreCache": false, - "redrawOn": "", - "input": true, - "keyModified": true, - "prefix": "", - "suffix": "", - "dataGridLabel": false, - "showCharCount": false, - "showWordCount": false, - "allowMultipleMasks": false, - "addons": [], + "selectFields": "", + "selectThreshold": 0.3, + "uniqueOptions": false, "fuseOptions": { "include": "score", "threshold": 0.3 }, - "id": "eu2uncg", - "defaultValue": "", - "sort": "" + "indexeddb": { + "filter": {} + }, + "customOptions": {}, + "useExactSearch": false, + "id": "el2pbj" } ], "width": 4, @@ -1368,31 +1343,10 @@ "components": [ { "label": "Select Caseworker", - "labelPosition": "top", "widget": "choicesjs", - "placeholder": "", - "description": "", - "tooltip": "", - "customClass": "", - "tabindex": "", - "hidden": false, - "hideLabel": false, - "uniqueOptions": false, - "autofocus": false, - "disabled": false, "tableView": true, - "modalEdit": false, - "multiple": false, "dataSrc": "url", "data": { - "values": [ - { - "label": "", - "value": "" - } - ], - "resource": "", - "json": "", "url": "{{localStorage.getItem('formsflow.ai.api.url')}}/user?memberOfGroup=formsflow/formsflow-reviewer/caseworker", "headers": [ { @@ -1408,96 +1362,107 @@ "value": "application/json" } ], + "values": [ + { + "label": "", + "value": "" + } + ], + "json": "", + "resource": "", "custom": "" }, "dataType": "string", - "idPath": "id", "valueProperty": "username", "template": "{{ item.lastName }}, {{ item.firstName }}", - "refreshOn": "", - "refreshOnBlur": "", - "clearOnRefresh": false, - "searchEnabled": true, - "selectThreshold": 0.3, - "readOnlyValue": false, - "customOptions": {}, - "useExactSearch": false, - "persistent": true, + "key": "selectSoscCaseworker", + "type": "select", + "selectValues": "data", + "disableLimit": false, + "input": true, + "keyModified": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, "protected": false, - "dbIndex": false, - "encrypted": false, + "unique": false, + "persistent": true, + "hidden": false, "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, "customDefaultValue": "", "calculateValue": "", "calculateServer": false, - "allowCalculateOverride": false, + "attributes": {}, "validateOn": "change", "validate": { "required": false, - "onlyAvailableItems": false, - "customMessage": "", "custom": "", "customPrivate": false, - "json": "", "strictDateValidation": false, "multiple": false, - "unique": false + "unique": false, + "onlyAvailableItems": false }, - "unique": false, - "errorLabel": "", - "errors": "", - "key": "selectSoscCaseworker", - "tags": [], - "properties": {}, "conditional": { "show": null, "when": null, - "eq": "", - "json": "" + "eq": "" }, - "customConditional": "", - "logic": [], - "attributes": {}, "overlay": { "style": "", - "page": "", "left": "", "top": "", "width": "", "height": "" }, - "type": "select", - "indexeddb": { - "filter": {} - }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "idPath": "id", + "clearOnRefresh": false, + "limit": 100, "lazyLoad": true, - "selectValues": "data", - "selectFields": "", - "disableLimit": false, - "searchField": "", + "filter": "", + "searchEnabled": true, "searchDebounce": 0.3, + "searchField": "", "minSearch": 0, - "filter": "", - "limit": 100, + "readOnlyValue": false, "authenticate": false, "ignoreCache": false, - "redrawOn": "", - "input": true, - "keyModified": true, - "prefix": "", - "suffix": "", - "dataGridLabel": false, - "showCharCount": false, - "showWordCount": false, - "allowMultipleMasks": false, - "addons": [], + "selectFields": "", + "selectThreshold": 0.3, + "uniqueOptions": false, "fuseOptions": { "include": "score", "threshold": 0.3 }, - "id": "ekgmst", - "defaultValue": "", - "sort": "" + "indexeddb": { + "filter": {} + }, + "customOptions": {}, + "useExactSearch": false, + "id": "e8wamyn" } ], "width": 4, @@ -1581,7 +1546,7 @@ "tree": false, "lazyLoad": false, "autoAdjust": false, - "id": "eslru1i" + "id": "e9igs18" } ], "keyModified": true, @@ -1623,7 +1588,7 @@ "addons": [], "tree": false, "lazyLoad": false, - "id": "enrnknh" + "id": "enevvh" }, { "label": "Notes", @@ -9358,7 +9323,7 @@ "id": "ej1mdrb" } ], - "id": "ej7yhy00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ej7yhy0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -10398,7 +10363,7 @@ "id": "eqnyhh" } ], - "id": "eskogm00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "eskogm0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -10930,7 +10895,7 @@ "addons": [], "tree": false, "lazyLoad": false, - "id": "e0cqfrg00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "id": "e0cqfrg0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } ], "layoutFixed": false, @@ -11029,7 +10994,7 @@ "input": true, "label": "Crown Land File Numbers", "tableView": true, - "id": "elizdoh00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "elizdoh0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -12477,7 +12442,7 @@ "id": "e6o3au0o" } ], - "id": "erlwlrl000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "erlwlrl00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -13510,7 +13475,7 @@ "id": "eg4rrls" } ], - "id": "ehjtgz0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ehjtgz000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -14109,7 +14074,7 @@ "addons": [], "tree": false, "lazyLoad": false, - "id": "emjblk60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "id": "emjblk6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } ], "placeholder": "", @@ -14153,7 +14118,7 @@ "input": true, "label": "Crown Land File Numbers", "tableView": true, - "id": "eh8kmqu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "eh8kmqu0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -15102,7 +15067,7 @@ "id": "edt3c4" } ], - "id": "e80y9k80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "e80y9k8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -22644,7 +22609,7 @@ "id": "es5kcwo" } ], - "id": "egwgsw00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "egwgsw0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -23441,7 +23406,7 @@ "id": "erxxdli" } ], - "id": "e09khr200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "e09khr20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -24050,7 +24015,7 @@ "id": "eu9o53q" } ], - "id": "eipn9d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "eipn9d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -24580,7 +24545,7 @@ "id": "ef617zf" } ], - "id": "ebh60il0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ebh60il000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -25351,7 +25316,7 @@ "id": "eak2oy8" } ], - "id": "evgsijp0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "evgsijp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -29425,7 +29390,7 @@ "id": "e9e5bm" } ], - "id": "e6l31cy00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "e6l31cy0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -30360,7 +30325,7 @@ "id": "ex2otfp" } ], - "id": "eauzdys0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "eauzdys000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -30980,7 +30945,7 @@ "id": "em3poaa" } ], - "id": "ey0h0vl000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ey0h0vl00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -31600,7 +31565,7 @@ "id": "ebu3n7" } ], - "id": "el9aclo00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "el9aclo0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -32220,7 +32185,7 @@ "id": "eincm2l" } ], - "id": "ehk7lsj0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ehk7lsj000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -32840,7 +32805,7 @@ "id": "elx2wbn" } ], - "id": "ejahpfm0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ejahpfm000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -33546,7 +33511,7 @@ "addons": [], "tree": false, "lazyLoad": false, - "id": "etzpsl0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "id": "etzpsl000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } ], "placeholder": "", @@ -34287,7 +34252,7 @@ "defaultValue": "" } ], - "id": "esvz3la00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "esvz3la0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -38240,7 +38205,7 @@ "id": "estazfs" } ], - "id": "ef5nwt00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ef5nwt0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -38746,7 +38711,7 @@ "id": "eq5jxk" } ], - "id": "eoq12ev0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "eoq12ev000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -39065,7 +39030,7 @@ "id": "enjn8bkh" } ], - "id": "ett43n0j000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ett43n0j00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -39384,7 +39349,7 @@ "id": "ee9w9ok" } ], - "id": "euuaaa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "euuaaa0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -39703,7 +39668,7 @@ "id": "e6efm7o" } ], - "id": "edr4h050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "edr4h05000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -41814,7 +41779,7 @@ "type": "columns", "input": false, "tableView": false, - "id": "ev4kpmc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ev4kpmc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -42611,7 +42576,7 @@ "type": "columns", "input": false, "tableView": false, - "id": "ehbime00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ehbime0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "placeholder": "", "prefix": "", "customClass": "", @@ -43519,7 +43484,7 @@ "refreshOn": "", "addons": [], "inputType": "text", - "id": "errpqaf000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "errpqaf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "defaultValue": "" } ], 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 782a57f5..6d9533f3 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 @@ -6,10 +6,11 @@ - Gateway_1lfy3cm - Activity_1qnqtak Gateway_1chdumm Activity_0vo5rls + Activity_1qnqtak + Gateway_1lfy3cm + Gateway_04645fs Activity_15e3ho6 @@ -362,7 +363,7 @@ system.out.println('srcrBundleURL'+execution.getVariable('bundleUrl')); ${action == 'Accepted'} - + Flow_0jxnrvm @@ -520,7 +521,7 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet - sosc_subforms_updated + cssa_subforms_updated Flow_0vixcwm @@ -1028,6 +1029,7 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet Flow_16ek6dk Flow_1258dam Flow_01zmsuo + Flow_045t5oq Flow_14qx1q0 @@ -1310,7 +1312,8 @@ system.out.println ("form signed");
task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','CSSA Manager');
@@ -1934,6 +1937,48 @@ system.out.println ("Sent to SDM"); Flow_0drs8s9 Flow_0i3fcvy + + + + execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); + +var system = java.lang.System; +execution.setVariable('srcrStatus','Approved'); +system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); + + + ${riskclassification == 'exempt'} + + + + + execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); + +var system = java.lang.System; +execution.setVariable('soscStatus','Approved'); +system.out.println ("soscStatus "+execution.getVariable('soscStatus') ); + + + ${isSoscAvailable==false} + + + Flow_0fa3idu + Flow_0lo7pee + Flow_1l4qibu + Flow_1nowy63 + + + Flow_1m5dyj2 + Flow_0poa227 + Flow_0lo7pee + + + + Flow_1phkhb3 + Flow_177eab8 + Flow_1l4qibu + + Flow_02ysv7t @@ -1975,52 +2020,17 @@ execution.setVariable('srcoAssignment',selectSrco); system.out.println ("srcoAssignment"+execution.getVariable('srcoAssignment')); - Flow_0gcqir8 + Flow_1dtmwt0 Flow_02ysv7t Flow_0lgivc3 - - - - execution.setVariable('srcrFormUrl', execution.getVariable('formUrl')); - -var system = java.lang.System; -execution.setVariable('srcrStatus','Approved'); -system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - ${riskclassification == 'exempt'} - - - - - execution.setVariable('soscFormUrl', execution.getVariable('formUrl')); - -var system = java.lang.System; -execution.setVariable('soscStatus','Approved'); -system.out.println ("soscStatus "+execution.getVariable('soscStatus') ); - - - ${isSoscAvailable==false} - - - Flow_0fa3idu - Flow_0lo7pee - Flow_1l4qibu - Flow_1nowy63 + + + Flow_0gcqir8 + Flow_1dtmwt0 + Flow_045t5oq - - Flow_1m5dyj2 - Flow_0poa227 - Flow_0lo7pee - - - - Flow_1phkhb3 - Flow_177eab8 - Flow_1l4qibu - - + @@ -2060,6 +2070,16 @@ system.out.println ("soscStatus "+execution.getVariable('soscStatus') ); + + + + + + + + + + @@ -2921,13 +2941,6 @@ system.out.println ("soscStatus "+execution.getVariable('soscStatus') ); - - - - - - - @@ -3346,28 +3359,28 @@ system.out.println ("soscStatus "+execution.getVariable('soscStatus') ); - + - - + + - + - - + + - + - + @@ -3396,6 +3409,15 @@ system.out.println ("soscStatus "+execution.getVariable('soscStatus') ); + + + + + + + + + - \ No newline at end of file + 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 306a4294..abf866a4 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 @@ -835,6 +835,16 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet Flow_0go33vq + + + execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + ${action == 'Accepted'} @@ -1034,15 +1044,15 @@ system.out.println ("Sent to SDM"); task.execution.setVariable('requestStatus', task.execution.getVariable('action')); -task.execution.setVariable('requestType', 'DERA'); -task.execution.setVariable('deraStatus', task.execution.getVariable('action')); +task.execution.setVariable('requestType', 'SoSC'); +task.execution.setVariable('soscStatus', task.execution.getVariable('action')); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); task.execution.setVariable('deleteReason', "completed"); task.execution.setVariable('userRole','Statutory Decision Maker'); -task.execution.setVariable('subFormName','DERA Form'); +task.execution.setVariable('subFormName','SoSC Form'); - + Flow_11d9mar @@ -1149,7 +1159,7 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet - sosc_subforms_updated + dera_subforms_updated Flow_15rrs2v @@ -1170,6 +1180,16 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet Flow_0oeq414 + + + execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); + + + + ["applicationId", "applicationStatus", "soscBundleStatus"] + + + ${action == 'Accepted'} @@ -1376,6 +1396,11 @@ execution.setVariable('requestType', 'SoSC'); execution.setVariable('bundleUrl', execution.getVariable('formUrl')); execution.setVariable('formUrl', execution.getVariable('srcrFormUrl')); + + + + execution.setVariable('bundleUrl', execution.getVariable('formUrl')); +execution.setVariable('formUrl', execution.getVariable('soscFormUrl')); @@ -1575,7 +1600,8 @@ system.out.println ("form signed"); task.execution.setVariable('applicationStatus', task.execution.getVariable('action')); -task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('deleteReason', "completed"); +task.execution.setVariable('userRole','CSSA Manager'); @@ -1828,7 +1854,7 @@ system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSocie ${isSoscAvailable==true} - + Flow_1phnzgm Flow_0kehuqf @@ -2364,7 +2390,7 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - + @@ -2420,7 +2446,7 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - + @@ -2504,9 +2530,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - @@ -2525,12 +2548,6 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - - - - - @@ -2544,11 +2561,20 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); + + + + + + + + + - + @@ -2559,12 +2585,12 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - - + + - + @@ -2608,18 +2634,18 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - + - - + + - + - + @@ -2647,7 +2673,7 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - + @@ -2896,7 +2922,7 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); - + @@ -3194,6 +3220,9 @@ system.out.println ("srcrStatus "+execution.getVariable('srcrStatus') ); + + + From 4d788dd6c89d98f1bb840a8aa89d9271a971be6f Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Tue, 6 Feb 2024 08:53:00 -0800 Subject: [PATCH 8/9] removed console log --- forms-flow-ai/epd-forms/bundling/Summary of Site Condition.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms-flow-ai/epd-forms/bundling/Summary of Site Condition.json b/forms-flow-ai/epd-forms/bundling/Summary of Site Condition.json index 3dd83784..0264963e 100644 --- a/forms-flow-ai/epd-forms/bundling/Summary of Site Condition.json +++ b/forms-flow-ai/epd-forms/bundling/Summary of Site Condition.json @@ -23,7 +23,7 @@ "key": "formActions", "tags": [], "properties": {}, - "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails?UserDetails[\"role\"]:[];\r\nconst isSoscAvailable = (data.submissionTypeTwo ? data.submissionTypeTwo.reportsSubmitted : false) || (data.applicationsrequested ? data.applicationsrequested.siteReclassification ||data.applicationsrequested.approvalOfBackgroundConcentrations : false) || (data.certificationdocumentradioGroup ? data.certificationdocumentradioGroup.determinationOfContaminatedSite || data.certificationdocumentradioGroup.approvalInPrinciple || data.certificationdocumentradioGroup.certificateOfCompliance : false) || (data.deraStatus !== null || data.deraStatus !== undefined) ? true : false;\r\nconsole.log('isSoscAvailable-----',isSoscAvailable);\r\nif(!UserDetails){\r\n show = false;\r\n}\r\nelse if(roles.includes(\"formsflow-client\") || \r\nroles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\")|| \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") ||\r\nroles.includes(\"formsflow-reviewer/formsflow-client-reviewer\")) {\r\n show = false;\r\n}\r\nelse\r\n{\r\n if (data.riskclassification === \"exempt\" && !(isSoscAvailable)) {\r\n show = false;\r\n } else {\r\n show = true;\r\n }\r\n}", + "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails?UserDetails[\"role\"]:[];\r\nconst isSoscAvailable = (data.submissionTypeTwo ? data.submissionTypeTwo.reportsSubmitted : false) || (data.applicationsrequested ? data.applicationsrequested.siteReclassification ||data.applicationsrequested.approvalOfBackgroundConcentrations : false) || (data.certificationdocumentradioGroup ? data.certificationdocumentradioGroup.determinationOfContaminatedSite || data.certificationdocumentradioGroup.approvalInPrinciple || data.certificationdocumentradioGroup.certificateOfCompliance : false) || (data.deraStatus !== null || data.deraStatus !== undefined) ? true : false;\r\nif(!UserDetails){\r\n show = false;\r\n}\r\nelse if(roles.includes(\"formsflow-client\") || \r\nroles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\")|| \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") ||\r\nroles.includes(\"formsflow-reviewer/formsflow-client-reviewer\")) {\r\n show = false;\r\n}\r\nelse\r\n{\r\n if (data.riskclassification === \"exempt\" && !(isSoscAvailable)) {\r\n show = false;\r\n } else {\r\n show = true;\r\n }\r\n}", "conditional": { "json": "", "show": null, From c159948e9d3ead60683601961d9f4fab6ae67cf8 Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Tue, 6 Feb 2024 10:55:37 -0800 Subject: [PATCH 9/9] unit test issue fix --- .../subProcess/DERABundleWorkflow.bpmn | 69 +++++++++---------- 1 file changed, 33 insertions(+), 36 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 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') ); - - - - - - - - -