com.groiss.wf.html
Interface Worklist

All Known Implementing Classes:
WorklistAdapter

public interface Worklist

Interface that allows implementers to customize the worklist. Methods are called in the given order. Developers are strongly encouraged to subclass the WorklistAdapter instead of implementing this interface, because the interface may change in later versions.


Method Summary
 void getAdditionalData(java.util.List<ActivityInstance> instances, java.util.List<java.lang.String> splitResult)
          Your chance to collect data.
 HTMLPage getHTMLPage()
          Replace the standard page or return null.
 java.util.List<ActivityInstance> getList()
          Non null overwrites the list, should return list of ActivityInstances.
 java.lang.Object getTitle()
          Non null overwrites the title.
 void init(javax.servlet.http.HttpServletRequest req, WorklistDescription wl, User u)
          You can init your class with the request.
 java.lang.String lineStyle(ActivityInstance ai, java.lang.String style)
          Change the style of the line.
 java.util.List<Pair<java.lang.String,java.lang.String>> listFilters(java.util.List<ActivityInstance> lines)
          Return a list of pairs containing id and name of self defined filters.
 void modifyColumns(java.util.List<ColumnDescription> colDescs)
          You get the header as we suggest it, a list of reserved keywords, like "id","process", "task".
 void modifyTableLine(ActivityInstance ai, KeyedList<java.lang.String,java.lang.Object> line)
          Your chance to modify the line, called for each table line.
 

Method Detail

init

void init(javax.servlet.http.HttpServletRequest req,
          WorklistDescription wl,
          User u)
You can init your class with the request. For your convenience, we tell you the type of the worklist, the application, and the user

Parameters:
req - the request
wl - the worklist description
u - the user

getHTMLPage

HTMLPage getHTMLPage()
Replace the standard page or return null.


getTitle

java.lang.Object getTitle()
Non null overwrites the title.


getList

java.util.List<ActivityInstance> getList()
Non null overwrites the list, should return list of ActivityInstances.


getAdditionalData

void getAdditionalData(java.util.List<ActivityInstance> instances,
                       java.util.List<java.lang.String> splitResult)
Your chance to collect data.

Parameters:
instances - the activity instances
splitResult - a list of strings containing the oids of the process

modifyColumns

void modifyColumns(java.util.List<ColumnDescription> colDescs)
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.

Parameters:
colDescs - list of header fields

modifyTableLine

void modifyTableLine(ActivityInstance ai,
                     KeyedList<java.lang.String,java.lang.Object> line)
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 instance
line - the line

lineStyle

java.lang.String lineStyle(ActivityInstance ai,
                           java.lang.String style)
Change the style of the line.

Parameters:
ai - the activity instance
style - a style class

listFilters

java.util.List<Pair<java.lang.String,java.lang.String>> listFilters(java.util.List<ActivityInstance> lines)
Return a list of pairs containing id and name of self defined filters.

Parameters:
lines - contains the ActivityInstances which will be shown.


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.