add_merge
Combine multiple streams into one output with a Merge pattern. Fires when any input has a token, useful for funneling orders from web, phone, fax into one processing queue.
Instructions
Add a Merge (OR-join / Funnel) pattern — combines multiple streams into one output.
Fires as soon as ANY input has a token (unlike Assembly which waits for ALL). Creates one input place per stream named "{name}In{stream_name}". Wire each producer's output into the corresponding place via connect_patterns.
Use this for:
Orders from web, phone and fax all going to one processing queue
Parts from parallel machines going to one inspection station
Args: name: Name for this merge point (e.g., "OrderMerge") inputs: Stream names (e.g., ["Web", "Phone", "Fax"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| inputs | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |