CAS Integration 4 - Handle Supplier Maintenance Errors (Student Profile and Aggregate Inventory)
User Story
As a Ministry user, I want to be able to view any students' whose supplier information has not been successfully created due to errors, so that I can handle them seperately.
There are three components of this ticket:
- Identifying all events which trigger an error, and determining the impact of the error.
- Displaying the various errors and impacts through a new UI screen
- Creating a resolution path for each error
Acceptance Criteria:
1) Identifying all events which trigger an error, and determining the impact of the error.
- [ ] Log all error types in DB according to following mapping.
| Response Type | Error Type (msg to display through UI) | Impact |
|---|---|---|
Get Supplier returns status = INACTIVE |
Inactive Supplier | Save 'Get' Response to CAS_Supplier Table but set IsValid=false; Stop all subsequent CAS transactions; no automatic re-attempts |
Get supplier returns supplierprotected = true |
Protected Supplier | Stop all subsequent CAS transactions; no automatic re-attempts |
Get supplier returns siteprotected = true |
Protected Supplier | Stop all subsequent CAS transactions; no automatic re-attempts |
| Get supplier returns failed response (need Dev input) | Integration error | Stop all subsequent CAS transactions; no automatic re-attempts |
Create new Supplier and Site OR Update Existing Site returns CAS-Returned-Messages="error message" |
Create / Update Supplier Information Failed | Stop all subsequent CAS transactions; no automatic re-attempts |
2) Displaying the various errors and impacts through a new UI screen
- [ ] Add flag to student profile CAS screen when
IsValid= false. Flag should say "Information not validated" - [ ] Build UI screen consistent with Fig 1 tp capture aggregate error inventory
3) Creating a resolution path for each error
- [ ] Move record from "Errors" table to "Resolved" errors table if:
- [ ] Error was manually resolved by Ministry staff; OR
- [ ] Error had
AutomaticRetry1=Yes and upon retry, the supplier information is successfully validated such thatIsValid= true - [ ] Supplier information for that student was manually inputed in the student's CAS profile info and
IsValid=true
- [ ] When 'resolve' is selected, allow only one of the following resolution types to be chosen:
- [ ] Manual resolution in CAS & SIMS
- [ ] Other
- [ ] In the 'resolved errors' table, the
Resolution Reasoncan be any of the following values- [ ] Any of the reasons selectable by Ministry users through the resolution modal; OR
- [ ] Automatic
Mock-Ups
Fig 1 and Diagrams

Fig 2

Need to incorporate Name and SIN updates on SIMS into error handling to resolve manually with CAS.
@CarlyCotton we will disable the "Retry" if there is already a pending record created.
@andrewsignori-aot That works. Can we be specific and say "Pending supplier verification" status?