question

justinrusty avatar image
0 Likes"
justinrusty asked Jason Lightfoot commented

Wait For Event - Only proceed when specific tokens are in list

I currently have a process flow that has a wait for event that is linked to a global list in my model. Right now it is configured as follows

Event: On Content Change

Change Rule: Increase To Or Through Value

Value: 1

(I have also check marked "Fire If initial Value Meets Rule")

So far this has worked great in allowing tokens to pass through as long as there is one item inside my list. (stopping it when there are 0 which is what I want)

However I now want to add a variety of tokens to my list with different Labels and I want my Wait for event to only consider tokens with a specific label token.Autologous = 1 . (other tokens in the list will be token.Autologous = 0).


Is there a way to accomplish this? (I cannot make two separate lists unfortunately)

I can add more info if needed.

FlexSim 22.2.4
wait for eventglobal listlistener
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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot commented

Instead of a wait for event use a Pull From List with the additional WHERE clause specifying your labels and value, and select the option to leave the entry on the list.

· 4
5 |100000

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

justinrusty avatar image justinrusty commented ·

This does not work because when there are no more of the desired tokens on this list it will still allow it to proceed. I want it to stay on this process block UNTIL another token with the desired label is added to the list


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ justinrusty commented ·

That is incorrect. It will wait by default - the only time it would not is if there is one of the correct tokens, or if you have specified a timeout for the pull activity.

If you think you have a model where that's not the case then please post it here and we'll take a further look.

Here's an example:

Pull_as_WaitforTokens.fsm

1 Like 1 ·
justinrusty avatar image justinrusty Jason Lightfoot ♦♦ commented ·

I see, I was requesting and requiring 0 tokens, which is the same as using leave on entries except it does not hold onto the token.

0 Likes 0 ·
Show more comments