Id like to be able to load a flow based on some logic specific to my application.
I need to use the same URL endpoint but would like to load a different web flow file depending on result of my logic.
I have defined two web flow files, one in common folder the other in specific. They each have different ID's.
Is there a way I can process my logic and depending on the result load one of these two floes using the same URL endping.
<webflow:flow-location path="/WEB-INF/flows/common/myFlow.xml" id="myCommonID" />
<webflow:flow-location path="/WEB-INF/flows/specific/myFlow.xml" id="mySpecificID" />
I have tried creating a custom AbstractFlowHandler but can't find the right way to invoke it so the correct flow ID is used.
I'm also noticing the flowURLHandler is always used by default.