forked from BGI-flexlab/automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflow_example.json
58 lines (58 loc) · 1.43 KB
/
workflow_example.json
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
{
"workflowName":"",
"description":"",
"version":"",
"workflow_failure_mode":"NoNewCalls",
"parameter":{
"queue":{
"type":"String",
"defaultValue":"",
"required":false,
"description":"thread number"
},
"param1":{
"type":"String",
"defaultValue":"",
"required":false,
"description":"Set it when call this task in workflow"
}
},
"tasks":{
"task1":{
"aliasName":"aName",
"source":"", // task.wdl的路径,或url
"dependency":[], //该task依赖的task,用于确定call task的顺序
"parameterLink":{
"param1":{
"scatter":false,
"value":"param1",
"from":"workflow" // form: [workflow, task, const]
}
}
},
"task2":{
"dependency":["task1"],
"source":"",
"parameterLink":{
"param1":{
"scatter":true, //task1.out1是数组,将打散为单个值传入
"value":"task1.out1", //不再固定task的inputs、result参数,来自依赖任务的结果通过传workflow参数的形式传入
"from":"task"
},
"mem":{
"value":"2",
"from":"const" //常量
}
}
}
},
"output":{
//流程最终输出结果,curl -X GET "http://localhost:8000/api/workflows/{version}/id/outputs"
//与task的形式相同
"out1":{
"type":"String",
"value":"",
"description":""
}
}
}