Jump to content

Combiner for identical entities (no parent required)


SimioSupport

Recommended Posts

The Combiner object in the standard library assumes that you have a parent entity representing a box or container and members representing the parts that are combined into the parent.


In some cases you don't want to have a parent, you just have a number of entities that you want to temporarily join together and process as one.


The attached project contains an object of type Node that represents a very simple Combiner and a TestModel to illustrate how it works. The node simply asks for a Batch Size and then holds the incoming entities until that batch size is reached. It creates a "normal" batch so it can be used with the Separator as long as you treat all outbound entities as the same.

CombinerNode.spfx

Requires Sprint 5.80 or later.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
The Combiner object in the standard library assumes that you have a parent entity representing a box or container and members representing the parts that are combined into the parent.


In some cases you don't want to have a parent, you just have a number of entities that you want to temporarily join together and process as one.


The attached project contains an object of type Node that represents a very simple Combiner and a TestModel to illustrate how it works. The node simply asks for a Batch Size and then holds the incoming entities until that batch size is reached. It creates a "normal" batch so it can be used with the Separator as long as you treat all outbound entities as the same.

[attachment=0]CombinerNode.spfx[/attachment]

Requires Sprint 5.80 or later.

 

Great job! How did you create the CombinerNode? Is it a sub class of basic or transfer node?

Link to comment
Share on other sites

×
×
  • Create New...