-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
273 additions
and
47 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
Binary file removed
BIN
-30.7 KB
...oncept/#638-contractagreement-admin-view/contractagreementview-sequenceflow.png
Binary file not shown.
37 changes: 0 additions & 37 deletions
37
docs/concept/#638-contractagreement-admin-view/contractagreementview-sequenceflow.puml
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+40.1 KB
docs/concept/#638-contractagreement-admin-view/get-all-contracts-sequenceflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions
46
docs/concept/#638-contractagreement-admin-view/get-all-contracts-sequenceflow.puml
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 @@ | ||
@startuml | ||
title | ||
==GET api/contracts | ||
end title | ||
|
||
autonumber "<B>[00]" | ||
|
||
participant "Trace-X Frontend" as FE order 0 | ||
participant "Trace-X Backend" as BE order 1 | ||
participant "Trace-X EDC Client Library" as TXEDC order 2 | ||
participant "EDC" as EDC order 3 | ||
|
||
FE -> BE: GET api/contracts | ||
activate BE | ||
BE -> TXEDC: POST tx-edc/management/v2/contractagreements/request | ||
activate TXEDC | ||
autonumber stop | ||
TXEDC -> EDC: Get contractAgreements | ||
activate EDC | ||
EDC --> TXEDC: contractAgreements | ||
deactivate EDC | ||
TXEDC --> BE: JSON response | ||
autonumber resume | ||
deactivate TXEDC | ||
BE -> BE: First mapping | ||
activate BE | ||
deactivate BE | ||
loop for all contractAgreementIds | ||
BE -> TXEDC: GET tx-edc/management/v2/contractagreements/{contractAgreementId}/negotiation | ||
activate TXEDC | ||
autonumber stop | ||
TXEDC -> EDC: Get contractNegotiation | ||
activate EDC | ||
EDC --> TXEDC: contractNegotiation | ||
deactivate EDC | ||
TXEDC --> BE: JSON response | ||
autonumber resume | ||
deactivate TXEDC | ||
BE -> BE: Second mapping | ||
activate BE | ||
deactivate BE | ||
end | ||
BE --> FE: JSON response | ||
deactivate BE | ||
|
||
@enduml |
Binary file added
BIN
+60.1 KB
docs/concept/#638-contractagreement-admin-view/get-contract-sequenceflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions
69
docs/concept/#638-contractagreement-admin-view/get-contract-sequenceflow.puml
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,69 @@ | ||
@startuml | ||
title | ||
==GET api/contracts/{tx-assetId} | ||
end title | ||
|
||
autonumber "<B>[00]" | ||
|
||
participant "Trace-X Frontend" as FE order 0 | ||
participant "Trace-X Backend" as BE order 1 | ||
participant "Trace-X DB" as DB order 2 | ||
participant "Trace-X EDC Client Library" as TXEDC order 3 | ||
participant "EDC" as EDC order 4 | ||
participant "IRS" as IRS order 5 | ||
|
||
group async | ||
BE -> IRS: Cron job: GET Trace-X assets | ||
activate BE | ||
activate IRS | ||
autonumber stop | ||
IRS --> BE: Trace-X assets (incl. contractAgreementId) | ||
deactivate IRS | ||
BE -> DB: Save Trace-X assets | ||
autonumber resume | ||
deactivate BE | ||
end | ||
|
||
FE -> BE: GET api/contracts/{tx-assetId} | ||
activate BE | ||
BE -> DB: Take contractAgreementIds for tx-assetId | ||
activate DB | ||
autonumber stop | ||
DB --> BE: contractAgreementIds | ||
autonumber resume | ||
deactivate DB | ||
|
||
loop for all contractAgreementIds | ||
BE -> TXEDC: GET tx-edc/management/v2/contractagreements/{contractAgreementId} | ||
activate TXEDC | ||
autonumber stop | ||
TXEDC -> EDC: Get contractAgreement | ||
activate EDC | ||
EDC --> TXEDC: contractAgreement | ||
deactivate EDC | ||
TXEDC --> BE: JSON response | ||
autonumber resume | ||
deactivate TXEDC | ||
BE -> BE: First mapping | ||
activate BE | ||
deactivate BE | ||
|
||
BE -> TXEDC: GET tx-edc/management/v2/contractagreements/{contractAgreementId}/negotiation | ||
activate TXEDC | ||
autonumber stop | ||
TXEDC -> EDC: Get contractNegotiation | ||
activate EDC | ||
EDC --> TXEDC: contractNegotiation | ||
deactivate EDC | ||
TXEDC --> BE: JSON response | ||
autonumber resume | ||
deactivate TXEDC | ||
BE -> BE: Second mapping | ||
activate BE | ||
deactivate BE | ||
end | ||
autonumber stop | ||
BE --> FE: JSON response | ||
deactivate BE | ||
|
||
@enduml |