How to achieve this behavior:
Lets say i have activity A
Then i start a flow and have activities A,B,C,D
If success in D it will start activity E and the stack will be A,B,C,D,E
What i want here is that the stack would be A,E so B,C,D would be removed from the middle.
create that and add all your activities to this. whem you need to close them type:
I thinhk this will solve the problem
let me know about the result