Package com.groiss.wf.html
Class CombinedWorklist
java.lang.Object
com.groiss.wf.html.CombinedWorklist
- All Implemented Interfaces:
Worklist
A worklist adapter that delegates the adapter method calls to all adapters configured in the params object in property adapters.
Example for a configuration in xml: <params>{adapters: ["com.groiss.wf.html.FilteredWorklist", "test.TestWorklist"], filter: "task", exclude: ["itsm_support_task"]}</params>
The worklist combines FilteredWorklist and a TestWorklist, properties filter and exclude are used by FilteredWorklist.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getAdditionalData
(List<ActivityInstance> instances) Your chance to collect additional data for the instances.getList
(List<ActivityInstance> ais) Change the list.void
init
(HttpServletRequest req, WorklistDescription wl, User u) You can init your class with the request.lineStyle
(ActivityInstance ai, String style) Change the style of the line.Return a list of pairs containing id and name of self defined filters.void
modifyColumns
(List<ColumnDescription> colDescs) You get the header as we suggest it, a list of reserved keywords, like "id","process", "task".void
modifyTableLine
(ActivityInstance ai, Map<String, Object> line) Your chance to modify the line, called for each table line.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
getHTMLPage, getTitle
-
Constructor Details
-
CombinedWorklist
public CombinedWorklist()
-
-
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 -
getAdditionalData
Description copied from interface:Worklist
Your chance to collect additional data for the instances. The method is not called when the list of instances is empty.- Specified by:
getAdditionalData
in interfaceWorklist
- Parameters:
instances
- the activity instances
-
modifyColumns
Description copied from interface:Worklist
You get the header as we suggest it, a list of reserved keywords, like "id","process", "task". You can change this header as you like. The resulting header is used to build the table lines: for the keywords we add the corresponding column, for other names we add "null" elements. For smartclient this method is called when building the main-page- Specified by:
modifyColumns
in interfaceWorklist
- Parameters:
colDescs
- list of header fields
-
getList
Description copied from interface:Worklist
Change the list. Usually used for filtering, but the list can be extended, too. If getList() potentially extends the list by adding ActivityInstances not originally in it, then the type of the worklist node must include kindWorklistKind.AUGMENTED
. -
modifyTableLine
Description copied from interface:Worklist
Your chance to modify the line, called for each table line. Making the list empty removes the item from the worklist.- Specified by:
modifyTableLine
in interfaceWorklist
- Parameters:
ai
- the activity instanceline
- the line
-
lineStyle
Description copied from interface:Worklist
Change the style of the line. -
listFilters
Description copied from interface:Worklist
Return a list of pairs containing id and name of self defined filters.- Specified by:
listFilters
in interfaceWorklist
-