Package com.groiss.wf.html
Interface Worklist
- All Known Implementing Classes:
CombinedWorklist
,FilteredWorklist
,WorklistAdapter
public interface Worklist
Interface that allows implementers to customize the worklist.
Methods are called in the given order.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
getAdditionalData
(List<ActivityInstance> instances) Your chance to collect additional data for the instances.default HTMLPage
Deprecated.default List<ActivityInstance>
Change the list.default Object
getTitle()
Non null overwrites the title.default void
init
(HttpServletRequest req, WorklistDescription wl, User u) You can init your class with the request.default String
lineStyle
(ActivityInstance ai, String style) Change the style of the line.Return a list of pairs containing id and name of self defined filters.default void
modifyColumns
(List<ColumnDescription> colDescs) You get the header as we suggest it, a list of reserved keywords, like "id","process", "task".default void
modifyTableLine
(ActivityInstance ai, Map<String, Object> line) Your chance to modify the line, called for each table line.
-
Method Details
-
init
You can init your class with the request. For your convenience, we tell you the kind of the worklist and the user- Parameters:
req
- the request; may be null when called from notification threadswl
- the worklist descriptionu
- the user
-
getHTMLPage
Deprecated.Replace the standard page or return null. -
getTitle
Non null overwrites the title. Only called in 8.0 compatibility mode. -
getList
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
. -
getAdditionalData
Your chance to collect additional data for the instances. The method is not called when the list of instances is empty.- Parameters:
instances
- the activity instances
-
modifyColumns
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- Parameters:
colDescs
- list of header fields
-
modifyTableLine
Your chance to modify the line, called for each table line. Making the list empty removes the item from the worklist.- Parameters:
ai
- the activity instanceline
- the line
-
lineStyle
Change the style of the line.- Parameters:
ai
- the activity instancestyle
- a style class
-
listFilters
Return a list of pairs containing id and name of self defined filters.
-