title: JSF Single page application gui flow
body: <p>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. </p>
  
  <p>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.</p>
  
  <p>My question:</p>
  
  <p>Are there any best practices to realize such a workflow engine. ( Just looked at the GoV pattern state machine and the activiti project)</p>
  
  <p>Regards</p>