Skip to content

Commit

Permalink
Merge pull request #603 from bcgov/feat/srs-215
Browse files Browse the repository at this point in the history
fix for issue 215
  • Loading branch information
midhun-aot authored Jan 18, 2024
2 parents 735e935 + de33006 commit 2a03c94
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);</bpmn:script>
</bpmn:scriptTask>
<bpmn:receiveTask id="Activity_1v5ffpw" name="Application Resubmitted" messageRef="Message_0lm44we">
Expand Down

0 comments on commit 2a03c94

Please sign in to comment.