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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
8 changed files
with
2,059 additions
and
22 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
41 changes: 41 additions & 0 deletions
41
...on-custody-status-to-delius/tech-docs/diag/prison-custody-status-to-delius-context-map.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,41 @@ | ||
|
||
style { | ||
fill: "#ffffff" | ||
} | ||
|
||
context-nomis: NOMIS/DPS Context { | ||
entities: Entities { | ||
grid-columns: 3 | ||
prison-release: Prison Release | ||
prison-receive: Prison Receive | ||
location: Location | ||
} | ||
} | ||
|
||
context-delius: Delius Context { | ||
style.stroke-width: 8 | ||
|
||
interface: Prison Custody Status to Delius { | ||
type: Anti-Corruption Layer | ||
} | ||
|
||
entities: Entities { | ||
grid-columns: 3 | ||
pop: Person on Probation | ||
event: Event | ||
custody: Custody | ||
release: Release | ||
recall: Recall | ||
staff: Staff | ||
team: Team | ||
transfer: Transfer | ||
contact: Contact | ||
institution: Institution | ||
} | ||
} | ||
|
||
context-nomis--context-delius.interface: Upstream\n\n\nDownstream | ||
|
||
*.style.border-radius: 10 | ||
*.*.style.border-radius: 10 | ||
*.*.style.stroke-width: 2 |
62 changes: 62 additions & 0 deletions
62
...ustody-status-to-delius/tech-docs/diag/prison-custody-status-to-delius-workflow-recall.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,62 @@ | ||
# Custody Status Workflow: Prison Recall | ||
|
||
direction: right | ||
|
||
style { | ||
fill: "#ffffff" | ||
} | ||
|
||
# What triggers the workflow? | ||
nomis: NOMIS { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Prison Release | ||
User receives a person via NOMIS. \ | ||
This action raises a domain event | ||
| | ||
|
||
received: Prisoner Received | ||
} | ||
|
||
domain_event: "prison-offender-events\n.prisoner.received" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
|
||
# What happens in Delius? | ||
delius: Delius { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Delius Throughcare Updates | ||
Custody status is updated in Delius based on \ | ||
the status, movement reason and location \ | ||
in the domain event message | ||
| | ||
|
||
d_recall: Add Recall Record | ||
d_location: Update\nCurrent Institution | ||
d_custody: Update Custody Status | ||
d_licence: Terminate\nLicence Conditions | ||
d_contact: Create Contact | ||
|
||
d_recall -> d_location -> d_custody | ||
d_licence -> d_contact | ||
} | ||
|
||
nomis -> domain_event -> delius | ||
|
||
|
||
# Styles | ||
|
||
style { | ||
fill: "#ffffff" | ||
} | ||
|
||
** { | ||
style { | ||
border-radius: 10 | ||
stroke-width: 2 | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
...stody-status-to-delius/tech-docs/diag/prison-custody-status-to-delius-workflow-release.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,61 @@ | ||
# Custody Status Workflow: Prison Release | ||
|
||
direction: right | ||
|
||
style { | ||
fill: "#ffffff" | ||
} | ||
|
||
# What triggers the workflow? | ||
nomis: NOMIS { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Prison Release | ||
User releases person via NOMIS. \ | ||
This action raises a domain event | ||
| | ||
|
||
release: Prisoner Released | ||
} | ||
|
||
domain_event: "prison-offender-events\n.prisoner.released" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
|
||
# What happens in Delius? | ||
delius: Delius { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Delius Throughcare Updates | ||
Custody status is updated in Delius based on \ | ||
the status, movement reason and location \ | ||
in the domain event message | ||
| | ||
|
||
d_release: Add\nRelease Record | ||
d_location: Update\nCurrent Institution | ||
d_custody: Update\nCustody Status | ||
d_contact: Create Contact | ||
|
||
d_release -> d_location | ||
d_custody -> d_contact | ||
} | ||
|
||
nomis -> domain_event -> delius | ||
|
||
|
||
# Styles | ||
|
||
style { | ||
fill: "#ffffff" | ||
} | ||
|
||
** { | ||
style { | ||
border-radius: 10 | ||
stroke-width: 2 | ||
} | ||
} |
128 changes: 128 additions & 0 deletions
128
...-to-delius/tech-docs/source/img/prison-custody-status-to-delius-context-map.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
859 changes: 859 additions & 0 deletions
859
...delius/tech-docs/source/img/prison-custody-status-to-delius-workflow-recall.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
858 changes: 858 additions & 0 deletions
858
...elius/tech-docs/source/img/prison-custody-status-to-delius-workflow-release.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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