Nvm. Found it myself.
Create a boolean variable that controls modal Change value of that variable inside workflow