14440: Add project_uuid to ClusterTarget example
[arvados.git] / doc / user / cwl / federated / federated.cwl
1 cwlVersion: v1.0
2 class: Workflow
3 $namespaces:
4   arv: "http://arvados.org/cwl#"
5 requirements:
6   InlineJavascriptRequirement: {}
7   DockerRequirement:
8     dockerPull: arvados/fed-test:scatter-gather
9   ScatterFeatureRequirement: {}
10   StepInputExpressionRequirement: {}
11   SchemaDefRequirement:
12     types:
13       - name: FileOnCluster
14         type: record
15         fields:
16           file: File
17           cluster: string
18 inputs:
19   shards:
20     type:
21       type: array
22       items: FileOnCluster
23 outputs:
24   joined:
25     type: File
26     outputSource: gather-results/joined
27 steps:
28   distributed-analysis:
29     in:
30       shards: shards
31       inp: {valueFrom: $(inputs.shards.file)}
32     scatter: shards
33     hints:
34       arv:ClusterTarget:
35         cluster_id: $(inputs.shards.cluster)
36         project_uuid: $(inputs.shards.project)
37     out: [out]
38     run: md5sum.cwl
39   gather-results:
40     in:
41       inp: distributed-analysis/out
42     out: [joined]
43     run: cat.cwl