You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Using "count" control signal to produce and consume collections of elements (signals)
2
2
3
3
This workflow has 3 processes:
4
-
Proc1 randomly produces a collection of 0-3 elements.
5
-
Proc2 processes these elements one by one.
6
-
Proc3 consumes all elements produced by Proc2 as a single collection.
4
+
-Proc1 randomly produces a collection of 0-3 elements.
5
+
-Proc2 processes these elements one by one.
6
+
-Proc3 consumes all elements produced by Proc2 as a single collection.
7
7
8
8
Since we don't know the size of the collection, we use the "count" control signal passed between Proc1 and Proc3, so that Proc3 knows how many elements should be collected before activation.
0 commit comments