question

Ruben Mariduena avatar image
0 Likes"
Ruben Mariduena asked Ruben Mariduena commented

How to make a token wait for a sibling token?

I have a token that needs to go to a repeating activity1 x number of times but after the first time it goes trough the activity1, concurrently it needs to start other activities that are independent from the activity1 (Please see attached example model). After the token has completed repeating activity1 x amount of times now it needs to wait for the separate activities to be completed before it can continue. How can I set the "wait for event" to match the sibling tokens and only release those tokens instead of releasing all of them? wait-for-sibling-token-example.fsm

FlexSim 16.2.2
process flowwait for eventmatch tokenssibling token
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

·
anthony.johnson avatar image
0 Likes"
anthony.johnson answered Ruben Mariduena commented

First, on the Create Token activity, assign a label called sibling to the created token that points back to the original token that created it. Then, in the wait for event, match the involved OnEntry event's "Token" value with the token's sibling 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.

Ruben Mariduena avatar image Ruben Mariduena commented ·
@anthony.johnson

thank you for the response, I can't open the file you sent. I'm guessing it's because it was saved for the 17 Version? I have Flexsim 16.2, when I open it it's completely blank

0 Likes 0 ·

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.