question

Guillaume V avatar image
0 Likes"
Guillaume V asked Joerg Vogel commented

While in Process Flow

Hello, I am trying to represent a "while" in process flow.
My token would loop to a decide question until the answer to the decide allows it to continue.

The problem with this "loop delay" is it makes a simulation very slow...

Is there a better way to loop tokens until the condition is true?
1625492048731.png

FlexSim 19.0.0
process flowprocessflowloopwhiledeicde
1625492048731.png (79.1 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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

Wait for event activity?

· 3
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
back order in a list gets fulfilled?
0 Likes 0 ·
Guillaume V avatar image Guillaume V Joerg Vogel commented ·

Thanks Joerg, I tried to use the WaitForEvent activity in this test-model:

test loopwhile.fsm

My "WaitForEvent" lets token continue until the content in the list "TokenInProgress" reaches 5. once this number of tokens in progress, the WaitForEvent stops the flow of tokens until the content drops below 5.
The problem I have is my WaitForEvent releases all tokens that have been waiting and it causes the content in the list to increase to even more than 5. I would like the WaitForEvent to release only tokens until it reaches the maximum again, 5, but no more.

Could you give me any tip on how I could release tokens until 5 tokens in progress is met again, Joerg?

1625494947666.png
Thank you,
Guillaume

0 Likes 0 ·
1625494800021.png (98.4 KiB)
1625494947666.png (98.4 KiB)
test-loopwhile.fsm (22.4 KiB)
Joerg Vogel avatar image Joerg Vogel Guillaume V commented ·
please set wait for event activity in a zone to limit access for tokens to it.
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.