Conditional Decide on a Source

Conditional Decide on a Source

miguel_p9
Not applicable
141 Views
2 Replies
Message 1 of 3

Conditional Decide on a Source

miguel_p9
Not applicable

[ FlexSim 21.1.5 ]

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.

0 Likes
Accepted solutions (1)
142 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Advocate
Advocate
Accepted solution

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

0 Likes
Message 3 of 3

miguel_p9
Not applicable
Yes, that totally works, those delays with 0 seconds fixing time issues, didn't thought of that. Thanks @Felix Möhlmann.
0 Likes