question

Carlos S3 avatar image
0 Likes"
Carlos S3 asked Mischa Spelt answered

itemtype from a queue

Hello,

Is there any way to determine the itemtype of queue, assuming that the queue only contain a single type of item.

For example, I wanna tell my code that if a queue is not contained by itemtype1, then I can use the queue to contain other types of items.

I'm using Flexim 7.3.6

Thanks

FlexSim (other - please specify)
FlexSim (other)
queueitemtype
· 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

Mischa Spelt avatar image
1 Like"
Mischa Spelt answered

Hi Carlos,

The Send To Port option on the Flow tab in the properties has a "Matching Itemtype" option:

This will check all available output ports to check if one of the connected objects already has items of the exiting item's type and send them there. If not, it will select an empty object to send the item to. If you select this option and then click the Script ("yellow scroll") button you can see the code-behind for this option and change it to your needs (for example, if no empty objects can be found either the item will be released to the first available port, you may want to change this).


5 |100000

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