-
Notifications
You must be signed in to change notification settings - Fork 2
/
activity_data_entry_creation.plantuml
51 lines (48 loc) · 1.31 KB
/
activity_data_entry_creation.plantuml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@startuml
(*) --> "Initial state"
partition "Create Contract" {
-->[data package] "pandoraContract.createDataEntry()"
--> "New DataEntry Contract"
}
partition "Validate Contract" {
--> [contract address] "Worker Node: validateDataEntry()"
--> "takeDeposit"
--> "requestContractDetails"
if "contract exists" then
-->[yes] "validateContractDetails"
if "details are valid" then
-->[yes] "downloadKernel"
if "files found" then
-->[yes] "validateFiles"
if "file formats are correct"
-->[yes] "validateKernelModel"
if "model is correct"
-->[yes] "validateKernelParameters"
if "parameters are right"
-->[yes] "pandoraContract.activateDataEntry"
-->"DataEntryContract.sign"
-->"DataEntryContract.setActive"
-->"return success code"
else
-->[no] === Error ===
endif
else
-->[no] === Error ===
endif
else
-->[no] === Error ===
endif
else
-->[no] === Error ===
endif
else
-->[no] === Error ===
endif
else
-->[no] === Error ===
endif
=== Error === --> "pandoraContract.destroyDataEntry"
--> "DataEntryContract.destroy"
--> "return failure code"
}
@enduml