question

Marc R5 avatar image
0 Likes"
Marc R5 asked Kavika F commented

execute flow while a list content is greater than a value

Hello,

I have a list filled with references of empty racks, and I need to execute a flow to add some items on them, but need to leave 3 empty for other operations. These 3 can change over time, it is like a minimum stock I need to have on a queue.

I know about the "Wait for event" function (content change for example, but it is not until arrives at a value, but to do something while the content is greater than a certain value).

I cannot find a "Do while".

Thanks!

FlexSim 22.1.1
functions
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @Marc R5, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

I mostly solve things like this with a simple loop structure. Check the condition between each iteration. Once it is not satisfied anymore, go to a waiting activity instead that releases the token when the condition should be reevaluated.

1651838111633.png


1651838111633.png (24.6 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.