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 6532d705..ab3369c3 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 @@ -881,10 +881,16 @@ execution.setVariable('formName','Contaminated Sites Services Application Form') var applicationsrequested = execution.getVariable('applicationsrequested'); var certificationdocumentradioGroup = execution.getVariable('certificationdocumentradioGroup'); var submissionTypeTwo = execution.getVariable('submissionTypeTwo'); + +submissionTypeTwo = JSON.parse(submissionTypeTwo); +applicationsrequested = JSON.parse(applicationsrequested); +certificationdocumentradioGroup = JSON.parse(certificationdocumentradioGroup); + var isSoscAvailable = (submissionTypeTwo ? submissionTypeTwo.reportsSubmitted : false) || (applicationsrequested ? applicationsrequested.siteReclassification || applicationsrequested.approvalOfBackgroundConcentrations : false) || (certificationdocumentradioGroup ? certificationdocumentradioGroup.determinationOfContaminatedSite || certificationdocumentradioGroup.approvalInPrinciple || certificationdocumentradioGroup.certificateOfCompliance : false) ? true : false; +system.out.println ("isSoscAvailable "+isSoscAvailable ); execution.setVariable('isSoscAvailable',isSoscAvailable);