How to reset an execution of a subflow


I am building a multi step authentication flow with keycloak. I need to build a flow that has subflows in them.

I am aware that I can reset the whole flow calling -> resetFlow on the context but I only need to reset the subflow and not the whole execution.

Is there a way I can reset the execution of the subflow only? What is the best way to approach this?

Thanks for any advice!

Hey @istvano did you manage to do this?

You can try like this:

String id = context.getAuthenticationSession().getAuthNote(MULTIFACTOR_AUTHENTICATOR_ID);