question

SudheerReddy avatar image
0 Likes"
SudheerReddy asked Matthew Gillespie commented

Doubt on Wait for Event

I'm looking into one of the model, Following is the doubt I have

In Wait for Event Object is token.Item and Event is OnEntering. How this Wait for Event for the below image will work. How the trigger mechanism for the following will happen. Could some explain this.

In the below Image (Left Image), In Event drop down List we can see OnEntering and OnExiting. When I am trying to recreate the same Wait for Event OnEntering and OnExiting is not available as you can see in right image. Instead OnMessage is available. Why is this difference. If I want to recreate the same OnEntering how can we do.

I am attaching the model for your reference.

24061-model1-simplified.fsm

FlexSim 19.0.0
wait for event
d2.png (53.9 KiB)
d2-li.jpg (394.6 KiB)
d3-li.jpg (149.8 KiB)
d1.png (61.0 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

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

The easiest way to get the OnEntering event is to sample a flowitem. So click the sampler button next to the Event field and then hover over a flowitem in the model or in the flowitem bin.


onentering.png (26.7 KiB)
· 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.

SudheerReddy avatar image SudheerReddy commented ·

As shown in below Image in Wait for Pickup Object is token.Item and Event is OnEntering.

For Example if Object is Queue or Processor and Event is OnEntry then when ever a item enters Queue or Processor then Wait for event Triggers.

But here Object is token.Item so how does this Trigger happen and how Wait for Pickup works. Could you please help to understand on this topic.

0 Likes 0 ·
24098-d2.png (53.9 KiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ SudheerReddy commented ·

OnEntry and OnEntering are two sides of the same coin. When an item enters a queue the queue's OnEntry is fired and the item's OnEntering is fired at the same time. When an item exits a queue the queue's OnExit is fired and the item's OnExiting is fired at the same time.

So the Wait for Pickup activity is waiting for the item on the token's Item label to be picked up, or moved into the operator.

0 Likes 0 ·