forked from temporalio/samples-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
workflow2.yaml
58 lines (56 loc) · 1.79 KB
/
workflow2.yaml
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
# This sample workflow execute 3 steps in sequence.
# 1) activity1, takes arg1 as input, and put result as result1.
# 2) it runs a parallel block which runs below sequence branches in parallel
# 2.1) sequence 1
# 2.1.1) activity2, takes result1 as input, and put result as result2
# 2.1.2) activity3, takes arg2 and result2 as input, and put result as result3
# 2.2) sequence 2
# 2.2.1) activity4, takes result1 as input, and put result as result4
# 2.2.2) activity5, takes arg3 and result4 as input, and put result as result5
# 3) activity1, takes result3 and result5 as input, and put result as result6.
variables:
arg1: value1
arg2: value2
arg3: value3
root:
sequence:
elements:
- activity:
name: SampleActivity1
arguments:
- arg1
result: result1
- parallel:
branches:
- sequence:
elements:
- activity:
name: SampleActivity2
arguments:
- result1
result: result2
- activity:
name: SampleActivity3
arguments:
- arg2
- result2
result: result3
- sequence:
elements:
- activity:
name: SampleActivity4
arguments:
- result1
result: result4
- activity:
name: SampleActivity5
arguments:
- arg3
- result4
result: result5
- activity:
name: SampleActivity1
arguments:
- result3
- result5
result: result6