question

Felipe P2 avatar image
0 Likes"
Felipe P2 asked Jason Lightfoot commented

How to listen to multiple events in Wait for event?

sin-enganchar-v2.fsmHi guys, I am working with this model and I have the following problem: i need the task executer TT to wait for two events to be accomplished (P1 and P2 empty) for starting to count "Unload P1" time. Once both queues are empty, TT should start counting "Unload P1" delay time and proceed as PF indicates.

I tried to configure that with the "Wait for event", introducing both events, but it´s working with the rule "OR", so if one of the queues is empty, the task executer TT starts counting "Unload P1" time. I need it to work with the rule "AND", as i indicated above.

Does anyone know how to solve this?

Kind regards,

Felipe

FlexSim 19.1.0
queuetask executeragv network
5 |100000

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

Joseph Gillespie avatar image
0 Likes"
Joseph Gillespie answered Felipe P2 commented

@Felipe P2

As far as I'm aware, there is no way to do this with one Process Flow activity. However, you can check if one is empty and then the other like this:

The decide activity is for the small chance that P1 is no longer empty by the time P2 becomes empty.

Here's an updated version of your model with this added to the Process Flow: sinengancharanswer.fsm


capture.png (5.1 KiB)
· 3
5 |100000

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

Braydn T avatar image
0 Likes"
Braydn T answered Jason Lightfoot commented

@Felipe P2

You can click the button highlighted in red here:

After you do that it will look like this, and you can add another wait for event in the same task in process flow. The Token will not continue until both tasks are complete.


felipe-p2.png (14.0 KiB)
after-added.png (15.6 KiB)
· 3
5 |100000

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