Viewer
that overrides the
logonResponse method to display a worklist. The name of the worklist
is to be read from the WebClient.properties
file. Next, use the
Web Client's built-in commands to display this worklist. The name of the
new Viewer
is GroupWorkListViewer and it should extend
the DefaultViewer
class so that all other methods can be
inherited. This is the recommended way if you only want to override certain
methods in your custom Viewer
. This avoids having to
recreate the entire interface. The new section in
WebClient.properties
should be called GroupWorkList
and the properties should be WorkListName (default '_WORKLIST')
and GroupListName (default '_GROUPLIST').
step1
directory.GroupWorkListViewer.start
to
GroupWorkListViewer.java
.GroupWorkListViewer.java
and add the necessary
import
statements.GroupWorkListViewer
.init()
method, read the workListName
and
groupListName
properties from the
WebClient.properties
file. Use the
Config.getParameter()
method to do so.logonResponse()
method, use the
ExecutionService.createWorkList() call to create the worklist
called workListName if it does not yet exist. Use
OWNER=CURRENT_USER
as filter.jc step1\GroupWorkListViewer.javato compile your file.
<MQWFDir>/WebClient/WebClient.properties
file
and change the line reading
#DefaultViewer=com.ibm.workflow.servlet.client.DefaultViewerto
DefaultViewer=com.ibm.workflow.servlet.sample.GroupWorkListViewer
servlet.log
file to see which Viewer
has been loaded by the Web Client.GroupWorkListViewer.sol
).