question

Raashid Mohammed avatar image
1 Like"
Raashid Mohammed asked Sam Stubbs commented

Pull the child tokens created by parent tokens and palletize

Hi,

My source is creating a pallet. I have an Event-Triggered Source in Process Flow for the Onentry of the processor that creates a token, which then creates child tokens of all the columns labels in the 3D Source arrival schedule. Those Child tokens split-if value is 0 they go to sink and if greater than zero they create a box at the queue. For example the parent token started off with 6 child tokens and 3 tokens got deleted. Those 3 tokens create boxes at queue and push to the list. I want the parent token to pull its remaining 3 child tokens from the list and put those 3 created boxes linked to those child tokens on its parent token linked pallet. Please help.

FYI. Mathew G The Awesome Guy :) helped me on start of the model.

https://answers.flexsim.com/questions/25860/how-to-make-6-wait-events-and-assign-label-to-one.html

Thank you.

FlexSim 16.1.1
listchild tokensparent token
model2.fsm (91.1 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Sam Stubbs commented

You configure a few of the fields on the Push and Pull From List activities so you pull only the children of the parent token:

  1. Set the Request and Require Number to Token: Number of Children.
  2. Set the Partition ID to be the parent token (this will create a separate partition for each parent token so that a token doesn't accidentally pull someone else's children). Since the parent is pulling we set the Partition ID to Token: Entering and the Partition ID for the pushing children is Token: Parent.

pull-children.png (21.9 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.