-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflow-def.json
More file actions
79 lines (77 loc) · 1.89 KB
/
flow-def.json
File metadata and controls
79 lines (77 loc) · 1.89 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"Comment": "Brock is learning how to create a flow",
"StartAt": "SourceToScratch",
"States": {
"SourceToScratch": {
"Comment": "Copy data from data source to a scratch space",
"Type": "Action",
"ActionUrl": "https://actions.globus.org/transfer/transfer",
"Parameters": {
"label.=": "runid + ' Source to scratch transfer'",
"source_endpoint_id.$": "$.source.id",
"destination_endpoint_id.$": "$.scratch.id",
"transfer_items": [
{
"source_path.$": "$.source.path",
"destination_path.$": "$.scratch.path",
"recursive": true
}
],
"notify_on_succeeded": false,
"notify_on_failed": true,
"notify_on_inactive": true
},
"ResultPath": "$.SourceToScratchOutput",
"Next": "RunFunc"
},
"RunFunc": {
"Comment": "Run globus-compute on Great Lakes",
"Type": "Action",
"ActionUrl": "https://compute.actions.globus.org",
"Parameters": {
"tasks": [
{
"endpoint.$":"$.function.endpoint",
"function.$": "$.function.functionfunc",
"payload": {
"a": 10,
"b": 20
}
}
]
},
"ResultPath": "$.SumOutput",
"Next": "ChoiceDeleteSource"
},
"ChoiceDeleteSource": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.deletesource",
"BooleanEquals": true,
"Next": "RunDeleteSource"
}
],
"Default": "CompleteRun"
},
"RunDeleteSource": {
"Type": "Action",
"ActionUrl": "https://actions.globus.org/hello_world",
"Parameters": {
"echo_string" : "We are now deleting",
"sleep_time": 5
},
"ResultPath": "$.RunDeleteSourceOutput",
"Next": "CompleteRun"
},
"CompleteRun": {
"Type": "Action",
"ActionUrl": "https://actions.globus.org/hello_world",
"Parameters": {
"echo_string" : "now complete",
"sleep_time": 5
},
"End": true
}
}
}