question

Gabriel C7 avatar image
0 Likes"
Gabriel C7 asked Ben Wilson commented

How to represent "or" in port by case

Hi, i am still beginnig in flexsim and i am trying to use the "Port By Case" for the to send from "Queue 1" the "item.Type == 1" to "Processor 1 or 2" AND send the "item.Type == 2" to "Processor 3, 4 or 5". I believe you can only do it through custom code. Unfortunately, I cannot use the "Specific Item Label" in Pull Requeriment. How to proceed? I need a Help

Thanks!!!


FlexSim 21.0.3
flexsim 21.0.3send to portport by case
1617821956493.png (53.2 KiB)
· 1
5 |100000

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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel edited

Port by Case is not able to a logical OR. You can do it easy with two additional queue objects or with a lot more coding.

You place between Queue1 and your processors the queues parallel. Port By Case send items of Type 1 to the first Queue (A) and Type 2 to Queue (B). Queue A is connected to Processors 1 and 2, Queue B is connected to Processors 3,4 and 5. The Queues A and B sends items by first available property. If you like, you set the maximum capacity to 1 for both queues.

5 |100000

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

Steven Hamoen avatar image
3 Likes"
Steven Hamoen answered

@Gabriel C7 another easy solution is to use the pull functionality on the down streams objects

5 |100000

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