Skip to content
Snippets Groups Projects
Commit 99c0a61a authored by Martin Vogel's avatar Martin Vogel
Browse files

#414 Update workflow docu

parent 7a6ba42e
No related branches found
No related tags found
2 merge requests!2#414 Remaining changes from MR,!1planning#414 Methoden Signaturen (Zwischenstand)
## Client Module
### API Flow
The SdkClientFactory provides fluent API client both for **Sender** and **Subscriber**.
As the flow chart below shows, the fluent client guides through all essentials calls
in order to hand in a correct **Submission**.
As the flow chart below shows, the fluent client guides through all essentials calls in order to hand in a correct **
Submission**.
#### Api client flow for sending a submission
For the actual sender client those calls look like this:
<table>
<tr>
<th>Workflow</th>
<th>Java sample calls</th>
</tr>
<tr>
<td>
```mermaid
flowchart LR
flowchart TD
A[Create Client] --> B(Provide DestinationID)
B -->|get encryption key| C[Add Attachments]
C -->|send| D[SubmissionForPickup]
C -->|next| E[Add Data]
E -->|send| D[SubmissionForPickup]
```
</td>
<td>
```java
A[retrieveOAuthToken] --> B(Upload Attachements)
B -->|encrypt Attachments| C[Create Submission]
B -->|upload Attachments| C[Result 2]
List<File> attachments...
// Send without data
ClientFactory.senderClient()
.withDestination(UUID.randomUUID())
.withAttachments(attachments)
.submit();
// Send with data
ClientFactory.senderClient()
.withDestination(UUID.randomUUID())
.withAttachments(attachments)
.withData("some json or xml content")
.submit();
```
</td>
</tr>
</table>
#### Api client flow for subscribing to a submission
```mermaid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment