@AccessLevel(value=EXTERNAL) public class DefaultWorkResolver extends DefaultWorkResolverAdapter
WorkResolver
.Constructor and Description |
---|
DefaultWorkResolver() |
Modifier and Type | Method and Description |
---|---|
void |
resolveWork(curam.util.workflow.struct.TaskDetails taskDetails,
curam.core.sl.struct.AllocationTargetList allocationTargets,
boolean previouslyAllocated)
Assigns the task to an agent or agents that can work on it.
|
void |
undoWorkResolution(long taskID)
Removes any assignments of the task to an agent or agents.
|
populateTaskDetails, populateTaskDetails, resolveWork, resolveWork, resolveWork
public void resolveWork(curam.util.workflow.struct.TaskDetails taskDetails, curam.core.sl.struct.AllocationTargetList allocationTargets, boolean previouslyAllocated)
A call is also made to the changeTaskDetailsAfterResolveWork()
function to allow the details of the task to be modified after the
assignments have been resolved.
resolveWork
in class DefaultWorkResolverAdapter
taskDetails
- The details of the task to allocate.allocationTargets
- A list of allocation targets to assign the task
to.previouslyAllocated
- A flag that indicates if the task was
previously allocated. This is used to ensure that any previous task
assignment records that may exist due to a previous allocation are
removed before the new targets are resolved.public void undoWorkResolution(long taskID)
A call is also made to the
changeTaskDetailsAfterUndoWorkResolution()
function to allow
the details of the task to be modified after the undo work resolution
processing has finished.
undoWorkResolution
in interface curam.util.workflow.impl.WorkResolver
undoWorkResolution
in class DefaultWorkResolverAdapter
taskID
- The identifier of the task to un-resolve.