I have a draft model of a warehouse where orders are received every 100 seconds and each of them requires a specific number of a given type of flowitem.
In the model there is a source that creates flowitems and gives to each of them a specific item type. The information is pushed to a Item List.
An operator must transport all the required items to the "Almacen" queue to complete an order. But there is a restriction of capacity, the operator can only load three items at max.
To achieve this I have defined two subflows where the token.pulled items of an order are carried three by three to the "Almacen queue".
The process flow seems to work but when I looked how the items are entering to the "Almacen" queue, the total requested quantity of an order is not completely delivered to Almacen. I don't know if I am missing something in the logic.
As well, I have a second problem. I am using at the subflow token.pulled.pop() function and it is erasing the array information at token.pulled, which is needed to move all the flowitems of a an order from "Almacen" queue to "Storefront" queue. I tried to copy the array information of token.pulled to another assigned a token label called contenidocajas, but once the subflows end and release the token all information is gone.
This is the model: Modelo pop.fsm
Thank you in advance!