Commit b742164b authored by Gabriel Commeau's avatar Gabriel Commeau
Browse files

Add 1st workflow diagram.

parent e762b619
Loading
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
```mermaid
---
title: WF-001-EPOC - Basic Workflow - Without or with emergency - No Notification
---
sequenceDiagram
autonumber

participant IA as Issuing 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)
SP -->> IA: /eevidence/production Response

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

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
```

Links to example messages:
- [(1) /eevidence/production Request](../../examples/form1.xml)
- (2) /eevidence/production Response
- ...