Skip to content

Commit 0f4d9ef

Browse files
authored
Update README.md
1 parent ec7d360 commit 0f4d9ef

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

examples/ChoiceJoinMerge/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1+
# Choice and Join process types
12

3+
This example demonstrates how to achieve the following workflow patterns:
4+
- Produce results on a subset of outputs (multi-choice)
5+
- Activate process on n-out-of-m inputs (discriminator)
6+
- Combine the above, i.e. "choice" process sends information to "join" process on how many outputs have been activated (structured synchronizing merge)
7+
8+
<P></P>
9+
The workflow has two processes:
10+
11+
- <TT>WriteRandOuts</TT> randomly produces results on 0-3 of its outputs
12+
- <TT>ReadRandIns</TT> is activated by <TT>n-out-of-3</TT> inputs, where <TT>n</TT> is the number of branches activated by the first process.
13+
14+
<P>
15+
To achieve this, the process are connected by the <TT>merge</TT> control signal. See the <A HREF=https://github.com/hyperflow-wms/hyperflow/wiki/Workflow-patterns>Structured synchronizing merge</A> to learn more about using this pattern.

0 commit comments

Comments
 (0)