question

Natasha DG avatar image
0 Likes"
Natasha DG asked Natasha DG commented

Wait for Event Labeling

Hi. I am trying to use wait for event and it is listening to 2 different events. I need this token to be able to listen to both events but want a label assigned depending on which event was executed. Is there an easy way to do this?

Thanks,

Natasha

FlexSim 18.1.2
labelswait for eventlabel name in wait for event
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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Natasha DG commented

If you're listening to events on 2 different objects then you can use the Assign Event Object To field to save a reference to the event object on a label. Otherwise, that field gets the event name passed in and the Send Token To field gets the event rank passed in. For example, you can choose the Connector by Event Rank option in the Token Name field to send the token out a different connector depending on which event fires. You could also put your own code in that field that references the eventRank parameter in order to set a label.

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

Natasha DG avatar image Natasha DG commented ·

Thanks!

0 Likes 0 ·