@Scope(value=CONVERSATION) @PerNestedConversation @Name(value="org.jboss.seam.pageflow.pageflow") @BypassInterceptors @Install(dependencies="org.jboss.seam.bpm.jbpm", precedence=0, classDependencies="javax.faces.context.FacesContext") public class Pageflow extends AbstractMutable implements Serializable
| Constructor and Description |
|---|
Pageflow() |
| Modifier and Type | Method and Description |
|---|---|
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() |
org.jbpm.graph.exe.ProcessInstance |
getSubProcessInstance() |
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() |
boolean |
isStarted() |
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 |
raiseBeginEvent(String pageflowDefinitionName) |
protected void |
raiseEndEventIfNecessary() |
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(javax.faces.context.FacesContext facesContext)
Check that the current state of the pageflow matches
what is expected by the faces request.
|
clearDirty, setDirty, setDirtypublic boolean isInProcess()
public boolean isStarted()
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(javax.faces.context.FacesContext facesContext)
protected void illegalNavigation()
public org.jbpm.graph.def.Node getNode()
public org.jbpm.graph.exe.ProcessInstance getSubProcessInstance()
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 objectpublic String getPageViewId()
public boolean hasDefaultTransition()
public boolean hasTransition(String outcome)
public void navigate(javax.faces.context.FacesContext context,
String outcome)
protected void raiseEndEventIfNecessary()
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 definitionprotected void raiseBeginEvent(String pageflowDefinitionName)
public String getNoConversationViewId(String pageflowName, String pageflowNodeName)
protected org.jbpm.graph.def.ProcessDefinition getPageflowProcessDefinition(String pageflowName)
Copyright © 2015 Seam Framework. All Rights Reserved.