question

Miguel Pereira avatar image
0 Likes"
Miguel Pereira asked Miguel Pereira commented

Conditional Decide on a Source

Hey everyone,


I'm trying to do one of the lasts things to finally finish this project.

I added a new Queue called "BagagensDePartida2" next to the one that already existed and i'm trying to do one thing:

In the exact time i create the objects, i create in the Queue1 (also new), i'm trying to immediately move the objects to one the others Queues.

I have a schedule source that has 30 entries of objects in different times and in this event source i want to push to a list but i'm facing this problem on how to do it.

I want the process flow to check if there's already objects on the BagagensDePartida and if it has, the object should move to BagagensDePartida2, but only the ones that just came out.

3d.png


I thought on the decide condition, but if i put something to check if there's bags on "BagagensDePartida" move to the another one it will move because it will check immediately after putting them in there so it always are.

I also thought about assign labels (with a "flag" going 0 and 1) but the systems would always send it to the first value i assign it...

Any way to do this?


Thanks, Miguel Pereira.

FlexSim 21.1.5
decideconditional decideflexsim 21.1.5event source
3d.png (28.8 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.

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Miguel Pereira commented

If you place a 0-second delay directly after the decide activity, all tokens that are created at the same time will first evaluate the "decide" before any move on to further activities.

In this example I use this to create all items in Queue1 if it is empty, otherwise, in Queue2.

BatchCreate_21_1.fsm


· 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.

Miguel Pereira avatar image Miguel Pereira commented ·
Yes, that totally works, those delays with 0 seconds fixing time issues, didn't thought of that. Thanks @Felix Möhlmann.
0 Likes 0 ·

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.