Recursion count

0
Hello there!Is there a way to check how many times a microflow is at calling itself? For example I have a an action ACT_Test which is calling itself ACT_Test. I want it to stop after 5 calls. Is there anyway to do that?
asked
1 answers
1

Hello Vewax

You may want to use the following reference / piece of code

context.getActionStack().get(i).getActionName().contains(currentMicroflowName)

There's a written blog here about it! Please click on this https://medium.com/@marcian.bondoc/how-to-determine-the-current-recursion-depth-of-the-microflow-that-calls-itself-1d50d2ac2db5

Hope this was of great help!




answered