Is there a way to logout a user as part of a microflow..?
I want to allow a user to cancel their account. So far, I run a microflow which is passed an ACCOUNT object, set a few flags on their account (mainly change them from active to blocked), send a confirmation email, and end with a cancellation confirmation form. All of the above is working. What I don't know how to do is log the user out during the microflow so that when they get to the cancellation confirmation form, they are no longer logged in. Thanks.
You can create a Java action and use the following code to log out the current user: