|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--xflow.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 void |
abortWorkflow(xflow.common.WorkflowId workflowId,
xflow.security.User user)
Aborts an active workflow instance |
static void |
deployModel(java.lang.String xml,
java.lang.String type,
xflow.security.User user)
Deploys a workflow model from an XML document |
static java.util.Vector |
getActiveWorkflows(xflow.security.User user)
Gets all active workflow instances |
static java.util.Vector |
getAllWorkflows(xflow.security.User user)
Gets all workflow instances |
static java.util.Vector |
getAllWorkflowsByName(java.lang.String name,
xflow.security.User user)
Gets all workflow instances |
static xflow.common.Node |
getNodeByName(java.lang.String workflowName,
int workflowVersion,
java.lang.String name,
xflow.security.User user)
Gets all process nodes participating in a workflow instance |
static java.util.Vector |
getProcessNodes(xflow.common.WorkflowId workflowId,
xflow.security.User user)
Gets all process nodes participating in a workflow instance |
static java.lang.Object |
getVariable(xflow.common.WorkflowId workflowId,
java.lang.String variableName,
xflow.security.User user)
Gets a variable for a specified workflow instance |
static java.util.Vector |
getWorkflowModels(xflow.security.User user)
Gets all deployed workflow models |
static xflow.common.WorkflowState |
getWorkflowState(xflow.common.WorkflowId workflowId,
xflow.security.User user)
Gets the workflow state |
static void |
resumeWorkflow(xflow.common.WorkflowId workflowId,
xflow.security.User user)
Resumes a suspended workflow instance |
static void |
setVariable(xflow.common.WorkflowId workflowId,
java.lang.String variableName,
java.lang.Object variableValue,
xflow.security.User user)
Sets a variable for a specified workflow instance |
static xflow.common.WorkflowId |
startWorkflow(java.lang.String workflowName,
int workflowVersion,
xflow.common.WorkItem workItem,
xflow.security.User user)
Starts a workflow with a specified version |
static xflow.common.WorkflowId |
startWorkflow(java.lang.String workflowName,
xflow.common.WorkItem workItem,
xflow.security.User user)
Starts a workflow. |
static void |
suspendWorkflow(xflow.common.WorkflowId workflowId,
xflow.security.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 void deployModel(java.lang.String xml,
java.lang.String type,
xflow.security.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 xflow.common.WorkflowId startWorkflow(java.lang.String workflowName,
xflow.common.WorkItem workItem,
xflow.security.User user)
throws XflowException
workflowName - the workflow nameworkItem - the work itemuser - the initiator of the workflow
XflowException
public static xflow.common.WorkflowId startWorkflow(java.lang.String workflowName,
int workflowVersion,
xflow.common.WorkItem workItem,
xflow.security.User user)
throws XflowException
workflowName - the workflow nameworkflowVersion - the workflow versionworkItem - the work itemuser - the initiator of the workflow
XflowException
public static void abortWorkflow(xflow.common.WorkflowId workflowId,
xflow.security.User user)
throws XflowException
workflowId - the workflow instance IDuser - the user requesting the abort
XflowException
public static void suspendWorkflow(xflow.common.WorkflowId workflowId,
xflow.security.User user)
throws XflowException
workflowId - the workflow instance IDuser - the user requesting the suspend
XflowException
public static void resumeWorkflow(xflow.common.WorkflowId workflowId,
xflow.security.User user)
throws XflowException
workflowId - the workflow instance IDuser - the user requesting the resume
XflowException
public static xflow.common.WorkflowState getWorkflowState(xflow.common.WorkflowId workflowId,
xflow.security.User user)
throws XflowException
workflowId - the workflow instance IDuser - the user
XflowException
public static void setVariable(xflow.common.WorkflowId workflowId,
java.lang.String variableName,
java.lang.Object variableValue,
xflow.security.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(xflow.common.WorkflowId workflowId,
java.lang.String variableName,
xflow.security.User user)
throws XflowException
workflowId - the workflow instance IDvariableName - the variable nameuser - the user
XflowException
public static java.util.Vector getActiveWorkflows(xflow.security.User user)
throws XflowException
user - the user
XflowException
public static java.util.Vector getAllWorkflows(xflow.security.User user)
throws XflowException
user - the user
XflowException
public static java.util.Vector getAllWorkflowsByName(java.lang.String name,
xflow.security.User user)
throws XflowException
name - the workflow model nameuser - the user
XflowException
public static java.util.Vector getProcessNodes(xflow.common.WorkflowId workflowId,
xflow.security.User user)
throws XflowException
workflowId - the workflow instance IDuser - the user
XflowException
public static xflow.common.Node getNodeByName(java.lang.String workflowName,
int workflowVersion,
java.lang.String name,
xflow.security.User user)
throws XflowException
workflowName - the workflow model nameworkflowVersion - the workflow version (-1 means get the latest)user - the user
XflowException
public static java.util.Vector getWorkflowModels(xflow.security.User user)
throws XflowException
XflowException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||