| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.core.AbstractMutable
org.jboss.seam.core.Pageflow
@Scope(value=CONVERSATION) @PerNestedConversation @Name(value="org.jboss.seam.core.pageflow") @Intercept(value=NEVER) @Install(dependencies="org.jboss.seam.core.jbpm", precedence=0) public class Pageflow
A Seam component that manages the current jBPM ProcessInstance used for pageflow.
| Constructor Summary | |
|---|---|
| Pageflow() | |
| Method Summary | |
|---|---|
|  void | begin(String pageflowDefinitionName)Begin executing a pageflow. | 
|  String | getNoConversationViewId(String pageflowName,
                        String pageflowNodeName) | 
|  org.jbpm.graph.def.Node | getNode()Get the current Node of the pageflow. | 
|  Page | getPage()Get the current Page of the pageflow. | 
|  int | getPageflowCounter()Get the current counter value, used for detecting illegal use of the backbutton. | 
| protected  org.jbpm.graph.def.ProcessDefinition | getPageflowProcessDefinition(String pageflowName) | 
|  String | getPageViewId()Get the JSF view id of the current page in the pageflow. | 
|  org.jbpm.graph.exe.ProcessInstance | getProcessInstance() | 
| protected  String | getViewId(Page page)Allows the user to extend this class and use some logical naming of pages other than the JSF view id in their pageflow. | 
|  boolean | hasDefaultTransition()Does the current node have a default transition? | 
|  boolean | hasTransition(String outcome) | 
| protected  void | illegalNavigation()Add a message to indicate that illegal navigation occurred. | 
| static Pageflow | instance() | 
|  boolean | isInProcess() | 
| protected  void | navigate(javax.faces.context.FacesContext context)Navigate to the current page. | 
|  void | navigate(javax.faces.context.FacesContext context,
         String outcome)Given the JSF action outcome, perform navigation according to the current pageflow. | 
|  void | processEvents(String type)Process events defined in the pageflow. | 
| protected  void | redirect(Page page)Redirect to the Page. | 
| protected  void | render(javax.faces.context.FacesContext context,
       Page page)Proceed to render the Page. | 
|  void | reposition(String nodeName)Reposition the pageflow at the named node. | 
|  void | setProcessInstance(org.jbpm.graph.exe.ProcessInstance processInstance) | 
|  String | toString() | 
|  void | validatePageflow()Check that the current state of the pageflow matches what is expected by the faces request. | 
| Methods inherited from class org.jboss.seam.core.AbstractMutable | 
|---|
| clearDirty, setDirty, setDirty | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public Pageflow()
| Method Detail | 
|---|
public boolean isInProcess()
public org.jbpm.graph.exe.ProcessInstance getProcessInstance()
public void setProcessInstance(org.jbpm.graph.exe.ProcessInstance processInstance)
public static Pageflow instance()
public int getPageflowCounter()
public void validatePageflow()
protected void illegalNavigation()
public org.jbpm.graph.def.Node getNode()
public void reposition(String nodeName)
nodeName - the name of a nodepublic Page getPage()
protected void navigate(javax.faces.context.FacesContext context)
protected void redirect(Page page)
protected void render(javax.faces.context.FacesContext context,
                      Page page)
protected String getViewId(Page page)
page - the Page object
public String getPageViewId()
public boolean hasDefaultTransition()
public boolean hasTransition(String outcome)
public void navigate(javax.faces.context.FacesContext context,
                     String outcome)
public void processEvents(String type)
type - one of: "process-validations", "update-model-values",
                     "invoke-application", "render-response"public void begin(String pageflowDefinitionName)
pageflowDefinitionName - the name of the pageflow definitionpublic String getNoConversationViewId(String pageflowName, String pageflowNodeName)
protected org.jbpm.graph.def.ProcessDefinition getPageflowProcessDefinition(String pageflowName)
public String toString()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||