i´m currently developing a single page application in JSF 2 (Primefaces , CDI EJB and JPA ). The application (page) has some complex workflows behind the scenes.
For instance if a user enters some kind of data a dialog has to appear which aks for confirmation first and the executes some kind of workflow depending on the answer. Inside the workflow some other dialogs can popup also depending on the inserted data or some database values.
My question:
Are there any best practices to realize such a workflow engine. ( Just looked at the GoV pattern state machine and the activiti project)
Regards
JSF 2.2 will provide a flow scope mechanism called Faces Flows
which fits my needs
thanks for the help