A simple 1 minute tutorial, how to configure an easy 3 steps flow and invoke transitions.
The first thing first is to prepare the configuration XML file. It is going to be parsed by JAXB, so you have to strictly respect XSD.
Now you have to initialize the flow processor. It can parse the XML file from an input stream. Also you can change some properties or add listeners etc. That is just going to be done once. It can be an application singleton, for example a Spring bean is a good solution for Spring based web applications.
Now se how to create the flow carter and shift between flow states.