forked from eclipse-tractusx/item-relationship-service
-
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.
feat(impl):[#395] Add more detailed diagrams
- Loading branch information
Showing
6 changed files
with
336 additions
and
2 deletions.
There are no files selected for viewing
84 changes: 84 additions & 0 deletions
84
...c/docs/arc42/cross-cutting/discovery-DTR--multiple-EDCs-with-multiple-DTRs--detailed.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,84 @@ | ||
@startuml | ||
|
||
|
||
box IRS | ||
participant DecentralDigitalTwinRegistryService as DTRS | ||
participant EdcSubmodelClientImpl as EdcClient | ||
end box | ||
|
||
|
||
participant DiscoveryService | ||
participant "EDC Provider 1" as EDCProvider1 | ||
participant "EDC Provider 2" as EDCProvider2 | ||
participant "EDC Provider 3" as EDCProvider3 | ||
participant "DTR" as DTR | ||
|
||
' DigitalTwinDelegate.process | ||
' DecentralDigitalTwinRegistryService.fetchShells | ||
' ConnectorEndpointsService.fetchConnectorEndpoints(String bpn) -- cacheable | ||
DTRS -> DiscoveryService: Get EDCs for BPN | ||
' discoveryFinderClient.findDiscoveryEndpoints(DiscoveryFinderRequest request) | ||
DiscoveryService -> DTRS: Return list of 3 EDCs | ||
|
||
' Turned into futures to get the EDR tokens by | ||
' EndpointDataForConnectorsService.createFindEndpointDataForConnectorsFutures(List<String> edcUrls) | ||
|
||
par | ||
group CatalogRequestEDC1 | ||
|
||
== EDC Control Plane == | ||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider1: Query for DTR contract offer | ||
EDCProvider1 -> EdcClient: No offer | ||
EdcClient -> DTRS: No token | ||
end | ||
|
||
else | ||
|
||
group CatalogRequestEDC2 | ||
|
||
== EDC Control Plane == | ||
|
||
' this happens in DecentralDigitalTwinRegistryService.fetchShellDescriptorsForConnectorEndpoints | ||
' when each of List<CompletableFuture<EndpointDataReference>> is composed | ||
' with fetchShellDescriptorsForKey | ||
DTRS -> EdcClient: Get EDR Token for asset | ||
' EdcSubmodelFacade.getEndpointReferenceForAsset | ||
' EdcSubmodelClientImpl.getEndpointReferenceForAsset | ||
EdcClient -> EDCProvider2: Query for DTR contract offer | ||
EDCProvider2 -> EdcClient: DTR contract offer | ||
' EdcSubmodelClientImpl.negotiateContract | ||
EdcClient -> EDCProvider2: Negotiate contract | ||
EDCProvider2 -> EdcClient: EDR Token callback | ||
EdcClient -> DTRS: EDR token | ||
|
||
|
||
== EDC Data Plane == | ||
|
||
' DecentralDigitalTwinRegistryService | ||
' .fetchShellDescriptor(EndpointDataReference, DigitalTwinRegistryKey) | ||
DTRS -> DTR: Query for DT | ||
DTR -> DTRS: DT | ||
' result is AssetAdministrationShellDescriptor which is the actual data | ||
end | ||
|
||
else | ||
|
||
group CatalogRequestEDC3 | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider3: Query for DTR contract offer | ||
EDCProvider3 -> EdcClient: DTR contract offer | ||
EdcClient -> EDCProvider3: Negotiate contract | ||
EDCProvider3 -> EdcClient: EDR Token callback | ||
EdcClient -> DTRS: EDR token | ||
|
||
== EDC Data Plane == | ||
|
||
DTRS -> DTR: Query for DT | ||
DTR -> DTRS: No DT | ||
end | ||
end | ||
@enduml |
58 changes: 58 additions & 0 deletions
58
docs/src/docs/arc42/cross-cutting/discovery-DTR--multiple-EDCs-with-no-DTRs--detailed.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,58 @@ | ||
@startuml | ||
|
||
box IRS | ||
participant DecentralDigitalTwinRegistryService as DTRS | ||
participant EdcSubmodelClientImpl as EdcClient | ||
end box | ||
|
||
participant "Discovery Service" as DiscoveryService | ||
|
||
participant "EDC 1" as EDCProvider1 | ||
participant "EDC 2" as EDCProvider2 | ||
participant "EDC 3" as EDCProvider3 | ||
|
||
|
||
' ConnectorEndpointsService.fetchConnectorEndpoints(String bpn) -- cacheable | ||
DTRS -> DiscoveryService: Get EDCs for BPN | ||
' discoveryFinderClient.findDiscoveryEndpoints(DiscoveryFinderRequest request) | ||
DiscoveryService -> DTRS: Return list of 3 EDCs | ||
|
||
par | ||
group Catalog Request to EDC 1 | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider1: Query for DTR contract offer | ||
EDCProvider1 -> EdcClient: No offer | ||
EdcClient -> DTRS: No token | ||
end | ||
|
||
else | ||
|
||
group Catalog Request to EDC 2 | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider2: Query for DTR contract offer | ||
EDCProvider2 -> EdcClient: No offer | ||
EdcClient -> DTRS: No token | ||
end | ||
|
||
else | ||
|
||
group Catalog Request to EDC 3 | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider3: Query for DTR contract offer | ||
EDCProvider3 -> EdcClient: No offer | ||
EdcClient -> DTRS: No token | ||
end | ||
end | ||
|
||
DTRS -> DTRS: Tombstone | ||
|
||
@enduml |
61 changes: 61 additions & 0 deletions
61
docs/src/docs/arc42/cross-cutting/discovery-DTR--multiple-EDCs-with-one-DTR--detailed.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,61 @@ | ||
@startuml | ||
|
||
box IRS | ||
participant DecentralDigitalTwinRegistryService as DTRS | ||
participant EdcSubmodelClientImpl as EdcClient | ||
end box | ||
|
||
participant DiscoveryService | ||
participant "EDC Provider 1" as EDCProvider1 | ||
participant "EDC Provider 2" as EDCProvider2 | ||
participant "EDC Provider 3" as EDCProvider3 | ||
participant DTR | ||
|
||
' ConnectorEndpointsService.fetchConnectorEndpoints(String bpn) -- cacheable | ||
DTRS -> DiscoveryService: Get EDCs for BPN | ||
' discoveryFinderClient.findDiscoveryEndpoints(DiscoveryFinderRequest request) | ||
DiscoveryService -> DTRS: Return list of 3 EDCs | ||
|
||
par | ||
group CatalogRequestEDC1 | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider1: Query for DTR contract offer | ||
EDCProvider1 -> EdcClient: No offer | ||
EdcClient -> DTRS: No token | ||
end | ||
|
||
else | ||
|
||
group CatalogRequestEDC2 | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider2: Query for DTR contract offer | ||
EDCProvider2 -> EdcClient: No offer | ||
EdcClient -> DTRS: No token | ||
end | ||
|
||
else | ||
|
||
group CatalogRequestEDC3 | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider3: Query for DTR contract offer | ||
EDCProvider3 -> EdcClient: DTR contract offer | ||
EdcClient -> EDCProvider3: Negotiate contract | ||
EDCProvider3 -> EdcClient: EDR Token callback | ||
EdcClient -> DTRS: EDR token | ||
|
||
== EDC Data Plane == | ||
|
||
DTRS -> DTR: Query for DT | ||
DTR -> DTRS: DT | ||
end | ||
end | ||
@enduml |
49 changes: 49 additions & 0 deletions
49
docs/src/docs/arc42/cross-cutting/discovery-DTR--one-EDC-with-multiple-DTRs--detailed.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,49 @@ | ||
@startuml | ||
|
||
box IRS | ||
participant DecentralDigitalTwinRegistryService as DTRS | ||
participant EdcSubmodelClientImpl as EdcClient | ||
end box | ||
|
||
participant DiscoveryService | ||
participant "EDC Provider" as EDCProvider | ||
participant "DTR 1" as DTR1 | ||
participant "DTR 2" as DTR2 | ||
|
||
' ConnectorEndpointsService.fetchConnectorEndpoints(String bpn) -- cacheable | ||
DTRS -> DiscoveryService: Get EDCs for BPN | ||
' discoveryFinderClient.findDiscoveryEndpoints(DiscoveryFinderRequest request) | ||
DiscoveryService -> DTRS: Return list of 1 EDC | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient ->> EDCProvider: Query for DTR contract offer | ||
EDCProvider -> EdcClient: 2 DTR contract offers | ||
|
||
par | ||
group Query DTR 1 | ||
EdcClient -> EDCProvider: Negotiate contract | ||
EDCProvider -> EdcClient: EDR Token callback | ||
EdcClient -> DTRS: EDR token | ||
|
||
== EDC Data Plane == | ||
|
||
DTRS -> DTR1: Query for DT | ||
DTR1 -> DTRS: no DT | ||
end | ||
|
||
else | ||
|
||
group Query DTR 2 | ||
EdcClient -> EDCProvider: Negotiate contract | ||
EDCProvider -> EdcClient: EDR Token callback | ||
EdcClient -> DTRS: EDR token | ||
|
||
== EDC Data Plane == | ||
|
||
DTRS -> DTR2: Query for DT | ||
DTR2 -> DTRS: DT | ||
end | ||
end | ||
@enduml |
41 changes: 41 additions & 0 deletions
41
docs/src/docs/arc42/cross-cutting/discovery-DTR--one-EDC-with-one-DTR--detailed.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,41 @@ | ||
@startuml | ||
|
||
box IRS | ||
participant DecentralDigitalTwinRegistryService as DTRS | ||
participant EdcSubmodelClientImpl as EdcClient | ||
end box | ||
|
||
participant DiscoveryService | ||
participant "EDC Provider 3" as EDCProvider3 | ||
participant DTR | ||
|
||
' DigitalTwinDelegate.process | ||
' ConnectorEndpointsService.fetchConnectorEndpoints(String bpn) -- cacheable | ||
DTRS -> DiscoveryService: Get EDCs for BPN | ||
' discoveryFinderClient.findDiscoveryEndpoints(DiscoveryFinderRequest request) | ||
DiscoveryService -> DTRS: Return list of 1 EDC | ||
|
||
== EDC Control Plane == | ||
|
||
' see EdcSubmodelFacade.getEndpointReferenceForAsset, | ||
' EdcSubmodelClient.getEndpointReferencesForAsset, | ||
' EdcSubmodelClientImpl.getEndpointReferencesForAsset | ||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider3: Query for DTR contract offer | ||
EDCProvider3 -> EdcClient: DTR contract offer | ||
' Contract offer = CatalogItem | ||
EdcClient -> EDCProvider3: Negotiate contract | ||
|
||
EDCProvider3 -> EdcClient: EDR Token callback | ||
' EDR Token callback (this is the answer from pollingService) | ||
EdcClient -> DTRS: EDR Token | ||
' EDR Token = EndpointDataReference | ||
|
||
== EDC Data Plane == | ||
|
||
' mapToShellId | ||
' DecentralDigitalTwinRegistryClient.getAssetAdministrationShellDescriptor | ||
DTRS -> DTR: Query for DT | ||
DTR -> DTRS: DT | ||
|
||
@enduml |
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