question

Mikael B avatar image
0 Likes"
Mikael B asked Ben Wilson commented

Does storage.system.queryItems() include outbound items?

According to flexsim docs (1), queryItems() only searches for items in the stored state. However, there are some instances in my model where two orders contain the same flowitem, which of course is problematic.

This is the code I use to set slotItems as outbound:

  1. Storage.Slot.Item slotItem = token.SlotItem;
  2. slotItem.storageItem.assignedSlot = 0;

token.SlotItem contains one item from a queryItems() array.

If queryItems() is supposed to only search for items in the stored state, and the outbound code is working correctly, I will provide further information about the model to locate the problem.

(1) https://docs.flexsim.com/en/20.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.System.html#Method-queryItems

FlexSim 20.0.10
storage systemflexsim 20.0.10queryitemsstorage.item.state
· 4
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

Lars Jacobsen avatar image
1 Like"
Lars Jacobsen answered

You are corrent in that queryitems() will only search for items in the stored stated. Please look here in the user manual for Storage.ITem.assignedSlot https://docs.flexsim.com/en/21.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.Item.html

5 |100000

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