Open mbertucci opened 1 month ago
@mbertucci I talked to @stcepeda about the flow. There are 2 separate processes we need to manage - application process (from application submitted to decision made) and registration process (active, suspend, cancel, etc.). If we cancel/suspend a registration, having "approved" as application status does not make sense but "decline" does not reflect the true status either.
However, we also need to consider what if examiners accidently click decline/approve and how we can revert that.
đź“– User Story
As an Examiner or Manager,
I want to decline an application that has already been approved,
so that the Registration status is updated or the Registration is canceled, and the system accurately reflects the new status of the application and registration.
Context:
This user story handles scenarios where an Examiner needs to decline an application that was previously approved. In such cases, the story ensures that the system provides options for canceling or suspending the existing Registration and records the changes in both the application and registration statuses.
Declining an Application with an Existing Registration
If the application has already been approved and a corresponding registration entry has been created and recorded in the Registration table:
đź“Ź Business Rules
🎠Story Scenarios
Scenario 1: Decline an Already Approved Application and Cancel Registration
Given the Examiner is on the application details page, and the application status is "Approved":
When the Examiner clicks the "Decline" button:
Then a modal dialog appears asking if the Examiner would like to Cancel or Suspend the existing Registration.
And the Examiner selects Cancel.
Then the application status changes to "Declined."
And the existing Registration status changes to "Canceled."
And a record of the action is logged in the Filing History with the Examiner’s name, date, and time. And the application status is reflected and visible in the Examiner Dashboard
Scenario 2: Decline an Already Approved Application and Suspend Registration
Given the Examiner is on the application details page, and the application status is "Approved":
When the Examiner clicks the "Decline" button:
Then a modal dialog appears asking if the Examiner would like to Cancel or Suspend the existing Registration.
And the Examiner selects Suspend.
Then the application status changes to "Declined."
And the existing Registration status changes to "Suspended."
And a record of the action is logged in the Filing History with the Examiner’s name, date, and time. And the application status is reflected and visible in the Examiner Dashboard