question

Sebastien avatar image
0 Likes"
Sebastien asked Joerg Vogel edited

Event getting the token out of a Process Flow Loop ?

Hello everyone !

I am building a custom Source with a Process Flow.

Once the source is creating flowitems I would like to be able to get out of the creation loop of the source as soon as it is down to add a dynamic cooldown time and erase the next "Release item" as I do not want it to be released later. I've looked into sub flows but as we cannot destroy tokens without moving them to a sink, I do not know how to proceed. I cannot move the token as it is always stuck in "Release Item" activity (see image below). And apparently there is no command to destroy a token, just moving them to sink or finish activities.

Would you have any recomendation to achieve this behavior in the process flow ?

Best regards,

FlexSim 19.0.0
process flowsource
source.png (10.4 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 edited

Try preempt activity, add a decide activity in the block and what is so wrong with a sink?

· 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.

Sebastien avatar image Sebastien commented ·

Thank you it worked ! I did not know about preemption.

To me, nothing is wrong with a sink. :) It is just that once the token was stuck in an activity I could get it out. Now I am redirecting the token in a sink thanks to the preemption.

Thank you again.

0 Likes 0 ·