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: enhancement of the data plane signaling protocol doc
- Loading branch information
Showing
5 changed files
with
102 additions
and
3 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions
32
docs/developer/data-plane-signaling/signaling_protocol_messages.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,32 @@ | ||
@startuml | ||
!theme vibrant | ||
top to bottom direction | ||
skinparam linetype ortho | ||
|
||
class DataFlowResponseMessage { | ||
dataAddress: DataAddress | ||
} | ||
class DataFlowStartMessage { | ||
id: String | ||
processId: String | ||
assetId: String | ||
participantId: String | ||
agreementId: String | ||
sourceDataAddress: DataAddress | ||
destinationDataAddress: DataAddress | ||
flowType: FlowType | ||
callbackAddress: URI | ||
properties: Map<String, String> | ||
traceContext: Map<String, String> | ||
} | ||
class DataFlowSuspendMessage { | ||
reason: String | ||
} | ||
class DataFlowTerminateMessage { | ||
reason: String | ||
} | ||
enum FlowType { | ||
PUSH | ||
PULL | ||
} | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions
51
docs/developer/data-plane-signaling/signaling_protocol_states.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,51 @@ | ||
@startuml | ||
|
||
skinparam WrapWidth 270 | ||
|
||
state "STARTED" as started_push #e6ebfa;line:blue | ||
started_push: sent DataFlowResponseMessage, \nto CP starting transfer | ||
|
||
state "STARTED" as started_pull #e6ebfa;line:blue | ||
started_pull: received DataFlowStartMessage<PULL> by CP, waiting for data to be requested | ||
|
||
state "RECEIVED" as received #e6ebfa;line:blue | ||
received : received DataFlowStartMessage<PUSH> by CP | ||
|
||
state "COMPLETED" as completed #e6ebfa;line:blue | ||
completed: completed transfer successfully, trying to send OK to callback address (CP) | ||
|
||
state "NOTIFIED" as notified #e6ebfa;line:blue | ||
notified : notified callback address (CP) about outcome | ||
|
||
state "FAILED" as failed #e6ebfa;line:blue | ||
failed : trying to send TransferProcessFailRequest to callback address (CP) | ||
|
||
state "SUSPENDED / TERMINATED" as suspended #f5cccd;line:red | ||
suspended : received SUSPEND / TERMINATE by CP | ||
|
||
[*] --> received | ||
received --> started_push | ||
|
||
started_push --> failed | ||
started_push --> completed | ||
|
||
failed --> failed | ||
failed --> notified | ||
|
||
completed --> completed | ||
completed --> notified | ||
|
||
notified --> [*] | ||
|
||
[*] --> started_pull | ||
started_pull --> [*] | ||
|
||
received --> suspended | ||
started_push --> suspended | ||
started_pull --> suspended | ||
failed --> suspended | ||
completed --> suspended | ||
notified --> suspended | ||
suspended --> [*] | ||
|
||
@enduml |