public interface DistributionHandling
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<QualifiedAgent> |
distribute(SessionToken session,
WorklistItem item,
java.util.Map<QualifiedAgent,Worklist<? extends WorklistItem>> worklists)
Distributes the designated worklist item among the designated agents
(stored as keys in the map) and returns a collection of chosen agents for
assignment of the worklist item.
|
java.lang.String |
getID()
Gets the (unique) name of the distribution handling procedure which is
used to choose the right procedure for a certain worklist item.
|
java.util.Set<QualifiedAgent> |
redistribute(SessionToken session,
WorklistItem rejectedItem,
Worklist<WorklistItem> worklist,
java.util.Map<QualifiedAgent,Worklist<? extends WorklistItem>> worklists)
(Re-)Distributes the designated worklist item among the designated agents
(stored as keys in the map) ignoring the owner of the designated worklist
and returns a collection of chosen agents for assignment of the worklist
item.
|
java.lang.String getID()
java.util.Set<QualifiedAgent> distribute(SessionToken session, WorklistItem item, java.util.Map<QualifiedAgent,Worklist<? extends WorklistItem>> worklists)
session - The session which is used to check for access rights on this
method.item - The worklist item to be distributed.worklists - An unmodifiable map containing the potential receivers of
the worklist items as keys and their worklists as entries.java.util.Set<QualifiedAgent> redistribute(SessionToken session, WorklistItem rejectedItem, Worklist<WorklistItem> worklist, java.util.Map<QualifiedAgent,Worklist<? extends WorklistItem>> worklists)
session - The session which is used to check for access rights on this
method.rejectedItem - The worklist item that has been rejected and needs to
be (re-)distributed.worklist - The worklist of the agent that has rejected the worklist
item.worklists - An unmodifiable map containing the potential receivers of
the worklist items as keys and their worklists as entries.