Ok, so I have read
http://docs.oracle.com/javaee/7/tutorial/doc/jsf-configure003.htm
https://blogs.oracle.com/arungupta/entry/jsf_2_2_faces_flow
And a few more posts. The question that I couldn't get answered by reading these resources is:
How do I get rid of a flow by navigating to a random view? To clarify my question let me give an example.
Let's say I'm building an webapp that have a sidebar with a menu to all sort of things (crud for employees, crud for customers, and other cruds and reports).
Then I want to start a facesflow to properly handle the creation of a complex object, being this creation split in several views (BTW, I know how to start it). But how do I end the flow if the user clicks on, e.g, a link that generates a report that has nothing to do with the flow.
Will the flow be kept in memory? Will it be finished automatically by leaving the view associated with the flow?
Writing this question it came to my mind that the second option would be the best. If the users go to another view that has nothing to do with the flow, then the flow magically disappears.