generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PI-1685: Add workflows to Approved Premises and Delius docs
- Loading branch information
Showing
11 changed files
with
3,770 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...d-premises-and-delius/tech-docs/diag/approved-premises-and-delius-workflow-application.d2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Approved Premises Workflow: Referral Application | ||
|
||
direction: right | ||
|
||
style { | ||
fill: "#ffffff" | ||
} | ||
|
||
# What triggers the workflow? | ||
approved_premises: Approved Premises (CAS1) { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Referral Application Workflow | ||
Referral application actions raise domain events | ||
| | ||
|
||
application_submitted: Application Submitted | ||
application_assessed: Application Assessed | ||
application_withdrawn: Application Withdrawn | ||
|
||
application_submitted -> application_assessed | ||
application_submitted -> application_withdrawn | ||
application_assessed -> application_withdrawn | ||
} | ||
|
||
domain_event_1: "approved-premises\n.application.submitted" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
domain_event_2: "approved-premises\n.application.assessed" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
domain_event_3: "approved-premises\n.application.withdrawn" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
|
||
# What happens in Delius? | ||
delius: Delius { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Delius Workflow | ||
Contacts of a specific type are added to Delius\ | ||
for each referral application action | ||
| | ||
|
||
d_contact: Create Contact | ||
} | ||
|
||
approved_premises -> domain_event_1 | ||
approved_premises -> domain_event_2 | ||
approved_premises -> domain_event_3 | ||
|
||
domain_event_1 -> delius | ||
domain_event_2 -> delius | ||
domain_event_3 -> delius | ||
|
||
*.style.border-radius: 10 | ||
*.*.style.border-radius: 10 | ||
*.*.style.stroke-width: 2 | ||
*.*.style.font-size: 12 |
46 changes: 46 additions & 0 deletions
46
...ises-and-delius/tech-docs/diag/approved-premises-and-delius-workflow-booking-cancelled.d2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Approved Premises Workflow: Booking Cancelled | ||
|
||
direction: right | ||
|
||
style { | ||
fill: "#ffffff" | ||
} | ||
|
||
# What triggers the workflow? | ||
approved_premises: Approved Premises (CAS1) { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Booking Workflow | ||
Cancel an Approved Premises booking | ||
| | ||
|
||
booking_cancelled: Cancel Booking | ||
} | ||
|
||
domain_event: "approved-premises\n.booking.cancelled" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
|
||
# What happens in Delius? | ||
delius: Delius { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## AP Referral Workflow | ||
Update Delius AP referral to be soft deleted | ||
| | ||
|
||
d_referral: Delete Delius\nAP Referral | ||
d_contact: Create Contact | ||
|
||
d_referral -> d_contact | ||
} | ||
|
||
approved_premises -> domain_event -> delius | ||
|
||
*.style.border-radius: 10 | ||
*.*.style.border-radius: 10 | ||
*.*.style.stroke-width: 2 | ||
*.*.style.font-size: 12 |
43 changes: 43 additions & 0 deletions
43
...emises-and-delius/tech-docs/diag/approved-premises-and-delius-workflow-booking-changed.d2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Approved Premises Workflow: Booking Changed | ||
|
||
direction: right | ||
|
||
style { | ||
fill: "#ffffff" | ||
} | ||
|
||
# What triggers the workflow? | ||
approved_premises: Approved Premises (CAS1) { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Booking Workflow | ||
Update an Approved Premises Booking | ||
| | ||
|
||
booking_changed: Update Booking | ||
} | ||
|
||
domain_event: "approved-premises\n.booking.changed" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
|
||
# What happens in Delius? | ||
delius: Delius { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## AP Referral Workflow | ||
Update Delius AP referral to match | ||
| | ||
|
||
d_referral: Update Delius\nAP Referral | ||
} | ||
|
||
approved_premises -> domain_event -> delius | ||
|
||
*.style.border-radius: 10 | ||
*.*.style.border-radius: 10 | ||
*.*.style.stroke-width: 2 | ||
*.*.style.font-size: 12 |
46 changes: 46 additions & 0 deletions
46
...-premises-and-delius/tech-docs/diag/approved-premises-and-delius-workflow-booking-made.d2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Approved Premises Workflow: Booking Made | ||
|
||
direction: right | ||
|
||
style { | ||
fill: "#ffffff" | ||
} | ||
|
||
# What triggers the workflow? | ||
approved_premises: Approved Premises (CAS1) { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Booking Workflow | ||
Complete an Approved Premises Booking | ||
| | ||
|
||
booking_made: Complete Booking | ||
} | ||
|
||
domain_event: "approved-premises\n.booking.made" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
|
||
# What happens in Delius? | ||
delius: Delius { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## AP Referral Workflow | ||
Initiate Delius AP referral | ||
| | ||
|
||
d_referral: Create Delius\nAP Referral | ||
d_contact: Create Contact | ||
|
||
d_referral -> d_contact | ||
} | ||
|
||
approved_premises -> domain_event -> delius | ||
|
||
*.style.border-radius: 10 | ||
*.*.style.border-radius: 10 | ||
*.*.style.stroke-width: 2 | ||
*.*.style.font-size: 12 |
Oops, something went wrong.