From 52d8331cda3a3c54328e98f84faa2bcc5043681c Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Tue, 19 Mar 2024 09:32:01 -0700 Subject: [PATCH] issue fix for 260 --- ...nated Sites Services Application Form.json | 10 +- .../Site Risk Classification Report.json | 4 +- .../bundling/Summary of Site Condition.json | 10 +- .../subProcess/CSSABundleWorklow.bpmn | 2168 +++++++++-------- .../subProcess/DERABundleWorkflow.bpmn | 45 +- 5 files changed, 1134 insertions(+), 1103 deletions(-) diff --git a/forms-flow-ai/epd-forms/bundling/Contaminated Sites Services Application Form.json b/forms-flow-ai/epd-forms/bundling/Contaminated Sites Services Application Form.json index d06f019b..59209553 100644 --- a/forms-flow-ai/epd-forms/bundling/Contaminated Sites Services Application Form.json +++ b/forms-flow-ai/epd-forms/bundling/Contaminated Sites Services Application Form.json @@ -438,7 +438,7 @@ "showValidations": false, "tableView": false, "key": "prevReviewer", - "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 if (roles.includes(\"formsflow-reviewer/caseworker\") &&\r\n roles.includes(\"formsflow-reviewer/sdm\") &&\r\n data.bundleStatus === \"cssaCaseworkerAccepted\")\r\n show = true;\r\n else\r\n show = false;\r\n}", + "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 if (roles.includes(\"formsflow-reviewer/caseworker\") &&\r\n roles.includes(\"formsflow-reviewer/sdm\") &&\r\n data.bundleStatus === \"Caseworker Accepted CSSA Form\")\r\n show = true;\r\n else\r\n show = false;\r\n}", "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.cssaUtilKeys);\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, @@ -548,7 +548,7 @@ "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.bundleStatus === 'cssaCaseworkerAccepted')\r\n show = false;\r\n\telse\r\n\t\tshow = true;\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\n\r\nif(roles.includes(\"formsflow-reviewer/caseworker\")){\r\n\tif((data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" && data.bundleStatus === 'CSSA Manager Accepted')||\r\n\tdata.bundleStatus === 'Caseworker Accepted CSSA Form')\r\n show = false;\r\n\telse\r\n\t\tshow = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", "logic": [], "attributes": {}, "overlay": { @@ -607,7 +607,7 @@ "showValidations": false, "tableView": false, "key": "approved", - "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\ndata.bundleStatus !== 'cssaMgrAccepted') {\r\n show = true;\r\n}\r\nelse\r\n{\r\n if(data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")\r\n show = true;\r\n else\r\n show = false;\r\n}", + "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\ndata.bundleStatus !== 'CSSA Manager Accepted') {\r\n show = true;\r\n}\r\nelse\r\n{\r\n if(data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")\r\n show = true;\r\n else\r\n show = false;\r\n}", "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.cssaUtilKeys);\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});\r\n", "input": true, @@ -1390,7 +1390,7 @@ "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}", + "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 === 'Caseworker Accepted CSSA Form' ||\r\n (data.bundleStatus === 'CSSA Manager Accepted' && \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 === 'CSSA Manager Accepted')\r\n show = true;\r\n else\r\n show = false;\r\n}", "logic": [], "attributes": {}, "overlay": { @@ -1450,7 +1450,7 @@ "showValidations": false, "tableView": false, "key": "approveBundle", - "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif((roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'cssaCaseworkerAccepted') ||\r\n(roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'cssaMgrAccepted' &&\r\ndata.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")) {\r\n show = true;\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\n\r\nif((roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'Caseworker Accepted CSSA Form') ||\r\n(roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'CSSA Manager Accepted' &&\r\ndata.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", "type": "button", "custom": "\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Approved'\r\n})", "input": true, 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 dd6b155c..1bb0bbf1 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 @@ -1245,7 +1245,7 @@ "eq": "", "json": "" }, - "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/site-risk-classification-officer\")) \r\n{\r\n show = true;\r\n}\r\nelse if (roles.includes(\"formsflow-reviewer/caseworker\") &&\r\ndata.srcrBundleStatus === \"srcrSrcoAccepted\")\r\n{\r\n if (data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" ||\r\n data.siteRiskClassification !== 'notHighRisk')\r\n show = false;\r\nelse\r\n show = true;\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\n\r\nif(roles.includes(\"formsflow-reviewer/site-risk-classification-officer\")) \r\n{\r\n show = true;\r\n}\r\nelse if (roles.includes(\"formsflow-reviewer/caseworker\") &&\r\ndata.srcrBundleStatus === \"SRCO Accepted SRCR Form\")\r\n{\r\n if (data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" ||\r\n data.siteRiskClassification !== 'notHighRisk')\r\n show = false;\r\nelse\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", "logic": [], "attributes": {}, "overlay": { @@ -1328,7 +1328,7 @@ "eq": "", "json": "" }, - "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")) {\r\n if (data.srcrBundleStatus === \"srcrCaseworkerAccepted\") \r\n show = true;\r\n else if (data.srcrBundleStatus === \"srcrSrcoAccepted\") {\r\n if (data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" ||\r\n data.siteRiskClassification !== 'notHighRisk')\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\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")) {\r\n if (data.srcrBundleStatus === \"Caseworker Accepted SRCR Form\") \r\n show = true;\r\n else if (data.srcrBundleStatus === \"SRCO Accepted SRCR Form\") {\r\n if (data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" ||\r\n data.siteRiskClassification !== 'notHighRisk')\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}", "logic": [], "attributes": {}, "overlay": { 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 09eaae33..b30f2b3f 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 @@ -198,7 +198,7 @@ "showValidations": false, "tableView": false, "key": "sendToPreviousReviewer", - "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}", + "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 === \"Caseworker Accepted SoSC Form\")\r\n show = true;\r\n else\r\n show = false;\r\n}", "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, @@ -285,7 +285,7 @@ "showValidations": false, "tableView": false, "key": "sendToNextReviewer", - "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}", + "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 === 'CSSA Manager Accepted')||\r\n\tdata.soscBundleStatus === 'Caseworker Accepted SoSC Form')\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}", "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, @@ -386,7 +386,7 @@ "eq": "", "json": "" }, - "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")){\r\n\tif((data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" &&\r\ndata.bundleStatus === 'cssaMgrAccepted') || data.soscBundleStatus === 'soscCaseworkerAccepted') \r\n \t\tshow = true;\t\r\n\telse\r\n\t\tshow = false;\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\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")){\r\n\tif((data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" &&\r\ndata.bundleStatus === 'CSSA Manager Accepted') || data.soscBundleStatus === 'Caseworker Accepted SoSC Form') \r\n \t\tshow = true;\t\r\n\telse\r\n\t\tshow = false;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", "logic": [], "attributes": {}, "overlay": { @@ -870,7 +870,7 @@ "showValidations": false, "tableView": false, "key": "sendBundleToNextReviewer", - "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}", + "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 === 'CSSA Manager Accepted' && \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 === 'CSSA Manager Accepted')\r\n show = true;\r\n else\r\n show = false;\r\n}", "type": "button", "custom": "form.emit('customEvent', {\n type: \"actionComplete\", \n component: component,\n actionType:'Accepted'\n });", "input": true, @@ -948,7 +948,7 @@ "showValidations": false, "tableView": false, "key": "approveBundle", - "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif((roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'cssaCaseworkerAccepted') ||\r\n(roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'cssaMgrAccepted' &&\r\ndata.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")) {\r\n show = true;\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\n\r\nif((roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'cssaCaseworkerAccepted') ||\r\n(roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'CSSA Manager Accepted' &&\r\ndata.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}", "type": "button", "custom": "\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Approved'\r\n})", "input": true, 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 97b616f5..b58f6ff9 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 @@ -1,5 +1,5 @@ - + @@ -83,7 +83,11 @@ - + + + execution.setVariable('bundleStatus', "CSAP Society Accepted"); + + ${action == 'Accepted'} @@ -168,7 +172,11 @@ system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSocie ${action == 'Recheck'} - + + + execution.setVariable('bundleStatus', "Approved Professional Accepted"); + + ${action == 'Accepted'} @@ -204,7 +212,7 @@ system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSocie - execution.setVariable('bundleStatus', "cssaTeamAccepted"); + execution.setVariable('bundleStatus', "CSSA Team Accepted"); @@ -233,7 +241,7 @@ system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSocie - execution.setVariable('bundleStatus', "cssaSdmApproved"); + execution.setVariable('bundleStatus', "SDM Approved CSSA Form"); @@ -297,7 +305,7 @@ execution.setVariable('bundleStatus', "cssaSdmReturned"); - execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); + execution.setVariable('bundleStatus', "Caseworker Accepted CSSA Form"); @@ -392,7 +400,7 @@ system.out.println('srcrBundleURL'+execution.getVariable('bundleUrl')); - execution.setVariable('bundleStatus', "cssaMgrAccepted"); + execution.setVariable('bundleStatus', "CSSA Manager Accepted"); @@ -583,7 +591,7 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet - execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); + execution.setVariable('soscBundleStatus', "Caseworker Accepted SoSC Form"); @@ -657,7 +665,7 @@ execution.setVariable('bundleStatus', "soscSdmReturned"); execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('bundleStatus', "soscSdmApproved"); +execution.setVariable('bundleStatus', "SDM Approved SoSC Form"); @@ -887,7 +895,7 @@ task.execution.setVariable('subFormName','CSSA Form'); - execution.setVariable('bundleStatus', "cssaCaseworkerAccepted"); + execution.setVariable('bundleStatus', "Caseworker Accepted CSSA Form"); @@ -960,7 +968,7 @@ execution.setVariable('bundleStatus', "cssaSdmReturned"); execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('bundleStatus', "cssaSdmApproved"); +execution.setVariable('bundleStatus', "SDM Approved CSSA Form"); @@ -1630,7 +1638,7 @@ execution.setVariable('isSrcrResubmitted', false); - execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); + execution.setVariable('srcrBundleStatus', "Caseworker Accepted SRCR Form"); @@ -1755,7 +1763,7 @@ execution.setVariable('requestType', 'SRCR'); - execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); + execution.setVariable('srcrBundleStatus', "SRCO Accepted SRCR Form"); @@ -1890,7 +1898,7 @@ execution.setVariable('bundleStatus', "srcrSdmReturned"); execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('bundleStatus', "srcrSdmApproved"); +execution.setVariable('bundleStatus', "SDM Approved SRCR Form"); @@ -2197,1397 +2205,1397 @@ task.execution.setVariable('deleteReason', "completed"); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - + + + - + - - - - - - - - + + + + + + - + - - - - - - + + + + + + + + + - + - - - - - - - - - + + + - + - - - - - + + + + + + + + + + + + + + + + + - + - - - + + + - + - - - - + + + + + - + - - - - - - + + + - - - - + + + + + + + - + - - - - - + + + + - - - - - + + + - + - - - + + + + + - + - - - - - - - - - + + + + + - + - - - - - + + + - + - - - + + + - - - + + + + + + + - + - - - - - - - - - - - - - - - - + + + + - + - - - - - + + + - - - - - - + + + - - - + + + + - - - - - - + + + + - - - - + + + - - - + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - - - - - - + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - + + + + + + - + - - - - + + + - + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - + - - - - + + + - + - - - - - + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - + + + - - - - - + + + - + - - - - - + + + - + - - - - - + + + + + - + - - - - - + + + - + - - - - - - + + + - - - + + + - + - - - + + + - - - + + + + - - - - - - - - + + + - - - + + + + - - - - - + + + + - - - + + + - - - + + + - - - + + + + + + + - - - + + + + + + + + - - + + - - + + - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - + - - - - + + + - + - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - + - - - - + + + + + + + + + + + + + + + + + - + - - - - - - - - - + + + - + - - - - - - - - - - - - - - + + + + + + + + + + + - + - - - - + + + + + + + + + + + + + + + + + + - + - - - - + + + + + + + + + - + - - - - - + + - - + + - - + + - + - - + + + + + - + - - + + + - - + + - + - - + + + - - + + + + + - - + + - + - - + + - + - - + + - - + + - - + + - - + + - - - + + - - - - - + + - + + + + + + + + + - - - - + + + + - + - - - + + + + + + - - - + + + - - - - + + + - - - - + + + + + + + + - - - + + + + + + - - - - + + + + + + + + - - - + + + + + + + - - - + + + + - + - - - + + + + + + + + - - - + + + + + - + - - - - - + + + + + + + + + + + + + - + - - - + + + - + - - - + + + + - + - - - + + + - - - + + + - - - - - + + + + + + + - + - - - + + + - + - - - + + + + + - + - - - - - - - - - - - + + + - + - - - + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - + - - + + - - + + - + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - - + + - - - - - + + + - - + + - + - - + + + + + + + + - + - - + + - + - - - + + - - + + - - + + - - + + - - - - - + + - - + + + + + + - + - - + + - - - + + - - - - - + + - - - + + - - + + - - - - - - - - - - + + + - - - - - - - + + + - - - - - - + + + - - - - + + + - - - + + + + + - - - - + + + - - - + + + + + + + + - - - - + + + - - - + + + - - - - - + + + - + - - - + + + - + - - - - - + + + + + - + - - - + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + - + - - - + + + + + - + - - - - - + + + - + - - - + + + - - - + + + - - - - - + + + + - + - - - - - + + + + + - + - - - - + + + - + - - - - + + + + + - + - - - - - + + + + - + - - - + + + - + - - - - - + + + + + + + + - + - - - - - - - - - - - + + + + + - + - - - - + + + + + + + + + + + + + + + + + + + + + - + - - - - + + + - + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - + + + + + + + + + - + - - - - - - - - - + + + + + + + + - + - - - - - - + + + + + + + + + + + - + - - - - - - - + + + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + + + + - + - - - + + + + + + - + - - - + + + + + + + + - + - - - - - - - - - - - - - - - - - - - + + + + + + - + - - - - - - - - - + + + + + + + + + + + - + - - - - - - + + + + - + - - - + + + + + - + - - - + + + + - + - - - - - - - - - - - + + + + + - + - - - - - - - - - + + + + + - + - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 f9d36d00..8d4675cd 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 @@ -429,7 +429,7 @@ execution.setVariable('isSrcrResubmitted', false); - execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted"); + execution.setVariable('srcrBundleStatus', "Caseworker Accepted SRCR Form"); @@ -501,7 +501,7 @@ execution.setVariable('isSrcrResubmitted', false); execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('srcrBundleStatus', "srcrSdmApproved"); +execution.setVariable('srcrBundleStatus', "SDM Approved SRCR Form"); @@ -587,7 +587,7 @@ execution.setVariable('requestType', 'SRCR'); - execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted"); + execution.setVariable('srcrBundleStatus', "SRCO Accepted SRCR Form"); @@ -858,7 +858,7 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet - execution.setVariable('bundleStatus', "deraCaseworkerAccepted"); + execution.setVariable('bundleStatus', "Caseworker Accepted DERA Form"); @@ -941,7 +941,7 @@ execution.setVariable('bundleStatus', "deraSdmReturned"); execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('bundleStatus', "deraSdmApproved"); +execution.setVariable('bundleStatus', "SDM Approved DERA Form"); @@ -1218,7 +1218,7 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet - execution.setVariable('soscBundleStatus', "soscCaseworkerAccepted"); + execution.setVariable('soscBundleStatus', "Caseworker Accepted SoSC Form"); @@ -1302,7 +1302,7 @@ execution.setVariable('soscBundleStatus', "soscSdmReturned"); execution.setVariable('bundleUrl', execution.getVariable('formUrl')); -execution.setVariable('soscBundleStatus', "soscSdmApproved"); +execution.setVariable('soscBundleStatus', "SDM Approved SoSC Form"); @@ -1433,7 +1433,7 @@ execution.setVariable('bundleStatus', "deraSdmReturned"); - execution.setVariable('bundleStatus', "deraSdmApproved"); + execution.setVariable('bundleStatus', "SDM Approved DERA Form"); @@ -1470,6 +1470,16 @@ execution.setVariable('bundleStatus', "deraSdmReturned"); ${riskclassification == 'exempt' && isSoscAvailable==false} + + + execution.setVariable('bundleStatus', "Caseworker Accepted DERA Form"); + + + + ["applicationId", "applicationStatus", "bundleStatus"] + + + ${action == 'Accepted'} @@ -1820,7 +1830,11 @@ system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSocie ${typeOfReview== 'directToMinistryApplication'} - + + + execution.setVariable('bundleStatus', "CSAP Society Accepted"); + + ${action == 'Accepted'} @@ -1892,7 +1906,11 @@ system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSocie ${typeOfReview!= 'directToMinistryApplication'} - + + + execution.setVariable('bundleStatus', "Approved Professional Accepted"); + + ${action == 'Accepted'} @@ -1911,6 +1929,11 @@ system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSocie + + + execution.setVariable('bundleStatus', "CSSA Team Accepted"); + + ${action == 'Accepted'} @@ -1919,7 +1942,7 @@ system.out.println ("isSentFromSociety "+ execution.getVariable('isSentFromSocie - execution.setVariable('bundleStatus', "cssaMgrAccepted"); + execution.setVariable('bundleStatus', "CSSA Manager Accepted");