SIMS icon indicating copy to clipboard operation
SIMS copied to clipboard

Rough Reshape of FT Assessment and DMN

Open CarlyCotton opened this issue 1 year ago • 2 comments

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

Technical

  • [x] Replace the fulltime-assessment-decisions.dmn with the provided one.
  • [x] Replace the fulltime-assessment-*.bpmn files 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 avatar Aug 09 '24 13:08 CarlyCotton

@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.

dheepak-aot avatar Oct 11 '24 16:10 dheepak-aot

To share the knowledge here.

  1. 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

  1. 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

  1. Great job on fixing the typo from caclulatedDataTotalAssessedNeed to calculatedDataTotalAssessedNeed.

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

dheepak-aot avatar Oct 11 '24 16:10 dheepak-aot