public class WorkflowDirector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVEWF |
static java.lang.String |
COMPLETEWF |
static java.lang.String |
INITIATEWORKFLOW
Pages to go to
|
static java.lang.String |
INPUTWF |
static java.lang.String |
LISTASSIGNMENTS |
static java.lang.String |
NEWOROLDWF |
static java.lang.String |
REASSIGNWF |
static java.lang.String |
STOPWF |
Constructor and Description |
---|
WorkflowDirector(MXSession s)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addWorkflowWarning(MXException exception)
Add the exception to the list of warnings.
|
void |
allowAutoInit()
Reset AutoInit
|
void |
clearDirections()
Clear the directions.
|
void |
clearInteraction()
Clears interaction directions when they are no longer needed.
|
boolean |
doAutoInit(MboRemote targetMbo)
Called when the current record of an application is saved, initiates
workflow if there's a process set up to auto-initiate for the Mbo type.
|
WFAssignmentRemote |
getAssignment()
Get the current workflow assignment.
|
MboRemote |
getControlled()
Get the Mbo under workflow control.
|
long |
getControlledUniqueKey()
Returns the unique key of Mbo controlled by workflow.
|
WFInstanceRemote |
getInstance()
Returns the current workflow instance
|
java.lang.String |
getLaunchProcess()
Get the process to launch after a Mbo hop
|
java.lang.String |
getNextAction()
Get the next page to display.
|
java.lang.String |
getNextApp()
Get the next application to bring up.
|
java.lang.String |
getNextDirectionBody()
Returns the body text for the directions dialog
|
java.lang.String |
getNextDirectionTitle()
Returns the title for the directions dialog
|
java.lang.String |
getNextTab()
Get the next tab.
|
long |
getNextUniqueId()
Used when setRelationship is used - returns the unique id of the related
record.
|
MboSetRemote |
getWfSet()
Get the set to use with a workflow based parameter set -
InitiateWorkflow, CompleteAssignment, ...
|
MXException[] |
getWorkflowWarnings()
Gives all the warnings from the list - this will empty the list of
warnings.
|
void |
input(DirectorInput message)
Respond to a UI thing
|
boolean |
isAtInteraction()
Is the director pausing at an interaction?
|
boolean |
isInteractionDoublePlay()
Determines if the interaction has an Action asscociated with it
|
void |
preventAutoInit()
This tells the director to not auto-initiate workflow at the next call.
|
void |
reset()
Reset the workflow director
|
void |
resetNonUI()
Reset the WorkflowDirector but preserve the UI state (NextApp, NextAction and NextTab)
Typically call this method when the workflow is completed but there is an interaction
node that needs to be invoked before the stopping the workflow.
|
void |
setAssignID(int assignID)
Give the ID of the assignment - use for launching from the Inbox.
|
void |
setAssignment(WFAssignmentRemote remote)
Set the current workflow assignment.
|
void |
setControlled(MboRemote remote)
Set the Mbo controlled by the current workflow instance.
|
void |
setInstance(WFInstanceRemote remote)
Set the current workflow instance.
|
void |
setLaunchProcess(java.lang.String launchProcess)
Set the process to launch after a Mbo hop.
|
void |
setNextTab(java.lang.String nextTab)
Set the next tab to go to
|
void |
setProcessName(java.lang.String valueString)
Tell the director which process to initiate or complete assignments for.
|
void |
startInput(java.lang.String app,
MboRemote target,
DirectorInput message)
Respond to a start of a UI thing.
|
public static final java.lang.String INITIATEWORKFLOW
public static final java.lang.String INPUTWF
public static final java.lang.String COMPLETEWF
public static final java.lang.String LISTASSIGNMENTS
public static final java.lang.String REASSIGNWF
public static final java.lang.String NEWOROLDWF
public static final java.lang.String STOPWF
public static final java.lang.String ACTIVEWF
public WorkflowDirector(MXSession s)
s
- Used to create MboSets when needed.public boolean isInteractionDoublePlay()
public WFInstanceRemote getInstance()
public WFAssignmentRemote getAssignment()
public java.lang.String getNextApp()
public java.lang.String getNextAction()
public MboSetRemote getWfSet()
public void setAssignment(WFAssignmentRemote remote)
remote
- public void setInstance(WFInstanceRemote remote)
remote
- public java.lang.String getNextDirectionBody()
public java.lang.String getNextDirectionTitle()
public void clearDirections()
public void input(DirectorInput message) throws MXException, java.rmi.RemoteException
message
- The name of the action.MXException
java.rmi.RemoteException
public void reset() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void resetNonUI() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public MboRemote getControlled()
public void setControlled(MboRemote remote)
remote
- The Mbo.public long getControlledUniqueKey() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void startInput(java.lang.String app, MboRemote target, DirectorInput message) throws MXException, java.rmi.RemoteException
target
- The target.message
- What the start is about.MXException
java.rmi.RemoteException
public long getNextUniqueId()
public MXException[] getWorkflowWarnings()
public void addWorkflowWarning(MXException exception)
exception
- The exception to add.public boolean isAtInteraction()
public java.lang.String getNextTab()
public void setNextTab(java.lang.String nextTab)
nextTab
- The nextTab to set.public java.lang.String getLaunchProcess()
public void setLaunchProcess(java.lang.String launchProcess)
launchProcess
- The launchProcess to set.public void setAssignID(int assignID)
assignID
- public void setProcessName(java.lang.String valueString)
valueString
- Name of the process.public boolean doAutoInit(MboRemote targetMbo) throws java.rmi.RemoteException, MXException
mbo
- The current Mbo.java.rmi.RemoteException
MXException
public void preventAutoInit()
public void allowAutoInit()
public void clearInteraction()