The first step of creating a group worklist was to create a custom viewer. This section describes the second step, in which you create a JSP file to display the group worklist. When you create the JSP file, the worklist page that is generated by the base class DefaultViewer
is replaced with a page generated by a custom JSP file.
The source files for setting up a group worklist are stored in the <MQWFDir>/smp/WebClient/groupwl
directory. To create the JSP file:
step2
directory.GroupWorkListViewer.start
file to GroupWorkListViewer.java
.GroupWorkListViewer.java
file, and change the base class from DefaultViewer
to JSPViewer
. This step provides JSP-based implementations for all of the methods that are not overridden by the GroupWorkListViewer
class.queryWorkItemsResponse
method with a call to your own class.queryWorkItemsResponse
method. The first statement in this method is used to store the workListOID
that is passed to the JSP in the RequestContext
object. This Object Identifier (OID) is set in logonResponse
./forms/GroupWorkList.jsp
file.GroupWorkList.start
to GroupWorkList.jsp
.GroupWorkList.jsp
file and add the import
statement for the package of the Web client.jsp:useBean
statement to access the RequestContext
object that is necessary to create the response page. This is the same object, which was passed as a parameter to
the ResponsePage
in the queryWorkItemsResponse
method. Use the following attributes for the useBean
statement:
id="context" scope="request" type="com.ibm.workflow.servlet.client.RequestContext"
workListOID
that has been set in the queryWorkItemsResponse
method. Use the RequestContext.getAttribute() call for this.cmdRefresh
for the
queryWorkItems command used by the 'Refresh' button. Set the useCache
parameter to false
. The SessionContext class provides
methods to create these command strings.GroupWorkList.jsp
to the <MQWFDir>/cfgs/<cfgID>/WebClient/webpages/forms
directory.jc step2\GroupWorkListViewer.javato compile your file.
GroupWorkListViewer.sol
and GroupWorkList.sol
).Go to Step 3: Creating a CommandHandler
that provides a queryGroupWorkItems
command