|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xflow.client.WorkflowProcess
A WorkflowProcess receives work items from the XFlow system and "works" on them. It is bound or associated to a node in the workflow model.
Constructor Summary | |
WorkflowProcess(java.lang.String wfName,
int wfVersion,
java.lang.String processName,
xflow.client.InboxMessageListener listener,
xflow.security.User u)
WorkflowProcess constructor |
Method Summary | |
void |
completeWorkItem(xflow.common.WorkItem workItem)
Completes a work item. |
xflow.common.WorkItem |
getNextWorkItem()
Gets the next work item (in First-In-First-Out order) from the inbox |
xflow.common.WorkItem |
getWorkItem(xflow.common.WorkItemId workItemId)
Gets a work item with a specific work item ID from the inbox |
java.util.Vector |
getWorkItems()
Gets a list of work items from this process's inbox. |
void |
onMessage(javax.jms.Message msg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkflowProcess(java.lang.String wfName, int wfVersion, java.lang.String processName, xflow.client.InboxMessageListener listener, xflow.security.User u) throws XflowException
wfName
- the workflow namewfVersion
- the workflow version - set to -1 if the latest version is to be usedprocessName
- the process name - must be the name of a valid process node in the workflow modellistener
- the inbox listener for asynchronous delivery of work items - may be null
XflowException
Method Detail |
public void onMessage(javax.jms.Message msg)
onMessage
in interface javax.jms.MessageListener
public java.util.Vector getWorkItems() throws XflowException
XflowException
public xflow.common.WorkItem getNextWorkItem() throws XflowException
XflowException
public xflow.common.WorkItem getWorkItem(xflow.common.WorkItemId workItemId) throws XflowException
XflowException
public void completeWorkItem(xflow.common.WorkItem workItem) throws XflowException
XflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |