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.
WorklistScrollableResultManager
Method Summary |
public void | |
public void |
|
public void |
|
public |
|
public void |
|
public void | |
public void | |
public void |
|
public |
|
public |
|
public |
|
public void |
|
public void |
|
public |
|
public int |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public void |
|
public |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public |
|
public |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void | |
public void | |
public void |
|
Method Detail |
public void abortTask(Abort a taskStringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void archiveTasks()Archive all the tasks in their final state (COMPLETED or ABORTED) if the archiver is on.
throwsManagementException,RemoteException
ManagementException
RemoteException
public void assignToUser(Assign the task to the user and claim it on his behalf.StringuserName,StringtaskId)
throwsManagementException,AssignmentException,RemoteException
ManagementException
AssignmentException
RemoteException
publicAssign the task to a user (chosen by the system) in the group and claim the task on his behalf.StringassignToUserInGroup(StringgroupName,StringtaskId)
throwsManagementException,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.
ManagementException
AssignmentException
RemoteException
public void assignToUsersAndGroups(Assign the tasks to users and/or groupsString[] userNamesAndOrGroupNames,StringtaskId)
throwsManagementException,AssignmentException,RemoteException
ManagementException
AssignmentException
RemoteException
public void claimTask(Claim the task.StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void claimTask(Claim the task on behalf of the user. The current user needs to be the worklist admin or the task owner.Stringuser,StringtaskId)
throwsManagementException,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.
ManagementException
RemoteException
public void completeTask(Complete a STARTED task.StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicCreate a task, with all the default values.StringcreateTask(Stringname)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicCreate a task.StringcreateTask(TaskCreationtaskCreation)
throwsManagementException,RemoteException,BusinessCalendarException
ManagementException
RemoteException
BusinessCalendarException
Related Topics
publicCreate task using an xml documentStringcreateTaskXML(TaskCreationXMLDocumentdoc)
throwsManagementException,BusinessCalendarException,RemoteException
ManagementException
BusinessCalendarException
RemoteException
public void deleteTask(Delete the task.StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void deleteTasks(Delete the selected tasks.TaskSelectorselector)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicReturn all the groups containing this user or groupString[] getContainingGroups(StringuserOrGroup)
throwsManagementException,RemoteException
ManagementException
RemoteException
public int getSelectedTasksNumber(Get the number of tasks selected.TaskSelectorselector)
throwsManagementException,RemoteException
ManagementException
RemoteException
Related Topics
publicGet task ids of all the selected tasksString[] getTaskIds(TaskSelectorselector)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicGet the task info object.TaskInfogetTaskInfo(StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicGet a task info array of all the selected tasksTaskInfo[] getTaskInfos(TaskSelectorselector)
throwsManagementException,RemoteException
ManagementException
RemoteException
Related Topics
publicGet user defined task property values.String[] getTaskProperties(String[] propertyNames,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicReturn all the user defined task property names.String[] getTaskPropertiesNames(StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicGet a user defined task property value.StringgetTaskProperty(StringpropertyName,StringtaskId)
throwsManagementException,RemoteException
A property is made up of a name and a value.
ManagementException
RemoteException
publicGet the task request.TaskMessagegetTaskRequest(StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicGet the task request as XmlObjectXmlObjectgetTaskRequestAsXmlObject(StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicGet the task response.TaskMessagegetTaskResponse(StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicGet the task response as XmlObject.XmlObjectgetTaskResponseAsXmlObject(StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicReturn all the members of a WLS groupString[] getUsersInGroup(Stringgroup)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void purgeTasks()Purge all the tasks that have been in their final state for more than the purge delay value. If the archiver is on and the task has not been archived yet, the task cannot be purged.
throwsManagementException,RemoteException
ManagementException
RemoteException
publicRemove user defined task propertiesString[] removeTaskProperties(String[] propertyNames,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void resumeTask(Return a task to the state it was before suspended.StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void returnTask(Return a task that is in the state CLAIMED or STARTED to the state ASSIGNED with all the previous assignees.StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskCanBeAborted(Specify if an assignee or the claimant can abort the task.Booleanvalue,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskCanBeReassigned(Specify if a task assignee can reassign the task.Booleanvalue,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskCanBeReturned(Specify if the claimant can return the task.Booleanvalue,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskClaimDueBusinessDate(Set the task claim due date using a business time.BusinessTimetime,StringtaskId)
throwsManagementException,BusinessCalendarException,RemoteException
ManagementException
BusinessCalendarException
RemoteException
public void setTaskClaimDueDate(Set the task claim due date.DateclaimDueDate,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskComment(Set a task comment.Stringcomment,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskCompletionDueBusinessDate(Set the task completion due date using a business time.BusinessTimetime,StringtaskId)
throwsManagementException,BusinessCalendarException,RemoteException
ManagementException
BusinessCalendarException
RemoteException
public void setTaskCompletionDueDate(Set the task completion due date.DatecompleteDueDate,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskOwner(Set the task owner. The current user must be worklist admin or task owner.Stringowner,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskPriority(Set a task priority. Priority value has to be a positive integer or 0.Integerpriority,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicUpdate/Create user defined task properties.String[] setTaskProperties(String[] propertyNames,String[] values,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
publicUpdate/Create a user defined task property.StringsetTaskProperty(StringpropertyName,Stringvalue,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskRequest(Set the task request.TaskMessagerequest,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskRequestAsXmlObject(Set the task request as XmlObject.XmlObjectrequest,StringmimeType,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskResponse(Set the task response.TaskMessageresponse,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void setTaskResponseAsXmlObject(Set the task response as XmlObject.XmlObjectresponse,StringmimeType,StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void startTask(Start working on a task. The task must be in the state CLAIMED and will go to the state STARTED.StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void stopTask(Returns the task from state STARTED to CLAIMED.StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException
public void suspendTask(Suspend the task. No operation is allowed on the SUSPENDED task until it is resumed.StringtaskId)
throwsManagementException,RemoteException
ManagementException
RemoteException