-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #462 from catenax-ng/feat/395-EDC-client-handle-mu…
…ltiple-DTRs-and-DTs Feat/395 edc client handle multiple dt rs and d ts
- Loading branch information
Showing
40 changed files
with
1,012 additions
and
389 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
28 changes: 0 additions & 28 deletions
28
docs/src/docs/arc42/cross-cutting/discovery-DTR--EDC-with-multiple-DTRs.puml
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...c42/cross-cutting/discovery-DTR--multiple-DTs-with-the-same-globalAssedId-in-one-DTR.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@startuml | ||
actor IRS | ||
participant IRS | ||
participant DTR | ||
|
||
IRS -> DTR: /query for globalAssetId | ||
|
108 changes: 108 additions & 0 deletions
108
...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,108 @@ | ||
@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 "DTR1" as DTR1 | ||
participant "DTR2" as DTR2 | ||
|
||
' 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 DTR1 contract offer | ||
EDCProvider1 -> EdcClient: No offer | ||
EdcClient -> DTRS: No token | ||
end | ||
|
||
else | ||
|
||
group CatalogRequestEDC2 DTR1 | ||
|
||
== 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 DTR1 contract offer | ||
EDCProvider2 -> EdcClient: DTR1 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 -> DTR1: Query for DT | ||
DTR1 -> DTRS: DT | ||
' result is AssetAdministrationShellDescriptor which is the actual data | ||
end | ||
|
||
else | ||
|
||
group CatalogRequestEDC2 DTR2 | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider2: Query for DTR1 contract offer | ||
EDCProvider2 -> EdcClient: DTR1 contract offer | ||
EdcClient -> EDCProvider2: Negotiate contract | ||
EDCProvider2 -> EdcClient: EDR Token callback | ||
|
||
EdcClient -> DTRS: EDR token | ||
|
||
|
||
== EDC Data Plane == | ||
|
||
DTRS -> DTR2: Query for DT | ||
DTR2 -> DTRS: DT | ||
end | ||
|
||
else | ||
|
||
group CatalogRequestEDC3 | ||
|
||
== EDC Control Plane == | ||
|
||
DTRS -> EdcClient: Get EDR Token for asset | ||
EdcClient -> EDCProvider3: Query for DTR1 contract offer | ||
EDCProvider3 -> EdcClient: DTR1 contract offer | ||
EdcClient -> EDCProvider3: Negotiate contract | ||
EDCProvider3 -> EdcClient: EDR Token callback | ||
EdcClient -> DTRS: EDR token | ||
|
||
== EDC Data Plane == | ||
|
||
DTRS -> DTR1: Query for DT | ||
DTR1 -> DTRS: No DT | ||
end | ||
end | ||
|
||
@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
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 |
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
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 |
Oops, something went wrong.