question

Mason W avatar image
0 Likes"
Mason W asked tannerp commented

Wait for Event Matching

Hi all,

I'm having an issue with the Wait for Event activity. In the example attached there is an exiting item that has an OrderNo label attached to it. I would like the waiting token (has the same OrderNo label attached to it as well) to release from the activity once the item with the corresponding OrderNo exits the Processor. Why is the label match function not seeming to work on the Wait for Event activity?

Thanks for any help!

-Mason

sample.fsm

FlexSim 19.1.1
wait for event
sample.fsm (25.7 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

·
tannerp avatar image
0 Likes"
tannerp answered

Hi @Mason W,

Sorry for the slow response on our end. The problem that the Wait for Event is having is that the "OrderNo" label on the token is looking to match the value OrderNo with the actual item that is exiting and not the label on that item. (If you change "match" to "assign," you'll see what I mean as the label "OrderNo" is assigned the value of "/Sink1/Box1")

As an alternative, since the label "item" is stored in the token already, you can use "item" as a match value. This will look at "/Processor1/Box1" and see if it matches the token label "item" that has a similar value. I'm not sure how to reference the OrderNo directly, though...

I've updated your model to include some of the logic I'm thinking might work in this scenario. Let me know what you think:

orderno-item.fsm


orderno-item.fsm (25.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.

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.