In our application we are using Spring WebFlow to navigate users through the site. In certain pages i need to know from which flow i started the current subflow. Is there any simple way to get this information in Spring WebFlow?
I am using Spring WebFlow version 2.0.9 and unfortunatelly cannot upgrade to newer version.
Simple example:
I am having pages foo/foo.xhtml called from foo/flow.xml, bar/bar.xhtml called from bar/flow.xml.
Finally i have baz/baz.xhtml that has a baz/flow.xml. This is called as subflow from either foo flow or bar flow. In backing bean of baz flow i need to see the "history" how i called my baz/flow.xml
Solution found for this question:
you could also implement your own FLowExecutionListener, and when you enter a StateDefinition you can check if it's an instance of SubflowState and get the name of the parent. Then maybe you could just put that variable in the FlowScope to use it in your state – rptmat57