-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhotcold2.flow
29 lines (24 loc) · 939 Bytes
/
hotcold2.flow
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
daigram {
st1 -> lp1 -> bs11 -> lp1;
st2 -> lp2 -> bs21 -> lp2;
st3 -> in1 -> in2 -> in1;
lp1 -> bs12 [label=after];
lp2 -> bs22 [label=after];
st1 [type=start];
bs11 [type=sync, req="['hot']"];
lp1 [type=loop, count=3];
bs12 [type=sync, req="['done']"];
st2 [type=start];
bs21 [type=sync, req="['cold']", block="['done']"];
lp2 [type=loop, count=3];
bs22 [type=sync, req="['done']"];
st3 [type=start];
in1 [type=sync, wait="['hot']", block="['cold']"];
in2 [type=sync, wait="['cold']", block="['hot']"];
# For debugging
class hidden [color = none, style = none, textcolor = white];
stt -> listener -> logger -> listener [style = "none"];
listener [type=sync, wait="lambda e : True", class = "hidden", autoformat='false'];
logger [type=logger, label="Events log", autoformat='false']
stt [type=start, class = "hidden", autoformat='false'];
}