Recursion In Libraries - "Invocation Cycles" Error

Hello @michael.new, @Enrico

We are not supporting recursion in libraries yet, but until then, one workaround is to design the recursive workflow/activity as a state machine and instead of callling invoke workflow, a transition to the same state can be made to simulate the recursion. I know it s not ideal and the activity will not be so simple anymore, but if you really need a behavior like this, a state machine is always helpful.

RecursiveStateMachine

I’ve made a simple example with a counter, same as above, to simulate recursive(counter - 1).

LibWithRecStateMachine.zip (9.8 KB)

3 Likes