question

Prateekq4 avatar image
0 Likes"
Prateekq4 asked Jeanette F commented

Sending items from queue based on condition


So in my model items are labeled in the source in 3 different types 1,2,3. They are sent to queue 5 where batching is carried out and then sent to queue 1. So I am sorting the items into the 3 queues queue 1, queue 3 and queue 2 based on their types by having queue 3 and queue 2 pull item types 2 and 3. What I am stuck at is that want to send the items from queue 6 only and only after they have been sorted among queue 1,3 and 2.

FlexSim 22.0.16
queuing strategy
· 2
5 |100000

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

Prateekq4 avatar image Prateekq4 commented ·
0 Likes 0 ·
sorting-trial.fsm (48.3 KiB)
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Prateekq4, was Julie Weller's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Julie Weller avatar image
0 Likes"
Julie Weller answered

Hi @Prateekq4! This would probably be easiest to do in process flow. What I did is I changed all the logic to happen in process flow and used the batch option to choose when to release the tokens:

1686007556265.png

That way you can decide when to release them when they're all sorted.

I attached the model below but message back if you have more questions!

sorting-trial_1.fsm

P.S. You also had an error with names in the global table that I fixed, it was just a matter of weird apostrophes

1686007665952.png


1686007556265.png (51.7 KiB)
1686007665952.png (5.2 KiB)
sorting-trial-1.fsm (48.9 KiB)
5 |100000

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