From c3f7145da1aa74fc58c75e48aea5fd7bd2623815 Mon Sep 17 00:00:00 2001 From: Felipe <36081861+GorilaNaranja@users.noreply.github.com> Date: Wed, 15 Mar 2023 10:43:59 +0100 Subject: [PATCH] CIV-7379 mediation unsuccessful (#2313) * Merge master * Update: auth field for mediation unsuccessful * Revert process definition * Update: rename to reason --------- Co-authored-by: CalderonF Co-authored-by: Raja Mani --- .../AuthorisationCaseEventCUI-nonprod.json | 22 ++++++++++ ...horisationCaseFieldLRspec-CUI-nonprod.json | 21 ++++++++++ .../User/UserEventsLRspec-CUI-nonprod.json | 18 ++++++++ .../MeditionUnsuccessful-CUI-nonprod.json | 42 +++++++++++++++++++ .../CaseFieldLRspec-CUI-nonprod.json | 29 +++++++++++++ .../MediationUnsuccessfulReasons.json | 20 +++++++++ 6 files changed, 152 insertions(+) create mode 100644 ccd-definition/CaseEventToFields/MeditionUnsuccessful-CUI-nonprod.json create mode 100644 ccd-definition/FixedLists/MediationUnsuccessfulReasons.json diff --git a/ccd-definition/AuthorisationCaseEvent/AuthorisationCaseEventCUI-nonprod.json b/ccd-definition/AuthorisationCaseEvent/AuthorisationCaseEventCUI-nonprod.json index 48f29f715d..e8d6ef88a0 100644 --- a/ccd-definition/AuthorisationCaseEvent/AuthorisationCaseEventCUI-nonprod.json +++ b/ccd-definition/AuthorisationCaseEvent/AuthorisationCaseEventCUI-nonprod.json @@ -181,6 +181,28 @@ } ] }, + { + "CaseTypeID": "CIVIL", + "CaseEventID": "MEDIATION_UNSUCCESSFUL", + "AccessControl": [ + { + "UserRoles": [ + "caseworker-civil-systemupdate", + "caseworker-civil-admin", + "caseworker-civil" + ], + "CRUD": "CRU" + }, + { + "UserRoles": [ + "APP-SOL-SPEC-PROFILE", + "RES-SOL-ONE-SPEC-PROFILE", + "RES-SOL-TWO-SPEC-PROFILE" + ], + "CRUD": "R" + } + ] + }, { "CaseTypeID": "CIVIL", "CaseEventID": "NOTIFY_APPLICANT1_FOR_CLAIM_CONTINUING_ONLINE_SPEC", diff --git a/ccd-definition/AuthorisationCaseField/AuthorisationCaseFieldLRspec-CUI-nonprod.json b/ccd-definition/AuthorisationCaseField/AuthorisationCaseFieldLRspec-CUI-nonprod.json index b020f1e6ab..019b0b9ef7 100644 --- a/ccd-definition/AuthorisationCaseField/AuthorisationCaseFieldLRspec-CUI-nonprod.json +++ b/ccd-definition/AuthorisationCaseField/AuthorisationCaseFieldLRspec-CUI-nonprod.json @@ -1031,5 +1031,26 @@ "CRUD": "R" } ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "unsuccessfulMediationReason", + "AccessControl": [ + { + "UserRoles": [ + "caseworker-civil", + "caseworker-civil-admin" + ], + "CRUD": "CRU" + }, + { + "UserRoles": [ + "APP-SOL-SPEC-PROFILE", + "RES-SOL-ONE-SPEC-PROFILE", + "RES-SOL-TWO-SPEC-PROFILE" + ], + "CRUD": "R" + } + ] } ] diff --git a/ccd-definition/CaseEvent/User/UserEventsLRspec-CUI-nonprod.json b/ccd-definition/CaseEvent/User/UserEventsLRspec-CUI-nonprod.json index be34c512e9..3146c9c607 100644 --- a/ccd-definition/CaseEvent/User/UserEventsLRspec-CUI-nonprod.json +++ b/ccd-definition/CaseEvent/User/UserEventsLRspec-CUI-nonprod.json @@ -49,5 +49,23 @@ "RetriesTimeoutURLAboutToSubmitEvent": 0, "RetriesTimeoutURLSubmittedEvent": 0, "Publish": "Y" + }, + { + "CaseTypeID": "CIVIL", + "ID": "MEDIATION_UNSUCCESSFUL", + "Name": "Mediation unsuccessful", + "Description": "Mediation was unsuccessful", + "DisplayOrder": 9, + "PreConditionState(s)": "*", + "PostConditionState": "*", + "SecurityClassification": "Public", + "CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit", + "ShowSummary": "Y", + "ShowEventNotes": "N", + "EndButtonLabel": "Submit", + "RetriesTimeoutAboutToStartEvent": 0, + "RetriesTimeoutURLAboutToSubmitEvent": 0, + "RetriesTimeoutURLSubmittedEvent": 0, + "Publish": "Y" } ] diff --git a/ccd-definition/CaseEventToFields/MeditionUnsuccessful-CUI-nonprod.json b/ccd-definition/CaseEventToFields/MeditionUnsuccessful-CUI-nonprod.json new file mode 100644 index 0000000000..8d644a4df4 --- /dev/null +++ b/ccd-definition/CaseEventToFields/MeditionUnsuccessful-CUI-nonprod.json @@ -0,0 +1,42 @@ +[ + { + "CaseTypeID": "CIVIL", + "CaseEventID": "MEDIATION_UNSUCCESSFUL", + "CaseFieldID": "caseTitle", + "DisplayContext": "READONLY", + "PageID": "mediationUnsuccessful", + "PageDisplayOrder": 1, + "PageFieldDisplayOrder": 2, + "ShowSummaryChangeOption": "N" + }, + { + "CaseTypeID": "CIVIL", + "CaseEventID": "MEDIATION_UNSUCCESSFUL", + "CaseFieldID": "defendantNameLabel", + "DisplayContext": "READONLY", + "PageID": "mediationUnsuccessful", + "PageDisplayOrder": 1, + "PageFieldDisplayOrder": 2, + "ShowSummaryChangeOption": "N" + }, + { + "CaseTypeID": "CIVIL", + "CaseEventID": "MEDIATION_UNSUCCESSFUL", + "CaseFieldID": "defendantName", + "DisplayContext": "READONLY", + "PageID": "mediationUnsuccessful", + "PageDisplayOrder": 1, + "PageFieldDisplayOrder": 3, + "ShowSummaryChangeOption": "N" + }, + { + "CaseTypeID": "CIVIL", + "CaseEventID": "MEDIATION_UNSUCCESSFUL", + "CaseFieldID": "unsuccessfulMediationReason", + "DisplayContext": "MANDATORY", + "PageID": "mediationUnsuccessful", + "PageDisplayOrder": 1, + "PageFieldDisplayOrder": 4, + "ShowSummaryChangeOption": "Y" + } +] diff --git a/ccd-definition/CaseField/CaseFieldLRspec-CUI-nonprod.json b/ccd-definition/CaseField/CaseFieldLRspec-CUI-nonprod.json index e64cebe944..879123995c 100644 --- a/ccd-definition/CaseField/CaseFieldLRspec-CUI-nonprod.json +++ b/ccd-definition/CaseField/CaseFieldLRspec-CUI-nonprod.json @@ -105,6 +105,35 @@ "FieldType": "Label", "SecurityClassification": "Public" }, + { + "CaseTypeID": "CIVIL", + "ID": "caseTitle", + "Label": "### ${applicant1.partyName} Vs ${respondent1.partyName}", + "FieldType": "Label", + "SecurityClassification": "Public" + }, + { + "CaseTypeID": "CIVIL", + "ID": "defendantNameLabel", + "Label": "### Defendant Name", + "FieldType": "Label", + "SecurityClassification": "Public" + }, + { + "CaseTypeID": "CIVIL", + "ID": "defendantName", + "Label": "${respondent1.partyName}", + "FieldType": "Label", + "SecurityClassification": "Public" + }, + { + "CaseTypeID": "CIVIL", + "ID": "unsuccessfulMediationReason", + "Label": "Mediation failed reason", + "FieldType": "FixedList", + "FieldTypeParameter": "MediationUnsuccessfulReasons", + "SecurityClassification": "Public" + }, { "CaseTypeID": "CIVIL", "ID": "applicant1RepaymentOptionForDefendantSpecLabel", diff --git a/ccd-definition/FixedLists/MediationUnsuccessfulReasons.json b/ccd-definition/FixedLists/MediationUnsuccessfulReasons.json new file mode 100644 index 0000000000..11378174f6 --- /dev/null +++ b/ccd-definition/FixedLists/MediationUnsuccessfulReasons.json @@ -0,0 +1,20 @@ +[ + { + "ID": "MediationUnsuccessfulReasons", + "ListElementCode": "PARTY_WITHDRAWS", + "ListElement": "Party withdraws from mediation", + "DisplayOrder": 1 + }, + { + "ID": "MediationUnsuccessfulReasons", + "ListElementCode": "APPOINTMENT_NO_AGREEMENT", + "ListElement": "Appointment no agreement reached", + "DisplayOrder": 2 + }, + { + "ID": "MediationUnsuccessfulReasons", + "ListElementCode": "APPOINTMENT_NOT_ASSIGNED", + "ListElement": "Appointment not assigned", + "DisplayOrder": 3 + } +]