AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

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.

Hi @Gabriel C7, was steven.hamoen's or Jörg Vogel's answer helpful? If so, please click the red "Accept" button at the bottom of one of their answers. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
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
2 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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