forked from eclipse-edc/Connector
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add first draft of a Data Plane Signaling specification.
- Loading branch information
Showing
18 changed files
with
338 additions
and
10 deletions.
There are no files selected for viewing
Binary file added
BIN
+55.1 KB
docs/developer/data-plane-signaling/data-plane-signaling-state-machine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions
64
docs/developer/data-plane-signaling/data-plane-signaling-state-machine.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,64 @@ | ||
' | ||
' Copyright (c) 2024 Fraunhofer Institute for Software and Systems Engineering ISST | ||
' | ||
' This program and the accompanying materials are made available under the | ||
' terms of the Apache License, Version 2.0 which is available at | ||
' https://www.apache.org/licenses/LICENSE-2.0 | ||
' | ||
' SPDX-License-Identifier: Apache-2.0 | ||
' | ||
' Contributors: | ||
' Florian Zimmer - Initial Version | ||
' | ||
|
||
@startuml | ||
!define DscClr(x) <color:#7b839a>x</color> | ||
|
||
skinparam WrapWidth 270 | ||
|
||
state "STARTED" as started_push #e6ebfa;line:blue | ||
started_push: DscClr(//trying to complete transfer process//) | ||
|
||
state "STARTED" as started_pull #e6ebfa;line:blue | ||
started_pull: DscClr(DataFlowStartMessage<PULL>) | ||
|
||
state "RECEIVED" as received #e6ebfa;line:blue | ||
received : DscClr(DataFlowStartMessage<PUSH>) | ||
|
||
state "COMPLETED" as completed #e6ebfa;line:blue | ||
completed: DscClr(//trying to send TransferProcessCompleteRequest to callback address (CP)//) | ||
|
||
state "NOTIFIED" as notified #e6ebfa;line:blue | ||
notified : DscClr(TransferProcessFailRequest //or// TransferProcessCompleteRequest) | ||
|
||
state "FAILED" as failed #e6ebfa;line:blue | ||
failed : DscClr(//trying to send TransferProcessFailRequest to callback address (CP)//) | ||
|
||
state "SUSPENDED / TERMINATED" as suspended #f5cccd;line:red | ||
suspended : DscClr(DataFlowSuspendMessage //or// DataFlowTerminateMessage) | ||
|
||
[*] --> received : CP | ||
received -[dashed]-> started_push | ||
|
||
started_push -[dashed]-> failed | ||
started_push -[dashed]-> completed | ||
|
||
failed -[dashed]-> failed | ||
failed --> notified : DP | ||
|
||
completed -[dashed]-> completed | ||
completed --> notified : DP | ||
|
||
notified --> [*] | ||
|
||
[*] --> started_pull : CP | ||
started_pull --> [*] | ||
|
||
received --> suspended : CP | ||
started_push --> suspended : CP | ||
started_pull --> suspended : CP | ||
failed --> suspended : CP | ||
completed --> suspended : CP | ||
notified --> suspended : CP | ||
suspended --> [*] | ||
@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
Binary file added
BIN
+9.21 KB
...veloper/data-plane-signaling/message-types/diagrams/dataFlowResponseMessage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
docs/developer/data-plane-signaling/message-types/diagrams/dataFlowResponseMessage.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,25 @@ | ||
' | ||
' Copyright (c) 2024 Fraunhofer Institute for Software and Systems Engineering ISST | ||
' | ||
' This program and the accompanying materials are made available under the | ||
' terms of the Apache License, Version 2.0 which is available at | ||
' https://www.apache.org/licenses/LICENSE-2.0 | ||
' | ||
' SPDX-License-Identifier: Apache-2.0 | ||
' | ||
' Contributors: | ||
' Florian Zimmer - Initial Version | ||
' | ||
|
||
@startuml | ||
class DataFlowReponseMessage #e4ebfa ##75acfa { | ||
@type: "DataFlowResponseMessage" | ||
} | ||
|
||
class DataAddress #e4ebfa ##75acfa { | ||
@type: "DataAddress" | ||
properties: Map<String, Object> | ||
} | ||
|
||
DataFlowReponseMessage "1" *-[#747c94]- "1" DataAddress : dataAddress | ||
@enduml |
Binary file added
BIN
+19.4 KB
.../developer/data-plane-signaling/message-types/diagrams/dataFlowStartMessage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions
39
docs/developer/data-plane-signaling/message-types/diagrams/dataFlowStartMessage.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,39 @@ | ||
' | ||
' Copyright (c) 2024 Fraunhofer Institute for Software and Systems Engineering ISST | ||
' | ||
' This program and the accompanying materials are made available under the | ||
' terms of the Apache License, Version 2.0 which is available at | ||
' https://www.apache.org/licenses/LICENSE-2.0 | ||
' | ||
' SPDX-License-Identifier: Apache-2.0 | ||
' | ||
' Contributors: | ||
' Florian Zimmer - Initial Version | ||
' | ||
|
||
@startuml | ||
class DataFlowStartMessage #e4ebfa ##75acfa { | ||
@type: "DataFlowStartMessage" | ||
id: String | ||
processId: String | ||
assetId: String | ||
participantId: String | ||
agreementId: String | ||
callbackAddress: URI | ||
properties: Map<String, String> | ||
traceContext: Map<String, String> | ||
} | ||
|
||
class DataAddress #e4ebfa ##75acfa { | ||
@type: "DataAddress" | ||
properties: Map<String, Object> | ||
} | ||
|
||
enum FlowType #e4ebfa ##75acfa { | ||
PUSH | ||
PULL | ||
} | ||
|
||
DataFlowStartMessage "1" *-[#747c94]- "1" FlowType : flowType | ||
DataFlowStartMessage "1" *-[#747c94]- "2" DataAddress : sourceDataAddress\n destinationDataAddress | ||
@enduml |
Binary file added
BIN
+4.1 KB
...eveloper/data-plane-signaling/message-types/diagrams/dataFlowSuspendMessage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
docs/developer/data-plane-signaling/message-types/diagrams/dataFlowSuspendMessage.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,19 @@ | ||
' | ||
' Copyright (c) 2024 Fraunhofer Institute for Software and Systems Engineering ISST | ||
' | ||
' This program and the accompanying materials are made available under the | ||
' terms of the Apache License, Version 2.0 which is available at | ||
' https://www.apache.org/licenses/LICENSE-2.0 | ||
' | ||
' SPDX-License-Identifier: Apache-2.0 | ||
' | ||
' Contributors: | ||
' Florian Zimmer - Initial Version | ||
' | ||
|
||
@startuml | ||
class DataFlowSuspendMessage #e4ebfa ##75acfa { | ||
@type: "DataFlowSuspendMessage" | ||
reason: String | ||
} | ||
@enduml |
Binary file added
BIN
+4.12 KB
...eloper/data-plane-signaling/message-types/diagrams/dataFlowTerminateMessage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
docs/developer/data-plane-signaling/message-types/diagrams/dataFlowTerminateMessage.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,19 @@ | ||
' | ||
' Copyright (c) 2024 Fraunhofer Institute for Software and Systems Engineering ISST | ||
' | ||
' This program and the accompanying materials are made available under the | ||
' terms of the Apache License, Version 2.0 which is available at | ||
' https://www.apache.org/licenses/LICENSE-2.0 | ||
' | ||
' SPDX-License-Identifier: Apache-2.0 | ||
' | ||
' Contributors: | ||
' Florian Zimmer - Initial Version | ||
' | ||
|
||
@startuml | ||
class DataFlowTerminateMessage #e4ebfa ##75acfa { | ||
@type: "DataFlowTerminateMessage" | ||
reason: String | ||
} | ||
@enduml |
Binary file added
BIN
+3.36 KB
...oper/data-plane-signaling/message-types/diagrams/transferProcessFailRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions
18
docs/developer/data-plane-signaling/message-types/diagrams/transferProcessFailRequest.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,18 @@ | ||
' | ||
' Copyright (c) 2024 Fraunhofer Institute for Software and Systems Engineering ISST | ||
' | ||
' This program and the accompanying materials are made available under the | ||
' terms of the Apache License, Version 2.0 which is available at | ||
' https://www.apache.org/licenses/LICENSE-2.0 | ||
' | ||
' SPDX-License-Identifier: Apache-2.0 | ||
' | ||
' Contributors: | ||
' Florian Zimmer - Initial Version | ||
' | ||
|
||
@startuml | ||
class TransferProcessFailRequest #e4ebfa ##75acfa { | ||
errorMessage: String | ||
} | ||
@enduml |
14 changes: 14 additions & 0 deletions
14
docs/developer/data-plane-signaling/message-types/examples/DataFlowResponseMessage.json
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,14 @@ | ||
{ | ||
"@type": "https://w3id.org/edc/v0.0.1/ns/DataFlowResponseMessage", | ||
"https://w3id.org/edc/v0.0.1/ns/dataAddress": { | ||
"@type": "https://w3id.org/dspace/v0.8/DataAddress", | ||
"https://w3id.org/dspace/v0.8/endpointType": "endpointType", | ||
"https://w3id.org/dspace/v0.8/endpointProperties": [ | ||
{ | ||
"@type": "https://w3id.org/dspace/v0.8/EndpointProperty", | ||
"https://w3id.org/dspace/v0.8/name": "name", | ||
"https://w3id.org/dspace/v0.8/value": "value" | ||
} | ||
] | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
docs/developer/data-plane-signaling/message-types/examples/DataFlowStartMessage.json
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,32 @@ | ||
{ | ||
"@type": "https://w3id.org/edc/v0.0.1/ns/DataFlowStartMessage", | ||
"https://w3id.org/edc/v0.0.1/ns/flowType": "PUSH", | ||
"https://w3id.org/edc/v0.0.1/ns/agreementId": "agreementId", | ||
"https://w3id.org/edc/v0.0.1/ns/processId": "processId", | ||
"https://w3id.org/edc/v0.0.1/ns/datasetId": "datasetId", | ||
"https://w3id.org/edc/v0.0.1/ns/properties": {}, | ||
"https://w3id.org/edc/v0.0.1/ns/callbackAddress": "http://localhost", | ||
"https://w3id.org/edc/v0.0.1/ns/sourceDataAddress": { | ||
"@type": "https://w3id.org/dspace/v0.8/DataAddress", | ||
"https://w3id.org/dspace/v0.8/endpointType": "sourceType", | ||
"https://w3id.org/dspace/v0.8/endpointProperties": [ | ||
{ | ||
"@type": "https://w3id.org/dspace/v0.8/EndpointProperty", | ||
"https://w3id.org/dspace/v0.8/name": "name", | ||
"https://w3id.org/dspace/v0.8/value": "value" | ||
} | ||
] | ||
}, | ||
"https://w3id.org/edc/v0.0.1/ns/participantId": "participantId", | ||
"https://w3id.org/edc/v0.0.1/ns/destinationDataAddress": { | ||
"@type": "https://w3id.org/dspace/v0.8/DataAddress", | ||
"https://w3id.org/dspace/v0.8/endpointType": "endpointType", | ||
"https://w3id.org/dspace/v0.8/endpointProperties": [ | ||
{ | ||
"@type": "https://w3id.org/dspace/v0.8/EndpointProperty", | ||
"https://w3id.org/dspace/v0.8/name": "name", | ||
"https://w3id.org/dspace/v0.8/value": "value" | ||
} | ||
] | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
docs/developer/data-plane-signaling/message-types/examples/DataFlowSuspendMessage.json
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,4 @@ | ||
{ | ||
"@type": "https://w3id.org/edc/v0.0.1/ns/DataFlowSuspendMessage", | ||
"https://w3id.org/edc/v0.0.1/ns/reason": "reason" | ||
} |
4 changes: 4 additions & 0 deletions
4
docs/developer/data-plane-signaling/message-types/examples/DataFlowTerminateMessage.json
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,4 @@ | ||
{ | ||
"@type": "https://w3id.org/edc/v0.0.1/ns/DataFlowTerminateMessage", | ||
"https://w3id.org/edc/v0.0.1/ns/reason": "reason" | ||
} |
3 changes: 3 additions & 0 deletions
3
docs/developer/data-plane-signaling/message-types/examples/TransferProcessFailRequest.json
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,3 @@ | ||
{ | ||
"errorMessage": "errorMessage" | ||
} |