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.
Added first overhaul of states and messages. WIP
- Loading branch information
Showing
8 changed files
with
180 additions
and
58 deletions.
There are no files selected for viewing
Binary file added
BIN
+55.3 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 --> failed | ||
failed --> notified : DP | ||
|
||
completed --> 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
14 changes: 14 additions & 0 deletions
14
docs/developer/data-plane-signaling/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/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/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/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/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" | ||
} |