Commit 41cb2b4a authored by Gabriel Commeau's avatar Gabriel Commeau
Browse files

Add 2nd workflow for e-Evidence EPOC, in the top-level workflow direcotry.

parent 6e8cbd52
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
# e-Evidence Workflows

This directory contains sequence diagrams of the messages exchanges during the various e-Evidence workflows, along with links to example messages.

1. [WF-001-EPOC](WF-001-EPOC/README.md)
1. [WF-002-EPOC](WF-002-EPOC.md)
 No newline at end of file
+51 −0
Original line number Diff line number Diff line
```mermaid
---
config:
  theme: forest
title: WF-002-EPOC - Basic workflow – No Emergency - With Notification
---
sequenceDiagram
autonumber

participant IA as Issuing Authority
participant EA as Enforcing Authority
participant SP as Service Provider

IA ->> SP: /eevidence/production Request (Form 1)
Note right of IA: CREATE AuthorisationObject (1)<br/>CREATE LDTaskObject (1..n)<br/>CREATE EPOCAdditionalInfo (1..n)<br/>CREATE DocumentObject (1)
IA ->> EA: Notification (Form 1 + Section M for Notification) (DIS Internal)
SP -->> IA: /eevidence/production Response (Technical Acknowledgement)

Note over EA: Assesses the request<br/>No grounds for refusal are found

Note over SP: Checks if the EPOC can be executed

opt Request clarification
    Note over SP: Drafts request for clarification

    SP ->> IA: //eevidence/correspondence Request
    Note left of SP: DELIVER DocumentObject (1)
    IA -->> SP: //eevidence/correspondence Response

    Note over IA: Formulates clarification

    IA ->> SP: //eevidence/correspondence Request
    Note right of IA: CREATE DocumentObject (1)<br/>CREATE EPOCAdditionalInfo (0..n)
    SP -->> IA: //eevidence/correspondence Response
end

Note over SP: Processes the query<br/>to gather the requested data

alt Request No ground for refusal
    EA ->> SP: /eevidence/groundsforrefusal Request (No Grounds for Refusal)
    Note right of EA: CREATE DocumentObject (1..n)<br/>CREATE EPOCAdditionalInfo (1..n)
    EA ->> IA: /eevidence/groundsforrefusal Request (No Grounds for Refusal) (DIS Internal)
    SP -->> EA: /eevidence/groundsforrefusal Response
else Wait 10 days
    Note over SP: Holds the data
end

SP ->> IA: /eevidence/outcome Request (Data)
Note left of SP: UPDATE AuthorisationObject (1)<br/>UPDATE LDTaskObject (1..n)<br/>UPDATE DocumentObject (1..n)<br/>DELIVER DeliveryObject (1..n)
IA -->> SP: /eevidence/outcome Response
```
 No newline at end of file