Rough Reshape of FT Assessment and DMN
User Story As a ministry user, I want to do an end to end update of the entire FT assessment calculation (including DMN tables) to get the assessment closer to what is expected. This will allow us to spend more time on the small details and confirming policy rather than identifying the gaps.
Acceptance Criteria
- [x] Update the ft assessment decision dmn file: DEVS>BPM Workflows>3622 - FT Assessment and DMN
- [x] Update the ft assessment 2024-2025: DEVS>BPM Workflows>3622 - FT Assessment and DMN
- [x] Copy this same flow for all other FT years 22-23 & 23-24
- [x] Make sure it generates NOA
- [x] Check for any missing variables
- [x] It may break any e2e FT tests but they will need to be re-written when closer to a more accurate calculation
Technical
- [x] Replace the
fulltime-assessment-decisions.dmnwith the provided one. - [x] Replace the
fulltime-assessment-*.bpmnfiles with the provided one adjusting the necessary year-related IDs. - [x] Ensure full-time applications are still submitted and generate the NOA.
- [x] Make the E2E tests pass adjusting any expected value.
@CarlyCotton as per our discussion regarding the list of DMN declared names and usage, sharing the information here.
dmnFullTimeCalculatedDataLivingCategory - Declared but not used.
dmnFullTimeCalculatedDataProgramYearMaximums - Declared and used with Wrong reference. (dmnFullTimeProgramYearMaximums) (This is taken care and fixed in PR by @lewischen-aot )
dmnFullTimeCalculatedDataIncomeThreshold - Declared and used with correct reference.
dmnFullTimeCalculatedDataApplicationBooksMaximum - Declared but not used.
dmnFullTimeCalculatedDataApplicationtransportationMaximum - Declared and used with correct reference.
dmnFullTimeCalculatedDataStudentMSOLAllowance - Declared and used with correct reference.
dmnFullTimeCalculatedDataDependantMSOLAllowance - Declared and used with correct reference.
dmnFullTimeCalculatedDataParentsMSOL - Declared and used with correct reference.
dmnFullTimeAwardFederalAllowableLimits and dmnFullTimeAwardProvincialAllowableLimits renamed to dmnFullTimeAwardAllowableLimits
dmnFullTimeAwardAllowableLimits - Declared and used with correct reference.
dmnFullTimeAwardFamilySizeVariables- Declared and used with correct reference.
Some DMN references are declared with calculatedData in it(7 of them) and some without(3 of them). The naming difference has been there from the beginning(long back).
For PT we have not used the convention of calculatedData.
Fixing the declared names wouldn't be part of this effort and we can do that in one of the upcoming efforts.
To share the knowledge here.
- There is a behavior difference in DMN output, when the dmn returns one property vs multiple properties. Due to this, dmn was returning null in some areas.
Please take a look at this PR comment. It has all the details.
https://github.com/bcgov/SIMS/pull/3772#discussion_r1796197990
- The functions in feel expression are case sensitive. e.g.
MAX() does not work vs max() does
https://github.com/bcgov/SIMS/pull/3772#discussion_r1796394287
- Great job on fixing the typo from
caclulatedDataTotalAssessedNeedtocalculatedDataTotalAssessedNeed.
There is a mapping in assessment-gateway while saving the assessment-data which was using the variable and it will be updated(typo fixing there) as part of this ticket on assessment-gateway.bpmn.
More details here.
https://github.com/bcgov/SIMS/pull/3772#discussion_r1797143681