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.
Merge branch 'main' into PI-2781-new-api-to-show-previous-orders
- Loading branch information
Showing
12 changed files
with
2,337 additions
and
326 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
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
582 changes: 291 additions & 291 deletions
582
...ary-and-delius/tech-docs/source/img/assessment-summary-assessment-submitted.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
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
37 changes: 37 additions & 0 deletions
37
projects/risk-assessment-scores-to-delius/tech-docs/diag/risk-assessment-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,37 @@ | ||
|
||
style { ...@../../../../script/style.style } | ||
vars { ...@../../../../script/style.vars } | ||
** { ...@../../../../script/style.all-style } | ||
|
||
context-oasys: OASys Context { | ||
entities: Entities { | ||
grid-columns: 3 | ||
pop: Person on Probation | ||
rsr: RSR | ||
osp: OSP | ||
ogrs: OGRS score | ||
date: Assessment date | ||
event: Event number | ||
} | ||
} | ||
|
||
context-delius: Delius Context { | ||
|
||
interface: Risk Assessment\n and Delius { | ||
type: Anti-Corruption\nLayer | ||
} | ||
|
||
entities: Entities { | ||
grid-columns: 2 | ||
event: Event | ||
mte: Management tier event | ||
contact: Contact | ||
pop: Person on Probation | ||
pm: Person manager | ||
staff: Staff | ||
team: Team | ||
ogrs-assessment: OGRS Assessment | ||
} | ||
} | ||
|
||
context-oasys--context-delius.interface: Upstream\n\n\nDownstream |
39 changes: 39 additions & 0 deletions
39
projects/risk-assessment-scores-to-delius/tech-docs/diag/risk-assessment-scores-workflow.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,39 @@ | ||
# Risk Scores Workflow: Risk Scores Updated | ||
|
||
direction: right | ||
|
||
style { ...@../../../../script/style.style } | ||
vars { ...@../../../../script/style.vars } | ||
** { ...@../../../../script/style.all-style } | ||
|
||
# What triggers the workflow? | ||
risk-scores: Risk Scores Updated { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Risk Scores Updated | ||
- RSR and OSP scores are\ | ||
updated in the OASys system | ||
| | ||
|
||
risk_scores_updated: Risk Scores Updated | ||
} | ||
|
||
domain_event: "risk-assessment\n.scores.rsr.determined" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
|
||
# What happens in Delius? | ||
delius: Delius { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Update Risk Scores | ||
- Update the risk/ | ||
scores in Delius | ||
| | ||
|
||
} | ||
|
||
risk-scores -> domain_event -> delius |
51 changes: 51 additions & 0 deletions
51
projects/risk-assessment-scores-to-delius/tech-docs/diag/risk-assessment-workflow.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,51 @@ | ||
# Risk Assessment Workflow: Risk Assessment Submitted | ||
|
||
direction: right | ||
|
||
style { ...@../../../../script/style.style } | ||
vars { ...@../../../../script/style.vars } | ||
** { ...@../../../../script/style.all-style } | ||
|
||
# What triggers the workflow? | ||
assessment-submitted: Risk Assessment Submitted { | ||
style.font-size: 24 | ||
|
||
explanation: |md | ||
## Risk Assessment Submitted | ||
- A risk assessment is\ | ||
produced in OASys | ||
| | ||
|
||
risk_assessment_produced: Risk Assessment Submitted | ||
} | ||
|
||
domain_event: "risk-assessment\n.scores.ogrs.determined" { | ||
style.font-size: 12 | ||
shape: queue | ||
} | ||
|
||
# What happens in Delius? | ||
delius: Delius { | ||
style.font-size: 24 | ||
grid-columns: 2 | ||
|
||
d_store_scores: Add/Update risk assessment scores | ||
d_contact: Create Contact | ||
d_create_mte: Create management tier event | ||
|
||
d_store_scores -> d_contact -> d_create_mte | ||
|
||
explanation: |md | ||
## Risk Assessment Submitted | ||
- Check for an existing\ | ||
risk assessment | ||
- Add/Update the risk\ | ||
assessment scores | ||
- Create a new contact | ||
- Create a new management\ | ||
tier event | ||
| | ||
|
||
} | ||
|
||
assessment-submitted -> domain_event -> delius |
Oops, something went wrong.