Package com.groiss.wf.html
Class FilteredWorklist
java.lang.Object
com.groiss.wf.html.FilteredWorklist
- All Implemented Interfaces:
Worklist
Adapter for worklists. Show only items for specific roles, tasks, or processes.
The configuration is done using the "params" element of the worklist configuration. Example:
<params>{filter: "task", exclude: ["order","a_task"]}</params>
The configuration is defined in the syntax of a JSON object. Filter defines the object class that is filtered, either "task", "role", or "process", exclude or include defines the list of objects included or excluded. The list contains the ids. For tasks and processes all versions of the object with the given id are used for matching.
<params>{filter: "task", exclude: ["order","a_task"]}</params>
The configuration is defined in the syntax of a JSON object. Filter defines the object class that is filtered, either "task", "role", or "process", exclude or include defines the list of objects included or excluded. The list contains the ids. For tasks and processes all versions of the object with the given id are used for matching.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetList
(List<ActivityInstance> ais) Filter the worklist items.void
init
(HttpServletRequest req, WorklistDescription wl, User u) You can init your class with the request.static void
resetForNode
(String nodeid) Remove the cached structure for an id.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.groiss.wf.html.Worklist
getAdditionalData, getHTMLPage, getTitle, lineStyle, listFilters, modifyColumns, modifyTableLine
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
config
-
-
Constructor Details
-
FilteredWorklist
public FilteredWorklist()
-
-
Method Details
-
init
Description copied from interface:Worklist
You can init your class with the request. For your convenience, we tell you the kind of the worklist and the user -
resetForNode
Remove the cached structure for an id. -
getList
Filter the worklist items.
-