Overview
Combiners, Separators, and Transformers are the three Modeler components that reshape entity flow rather than simply routing or delaying entities. They’re how you model assembly, disassembly, batching, kitting, packaging, and any operation where the entities going in aren’t the same as the entities going out. These components look simple — a box with inputs and outputs — but each has specific behavior worth understanding before you build an assembly or disassembly operation, especially around how they interact with Station capacity.Combiner
A Combiner merges multiple input entities into a single output entity. Use it to model assembly (parts → product), batching (individual items → pallet), kitting (components → kit), or any operation where several items become one.Input Batches
A Combiner waits until it has enough inputs to form a batch, then emits one output. Batch size is configured two ways:- Fixed count — always assemble
Ninputs into one output.N = 3means “wait for 3 entities, then combine.” - DSL-driven — the batch size is an expression evaluated when the Combiner is ready to start assembling. Use this when batch size depends on state: batch larger under low demand, smaller under high demand, based on a state variable or entity attribute.
Multi-Entity Context for Output Attributes
A Combiner output assignment expression runs in a multi-entity context — several input entities are in scope at once. Bare attribute references likeweight are ambiguous (which input’s weight?), so they must be wrapped in aggregation functions:
Interaction with Station Capacity
When a Combiner sits inside a Station, understand how station capacity works with lineage tracking:- Entities consume slots on entry. Each input entity that enters the station takes one capacity slot.
- The Combiner merges inputs into an output. If the batch size is 3 and three inputs have entered the station, those three input entities occupy three slots while the Combiner assembles them.
- Slots are freed via lineage. All three slots are freed only when the output entity — which is a descendant of the three inputs — exits the station.
Separator
A Separator splits one input entity into multiple output entities. Use it to model disassembly (kit → components), unbatching (pallet → individual items), or any “one in, many out” operation.Output Count
The number of output entities per input can be:- Fixed — always emit
Noutputs per input - DSL-driven — the output count is an expression evaluated when the Separator runs, potentially depending on the input entity’s attributes (“split into
quantityunits wherequantityis an attribute on the input”)
Output Attributes
Separator output attribute assignments run in a single-entity context with the input entity’s attributes in scope — references toweight, priority, etc. read the input entity, and the assignment produces values for the output entity being created. A common pattern: divide a quantity across outputs evenly (weight / output_count) or copy a classification from input to every output.
A Separator also has two event hooks with different contexts: on_entity_created fires in single-entity context for each output being created (useful for per-output logic), and on_batch_created fires in multi-entity context with all outputs in scope (useful for aggregate logic across the batch of outputs).
Interaction with Station Capacity
Separator lineage in a station is often misunderstood. The correct model:- The input entity consumes one capacity slot when it enters the station.
- The Separator splits that input into several output entities. The outputs are descendants of the input — they share the input’s lineage.
- The single slot is freed only when all descendants have exited the station. If three outputs were produced, the slot stays occupied until all three of them leave.
Transformer
A Transformer produces a new output entity of a different type, replacing the input in the flow. The entity count is unchanged (one in, one out), but downstream components see a different typed entity after the Transformer. Use a Transformer to model operations where the thing being worked on becomes a different thing after processing: raw material → WIP, WIP → finished good, blank → painted, component → inspected-component.Attribute Assignment on the Output
A Transformer emits a new entity of a different type, with its own attribute assignments. Assignments run in a single-entity context with the input entity’s attributes accessible and can reference:- The input entity’s attributes — useful for carrying context forward
- Simulation state —
SIM_TIMEto stamp when the transformation happened - State variables and constants — to apply shift- or operation-specific values
When to Use a Transformer vs. a Process
If all you need is “the entity is delayed by X minutes, optionally holding a resource,” use a Process. Use a Transformer when:- The entity’s downstream routing depends on its type (sent to different processes for different types)
- Results analysis groups by entity type (throughput by product, not aggregated)
- The entity conceptually becomes something different as part of the operation
Patterns
Assembly cell: Sources → Buffers → Combiner inside a Station → Sink. Each Source feeds a different component type; the Combiner assembles them into a product; the Station models the physical workspace constraint. Station capacity limits how many input components can be in the cell at once. Kit packaging: Process (pick components) → Combiner (batch into kit) → Process (seal/label) → Sink. The Combiner produces the kit entity; downstream processes operate on kits. Disassembly for rework: Router (send rework candidates here) → Separator (split the kit back into components) → individual component buffers. Each output inherits relevant attributes from the input (rework_reason, original_kit_id).
Paint line: Source (raw parts) → Process (paint) → Transformer (raw_part → painted_part) → Process (inspect) → Router (route by qc_passed). The type change after paint lets downstream processes specialize on painted_part.
Tips
- Combiners are where aggregation lives. If you’re trying to compute a sum or max across a group of entities anywhere else, you’re probably fighting the model — restructure so the aggregation happens at a Combiner output.
- Lineage-based capacity is the reason stations with Combiners or Separators can behave counter-intuitively. Slots are consumed on entry and freed when all lineage descendants exit — not based on batch size or output count arithmetic.
- Transformer over Process when type matters downstream. Processes change state; Transformers change identity. Use each for its purpose.
- Attribute carryover isn’t automatic on Separators. Each output’s attributes must be assigned explicitly. If you want an attribute on every output copy of what’s on the input, assign it explicitly.

