|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WorklistManager is the main remote EJB interface for Worklist operations. Through the WorklistManager interface, the Worklist task operations can be performed.
Task lifecycle operations:
- create task
- abort, assign, claim, resume, return, start, stop, and suspend task
- update task information, add or remove user-defined properties
Task management operations:
- archive, delete and purge task
Task querying operations:
- get tasks based on user-defined criteria
- get task properties, request and response data
For task querying operations, using the WorklistScrollableResultsManager interface is recommended for increased scalability and performance. This allows a specified range of results to be returned from the query, instead of returning all results satisfying the querying criteria.
Method Summary | |
void |
abortTask(String taskId)
Abort a task |
void |
archiveTasks()
Archive all the tasks in their final state (COMPLETED or ABORTED) if the archiver is on. |
void |
assignToUser(String userName,
String taskId)
Assign the task to the user and claim it on his behalf. |
String |
assignToUserInGroup(String groupName,
String taskId)
Assign the task to a user (chosen by the system) in the group and claim the task on his behalf. |
void |
assignToUsersAndGroups(String[] userNamesAndOrGroupNames,
String taskId)
Assign the tasks to users and/or groups |
void |
claimTask(String taskId)
Claim the task. |
void |
claimTask(String user,
String taskId)
Claim the task on behalf of the user. |
void |
completeTask(String taskId)
Complete a STARTED task. |
String |
createTask(String name)
Create a task, with all the default values. |
String |
createTask(TaskCreation taskCreation)
Create a task. |
String |
createTaskXML(com.bea.wli.worklist.xml.TaskCreationXMLDocument doc)
Create task using an xml document |
void |
deleteTask(String taskId)
Delete the task. |
void |
deleteTasks(TaskSelector selector)
Delete the selected tasks. |
String[] |
getContainingGroups(String userOrGroup)
Return all the groups containing this user or group |
int |
getSelectedTasksNumber(TaskSelector selector)
Get the number of tasks selected. |
String[] |
getTaskIds(TaskSelector selector)
Get task ids of all the selected tasks |
TaskInfo |
getTaskInfo(String taskId)
Get the task info object. |
TaskInfo[] |
getTaskInfos(TaskSelector selector)
Get a task info array of all the selected tasks |
String[] |
getTaskProperties(String[] propertyNames,
String taskId)
Get user defined task property values. |
String[] |
getTaskPropertiesNames(String taskId)
Return all the user defined task property names. |
String |
getTaskProperty(String propertyName,
String taskId)
Get a user defined task property value. |
TaskMessage |
getTaskRequest(String taskId)
Get the task request. |
com.bea.xml.XmlObject |
getTaskRequestAsXmlObject(String taskId)
Get the task request as XmlObject |
TaskMessage |
getTaskResponse(String taskId)
Get the task response. |
com.bea.xml.XmlObject |
getTaskResponseAsXmlObject(String taskId)
Get the task response as XmlObject. |
String[] |
getUsersInGroup(String group)
Return all the members of a WLS group |
void |
purgeTasks()
Purge all the tasks that have been in their final state for more than the purge delay value. |
String[] |
removeTaskProperties(String[] propertyNames,
String taskId)
Remove user defined task properties |
void |
resumeTask(String taskId)
Return a task to the state it was before suspended. |
void |
returnTask(String taskId)
Return a task that is in the state CLAIMED or STARTED to the state ASSIGNED with all the previous assignees. |
void |
setTaskCanBeAborted(Boolean value,
String taskId)
Specify if an assignee or the claimant can abort the task. |
void |
setTaskCanBeReassigned(Boolean value,
String taskId)
Specify if a task assignee can reassign the task. |
void |
setTaskCanBeReturned(Boolean value,
String taskId)
Specify if the claimant can return the task. |
void |
setTaskClaimDueBusinessDate(BusinessTime time,
String taskId)
Set the task claim due date using a business time. |
void |
setTaskClaimDueDate(Date claimDueDate,
String taskId)
Set the task claim due date. |
void |
setTaskComment(String comment,
String taskId)
Set a task comment. |
void |
setTaskCompletionDueBusinessDate(BusinessTime time,
String taskId)
Set the task completion due date using a business time. |
void |
setTaskCompletionDueDate(Date completeDueDate,
String taskId)
Set the task completion due date. |
void |
setTaskOwner(String owner,
String taskId)
Set the task owner. |
void |
setTaskPriority(Integer priority,
String taskId)
Set a task priority. |
String[] |
setTaskProperties(String[] propertyNames,
String[] values,
String taskId)
Update/Create user defined task properties. |
String |
setTaskProperty(String propertyName,
String value,
String taskId)
Update/Create a user defined task property. |
void |
setTaskRequest(TaskMessage request,
String taskId)
Set the task request. |
void |
setTaskRequestAsXmlObject(com.bea.xml.XmlObject request,
String mimeType,
String taskId)
Set the task request as XmlObject. |
void |
setTaskResponse(TaskMessage response,
String taskId)
Set the task response. |
void |
setTaskResponseAsXmlObject(com.bea.xml.XmlObject response,
String mimeType,
String taskId)
Set the task response as XmlObject. |
void |
startTask(String taskId)
Start working on a task. |
void |
stopTask(String taskId)
Returns the task from state STARTED to CLAIMED. |
void |
suspendTask(String taskId)
Suspend the task. |
Method Detail |
public String createTask(String name) throws ManagementException, RemoteException, AssignmentException
name
-
ManagementException
- If the operation fails.
RemoteException
- If an RMI communication error occurs.
AssignmentException
public String createTask(TaskCreation taskCreation) throws ManagementException, RemoteException, BusinessCalendarException, AssignmentException
taskCreation
- object containing information about the new task.
ManagementException
- If the operation fails.
RemoteException
- If an RMI communication error occurs.
BusinessCalendarException
AssignmentException
TaskCreation
public String createTaskXML(com.bea.wli.worklist.xml.TaskCreationXMLDocument doc) throws ManagementException, BusinessCalendarException, RemoteException, AssignmentException
doc
- an XML Bean containing information about the new task.
ManagementException
RemoteException
BusinessCalendarException
AssignmentException
public int getSelectedTasksNumber(TaskSelector selector) throws ManagementException, RemoteException
selector
- containing selection criteria
ManagementException
RemoteException
TaskSelector
public TaskInfo getTaskInfo(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public TaskInfo[] getTaskInfos(TaskSelector selector) throws ManagementException, RemoteException
selector
- containing selection criteria
ManagementException
RemoteException
TaskSelector
public String[] getTaskIds(TaskSelector selector) throws ManagementException, RemoteException
selector
- containing selection criteria
ManagementException
RemoteException
public void assignToUser(String userName, String taskId) throws ManagementException, AssignmentException, RemoteException
userName
- taskId
-
ManagementException
AssignmentException
RemoteException
public String assignToUserInGroup(String groupName, String taskId) throws ManagementException, AssignmentException, RemoteException
Load for all the users in that group is calculated. The load is calculated as the number of claimed tasks by the user. The user with the least load will be selected. If there is a tie the system randomly picks a user among the tied ones.
groupName
- taskId
-
ManagementException
AssignmentException
RemoteException
public void assignToUsersAndGroups(String[] userNamesAndOrGroupNames, String taskId) throws ManagementException, AssignmentException, RemoteException
userNamesAndOrGroupNames
- taskId
-
ManagementException
AssignmentException
RemoteException
public void claimTask(String taskId) throws ManagementException, RemoteException
taskId
- the taskId
ManagementException
RemoteException
public void claimTask(String user, String taskId) throws ManagementException, RemoteException
[@TODO- Make sure worklist admin is universally know, make it clear that the caller needs to be whatever worklist admin means. Also make sure task owner is properly defined. {Still reading the docs to make sure the definitions are well known.} ]
The task will go from the state ASSIGNED to CLAIMED.
user
- taskId
-
ManagementException
RemoteException
public void returnTask(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void startTask(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void stopTask(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void suspendTask(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void resumeTask(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void completeTask(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void abortTask(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void setTaskComment(String comment, String taskId) throws ManagementException, RemoteException
comment
- taskId
-
ManagementException
RemoteException
public void setTaskPriority(Integer priority, String taskId) throws ManagementException, RemoteException
priority
- taskId
-
ManagementException
RemoteException
public void setTaskCompletionDueDate(Date completeDueDate, String taskId) throws ManagementException, RemoteException
completeDueDate
- taskId
-
ManagementException
RemoteException
public void setTaskClaimDueDate(Date claimDueDate, String taskId) throws ManagementException, RemoteException
claimDueDate
- taskId
-
ManagementException
RemoteException
public void setTaskCompletionDueBusinessDate(BusinessTime time, String taskId) throws ManagementException, BusinessCalendarException, RemoteException
time
- taskId
-
ManagementException
RemoteException
BusinessCalendarException
public void setTaskClaimDueBusinessDate(BusinessTime time, String taskId) throws ManagementException, BusinessCalendarException, RemoteException
time
- taskId
-
ManagementException
RemoteException
BusinessCalendarException
public void setTaskOwner(String owner, String taskId) throws ManagementException, RemoteException
owner
- taskId
-
ManagementException
RemoteException
public void setTaskCanBeReassigned(Boolean value, String taskId) throws ManagementException, RemoteException
value
- taskId
-
ManagementException
RemoteException
public void setTaskCanBeReturned(Boolean value, String taskId) throws ManagementException, RemoteException
value
- taskId
-
ManagementException
RemoteException
public void setTaskCanBeAborted(Boolean value, String taskId) throws ManagementException, RemoteException
value
- taskId
-
ManagementException
RemoteException
public TaskMessage getTaskRequest(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public com.bea.xml.XmlObject getTaskRequestAsXmlObject(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void setTaskRequest(TaskMessage request, String taskId) throws ManagementException, RemoteException
request
- taskId
-
ManagementException
RemoteException
public void setTaskRequestAsXmlObject(com.bea.xml.XmlObject request, String mimeType, String taskId) throws ManagementException, RemoteException
request
- mimeType
- taskId
-
ManagementException
RemoteException
public TaskMessage getTaskResponse(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public com.bea.xml.XmlObject getTaskResponseAsXmlObject(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void setTaskResponse(TaskMessage response, String taskId) throws ManagementException, RemoteException
response
- taskId
-
ManagementException
RemoteException
public void setTaskResponseAsXmlObject(com.bea.xml.XmlObject response, String mimeType, String taskId) throws ManagementException, RemoteException
response
- mimeType
- taskId
-
ManagementException
RemoteException
public String getTaskProperty(String propertyName, String taskId) throws ManagementException, RemoteException
A property is made up of a name and a value.
propertyName
- taskId
-
ManagementException
RemoteException
public String[] getTaskProperties(String[] propertyNames, String taskId) throws ManagementException, RemoteException
propertyNames
- taskId
-
ManagementException
RemoteException
public String setTaskProperty(String propertyName, String value, String taskId) throws ManagementException, RemoteException
propertyName
- value
- taskId
-
ManagementException
RemoteException
public String[] setTaskProperties(String[] propertyNames, String[] values, String taskId) throws ManagementException, RemoteException
propertyNames
- values
- taskId
-
ManagementException
RemoteException
public String[] getTaskPropertiesNames(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public String[] removeTaskProperties(String[] propertyNames, String taskId) throws ManagementException, RemoteException
propertyNames
-
ManagementException
RemoteException
public void archiveTasks() throws ManagementException, RemoteException
ManagementException
RemoteException
public void purgeTasks() throws ManagementException, RemoteException
ManagementException
RemoteException
public void deleteTask(String taskId) throws ManagementException, RemoteException
taskId
-
ManagementException
RemoteException
public void deleteTasks(TaskSelector selector) throws ManagementException, RemoteException
selector
- containing selection criteria
ManagementException
RemoteException
public String[] getUsersInGroup(String group) throws ManagementException, RemoteException
group
-
ManagementException
RemoteException
public String[] getContainingGroups(String userOrGroup) throws ManagementException, RemoteException
userOrGroup
-
ManagementException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |