|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxflow.client.WorkflowManager
WorkflowManager contains all workflow administrative functions. Clients needing to perform functions such as starting/aborting workflows, deploying workflows, etc should invoke methods from this class.
| Field Summary | |
static java.lang.String |
BPEL
|
static java.lang.String |
XFLOW
|
| Constructor Summary | |
WorkflowManager()
|
|
| Method Summary | |
static AbortWorkflowResponse |
abortWorkflow(java.lang.Integer workflowId,
User user)
Aborts an active workflow instance |
static DeployModelResponse |
deployModel(java.lang.String xml,
java.lang.String type,
User user)
Deploys a workflow model from an XML document |
static java.util.List |
getActiveWorkflows(User user)
Gets all active workflow instances |
static java.util.List |
getAllWorkflows(User user)
Gets all workflow instances |
static java.util.List |
getAllWorkflowsByName(java.lang.String name,
User user)
Gets all workflow instances |
static Node |
getNodeByName(java.lang.String workflowName,
int workflowVersion,
java.lang.String nodeName,
User user)
Gets all process nodes participating in a workflow instance |
static java.util.List |
getProcessNodes(java.lang.Integer workflowId,
User user)
Gets all process nodes participating in a workflow instance |
static java.lang.Object |
getVariable(java.lang.Integer workflowId,
java.lang.String variableName,
User user)
Gets a variable for a specified workflow instance |
static java.util.List |
getWorkflowModels(User user)
Gets all deployed workflow models |
static WorkflowState |
getWorkflowState(java.lang.Integer workflowId,
User user)
Gets the workflow state |
static ResumeWorkflowResponse |
resumeWorkflow(java.lang.Integer workflowId,
User user)
Resumes a suspended workflow instance |
static SetVariableResponse |
setVariable(java.lang.Integer workflowId,
java.lang.String variableName,
java.lang.Object variableValue,
User user)
Sets a variable for a specified workflow instance |
static java.lang.Integer |
startWorkflow(java.lang.String workflowName,
int workflowVersion,
WorkItem workItem,
User user)
Starts a workflow with a specified version |
static java.lang.Integer |
startWorkflow(java.lang.String workflowName,
WorkItem workItem,
User user)
Starts a workflow. |
static SuspendWorkflowResponse |
suspendWorkflow(java.lang.Integer workflowId,
User user)
Suspends an active workflow instance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String XFLOW
public static final java.lang.String BPEL
| Constructor Detail |
public WorkflowManager()
| Method Detail |
public static DeployModelResponse deployModel(java.lang.String xml,
java.lang.String type,
User user)
throws XflowException
xml - the XML documenttype - the XML document type
valid type currently supported is: XFLOW.
BPEL in the near futureuser - the user
XflowException
public static java.lang.Integer startWorkflow(java.lang.String workflowName,
WorkItem workItem,
User user)
throws XflowException
workflowName - the workflow nameworkItem - the work itemuser - the initiator of the workflow
XflowException
public static java.lang.Integer startWorkflow(java.lang.String workflowName,
int workflowVersion,
WorkItem workItem,
User user)
throws XflowException
workflowName - the workflow nameworkflowVersion - the workflow versionworkItem - the work itemuser - the initiator of the workflow
XflowException
public static AbortWorkflowResponse abortWorkflow(java.lang.Integer workflowId,
User user)
throws XflowException
workflowId - the workflow instance IDuser - the user requesting the abort
XflowException
public static SuspendWorkflowResponse suspendWorkflow(java.lang.Integer workflowId,
User user)
throws XflowException
workflowId - the workflow instance IDuser - the user requesting the suspend
XflowException
public static ResumeWorkflowResponse resumeWorkflow(java.lang.Integer workflowId,
User user)
throws XflowException
workflowId - the workflow instance IDuser - the user requesting the resume
XflowException
public static WorkflowState getWorkflowState(java.lang.Integer workflowId,
User user)
throws XflowException
workflowId - the workflow instance IDuser - the user
XflowException
public static SetVariableResponse setVariable(java.lang.Integer workflowId,
java.lang.String variableName,
java.lang.Object variableValue,
User user)
throws XflowException
workflowId - the workflow instance IDvariableName - the variable namevariableValue - the variable value - must be serializableuser - the user
XflowException
public static java.lang.Object getVariable(java.lang.Integer workflowId,
java.lang.String variableName,
User user)
throws XflowException
workflowId - the workflow instance IDvariableName - the variable nameuser - the user
XflowException
public static java.util.List getActiveWorkflows(User user)
throws XflowException
user - the user
XflowException
public static java.util.List getAllWorkflows(User user)
throws XflowException
user - the user
XflowException
public static java.util.List getAllWorkflowsByName(java.lang.String name,
User user)
throws XflowException
name - the workflow model nameuser - the user
XflowException
public static java.util.List getProcessNodes(java.lang.Integer workflowId,
User user)
throws XflowException
workflowId - the workflow instance IDuser - the user
XflowException
public static Node getNodeByName(java.lang.String workflowName,
int workflowVersion,
java.lang.String nodeName,
User user)
throws XflowException
workflowName - the workflow model nameworkflowVersion - the workflow version (-1 means get the latest)nodeName - the node nameuser - the user
XflowException
public static java.util.List getWorkflowModels(User user)
throws XflowException
XflowException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||