public interface WorklistAdministration
| Modifier and Type | Method and Description |
|---|---|
Worklist<? extends AdministrativeWorklistItem> |
getGlobalWorklist(SessionToken session)
Gets the global worklist which contains all worklist items available in
this worklist manager.
|
Worklist<? extends AdministrativeWorklistItem> |
getGlobalWorklist(SessionToken session,
Filter filter)
Gets the global worklist which contains all worklist items available in
this worklist manager with the items filtered appropriately.
|
IncrementalWorklist<? extends AdministrativeWorklistItem> |
getGlobalWorklistIncrementally(SessionToken session,
boolean respectAggregation,
boolean aggregateGroups)
The same as
getGlobalWorklist(SessionToken) but with a worklist providing incremental
access to its items and optionally containing grouping items. |
IncrementalWorklist<? extends AdministrativeWorklistItem> |
getGlobalWorklistIncrementally(SessionToken session,
Filter filter,
boolean respectAggregation,
boolean aggregateGroups)
The same as
getGlobalWorklist(SessionToken) but with a worklist providing incremental
access to its filtered items. |
Worklist<? extends AdministrativeWorklistItem> |
getInternalWorklist(SessionToken session,
java.util.UUID worklistID)
Gets the worklist that has the designated (unique) ID.
|
Worklist<? extends AdministrativeWorklistItem> |
getInternalWorklist(SessionToken session,
java.util.UUID worklistID,
Filter filter)
Gets the worklist that has the designated (unique) ID with the items
filtered appropriately.
|
IncrementalWorklist<? extends AdministrativeWorklistItem> |
getInternalWorklistIncrementally(SessionToken session,
java.util.UUID worklistID,
boolean respectAggregation,
boolean aggregateGroups)
The same as
getInternalWorklist(SessionToken, UUID) but with a worklist providing
incremental access to its items and optionally containing grouping items. |
IncrementalWorklist<? extends AdministrativeWorklistItem> |
getInternalWorklistIncrementally(SessionToken session,
java.util.UUID worklistID,
Filter filter,
boolean respectAggregation,
boolean aggregateGroups)
The same as
getInternalWorklist(SessionToken, UUID) but with a worklist providing
incremental access to its filtered items and optionally containing grouping items. |
java.util.UUID |
getWorklistID(SessionToken session,
QualifiedAgent agent)
Gets the unique ID of the (internal) worklist of the designated agent.
|
AdministrativeWorklistItem |
getWorklistItem(SessionToken session,
EBPInstanceReference activity)
Gets the worklist item for the designated activity.
|
java.util.Map<QualifiedAgent,java.util.UUID> |
getWorklistsContaining(SessionToken session,
EBPInstanceReference activity)
Gets the IDs of the worklists containing the designated activity and the
corresponding owners of the worklists.
|
void |
reconnectToExecutionManager(SessionToken session)
Reconnects from the worklist interaction by removing and readding this
worklist manager to the execution manager.
|
void |
redistributeItems(SessionToken session,
java.util.Collection<java.util.UUID> worklistItemIDs)
Causes a redistribution of qualified worklist items.
|
void |
redistributeItems(SessionToken session,
java.lang.String staffAssignmentRule)
Causes a redistribution of qualified worklist items.
|
void |
redistributeItemsRegExp(SessionToken session,
java.lang.String regExp)
Causes a redistribution of qualified worklist items.
|
boolean |
removeInternalWorklist(SessionToken session,
java.util.UUID worklistId)
Removes the designated internal worklist.
|
java.util.UUID getWorklistID(SessionToken session, QualifiedAgent agent)
session - The session token identifying the user to get the worklist
of the designated agent and the session for the retrieval process.agent - The agent for whom to retrieve the worklist ID.null if the
Agent is unknown to this worklist manager.Worklist<? extends AdministrativeWorklistItem> getInternalWorklist(SessionToken session, java.util.UUID worklistID)
session - The session token identifying the user to get the designated
internal worklist and the session for the retrieval process.worklistID - The unique ID of the worklist to retrieve.IncrementalWorklist<? extends AdministrativeWorklistItem> getInternalWorklistIncrementally(SessionToken session, java.util.UUID worklistID, boolean respectAggregation, boolean aggregateGroups)
getInternalWorklist(SessionToken, UUID) but with a worklist providing
incremental access to its items and optionally containing grouping items. Due to the
incremental worklist relying on static data, group aggregation needs to be provided here and
cannot be changed later.session - The session token identifying the user to get the designated internal worklist
and the session for the retrieval process.worklistID - The unique ID of the worklist to retrieve.respectAggregation - Whether the incremental worklist should respect aggregation and
return either grouping or group items.aggregateGroups - Whether the incremental worklist should aggregate item groups and return
grouping items instead of the group items (items being member of a group)
incrementally. Otherwise only group items but no grouping items will be returned
incrementally.Worklist<? extends AdministrativeWorklistItem> getInternalWorklist(SessionToken session, java.util.UUID worklistID, Filter filter)
session - The session token identifying the user to get the designated
internal worklist and the session for the retrieval process.worklistID - The unique ID of the worklist to retrieve.filter - The filter which to apply to the items in the worklist.IncrementalWorklist<? extends AdministrativeWorklistItem> getInternalWorklistIncrementally(SessionToken session, java.util.UUID worklistID, Filter filter, boolean respectAggregation, boolean aggregateGroups)
getInternalWorklist(SessionToken, UUID) but with a worklist providing
incremental access to its filtered items and optionally containing grouping items. Due to the
incremental worklist relying on static data, group aggregation needs to be provided here and
cannot be changed later.session - The session token identifying the user to get the designated internal worklist
and the session for the retrieval process.worklistID - The unique ID of the worklist to retrieve.filter - The filter which to apply to the items in the worklist.respectAggregation - Whether the incremental worklist should respect aggregation and
return either grouping or group items.aggregateGroups - Whether the incremental worklist should aggregate item groups and return
grouping items instead of the group items (items being member of a group)
incrementally. Otherwise only group items but no grouping items will be returned
incrementally.Worklist<? extends AdministrativeWorklistItem> getGlobalWorklist(SessionToken session)
session - The session token identifying the user to get the global
worklist, to check for the necessary access and the session for
the retrieval process.IncrementalWorklist<? extends AdministrativeWorklistItem> getGlobalWorklistIncrementally(SessionToken session, boolean respectAggregation, boolean aggregateGroups)
getGlobalWorklist(SessionToken) but with a worklist providing incremental
access to its items and optionally containing grouping items. Due to the incremental worklist
relying on static data, group aggregation needs to be provided here and cannot be changed
later.session - The session token identifying the user to get the global worklist, to check for
the necessary access and the session for the retrieval process.respectAggregation - Whether the incremental worklist should respect aggregation and
return either grouping or group items.aggregateGroups - Whether the incremental worklist should aggregate item groups and return
grouping items instead of the group items (items being member of a group)
incrementally. Otherwise only group items but no grouping items will be returned
incrementally.Worklist<? extends AdministrativeWorklistItem> getGlobalWorklist(SessionToken session, Filter filter)
session - The session token identifying the user to get the global
worklist, to check for the necessary access and the session for
the retrieval process.filter - The filter which to apply to the items in the worklist.IncrementalWorklist<? extends AdministrativeWorklistItem> getGlobalWorklistIncrementally(SessionToken session, Filter filter, boolean respectAggregation, boolean aggregateGroups)
getGlobalWorklist(SessionToken) but with a worklist providing incremental
access to its filtered items. Due to the incremental worklist relying on static data, group
aggregation needs to be provided here and cannot be changed later.session - The session token identifying the user to get the global worklist, to check for
the necessary access and the session for the retrieval process.filter - The filter which to apply to the items in the worklist.respectAggregation - Whether the incremental worklist should respect aggregation and
return either grouping or group items.aggregateGroups - Whether the incremental worklist should aggregate item groups and return
grouping items instead of the group items (items being member of a group)
incrementally. Otherwise only group items but no grouping items will be returned
incrementally.java.util.Map<QualifiedAgent,java.util.UUID> getWorklistsContaining(SessionToken session, EBPInstanceReference activity)
session - The session token identifying the user to get the worklists
containing a specific worklist item.activity - The activity to get the worklists containing the
corresponding worklist item.AdministrativeWorklistItem getWorklistItem(SessionToken session, EBPInstanceReference activity)
session - The session token identifying the user to get the worklist
item for a specific activity.activity - The activity to get the worklists item for.null
in case the designated activity does not have a worklist item.void redistributeItems(SessionToken session, java.lang.String staffAssignmentRule)
session - The session which is used to check for access rights on this
method. If the redistribution is done asynchronously, it may use a
completely different session.staffAssignmentRule - The staff assignment rule that has to be part of
the staff assignment rule of a worklist item for the worklist item
to qualify for redistribution. The designated string has to be a
literal part of the staff assignment rule of the worklist item. It
does not suffice that it refers to the same entities of the
organisational model.void redistributeItemsRegExp(SessionToken session, java.lang.String regExp)
Pattern). session - The session which is used to check for access rights on this method. If the
redistribution is done asynchronously, it may use a completely different session.regExp - The regular expression (according to Pattern) a staff
assignment has to match to qualify for redistribution.Patternvoid redistributeItems(SessionToken session, java.util.Collection<java.util.UUID> worklistItemIDs)
redistributeItems(SessionToken, String). Absent agents (without substitution) will not
qualify for a redistributed item, that is, redistributed items may be removed from the worklist
of an absent agent. session - The session which is used to check for access rights on this method. If the
redistribution is done asynchronously, it may use a completely different session.worklistItemIDs - The collection of IDs of worklist items that should be redistributed.boolean removeInternalWorklist(SessionToken session, java.util.UUID worklistId)
session - The session which is used to check for access rights on this method.worklistId - The ID of the worklist which to remove from this worklist manager.void reconnectToExecutionManager(SessionToken session) throws ReconnectionFailedException
session - The session which is used to check for access rights on this
method.ReconnectionFailedException - If reconnecting fails, a
ReconnectionFailedException will be thrown.