I need to implement a feature that allows me to go ahead and terminate/or stay in the current flow depending on what the user selects in a confirm dialog.
We have a webflow to create a new order that consists of 5 steps.
If for example the user is filling in step 3 of 5 and he clicks a link on the page that starts a new flow(any action that terminates the active flow), we want to give him a confirm dialog that says something like "are you sure you want to leave the current order registration, all data will be lost".
If he clicks yes, he will continue to the new flow, if he says no, he will stay in the current.
Is it possible to do something like this? I was looking into writing a custom FlowExecutionListener, but I don't think this is the right approach.