February 21, 2012 7:59:51 AM PST
Goal: How to change the default filter in WorkList.jsp from "My Active Activities" to "My Activities" Fact: Interstage BPM v7.4 AE (Advanced Edition) Fact: Build IF740223 or after Fact: Interstage BPM Console Fix:The default filter in the worklist page, http://<hostname>:<port>/ibpm/jsp/WorkList.jsp, of console is set to "My Active Activities". Follow the instructions below to customize the worklist page in console, so the default filter is set to "My Activities" upon loading the worklist page. Step 1: Locate the WorkList.jsp, typically found in {Interstage BPM Install dir}taskmanageriflowjspjspWorkList.jsp. Step 2: Edit the function called setDefaultValues() in WorkList.jsp. Follow the comment below to edit just one statement inside the function.:public void setDefaultValues() throws Exception
{
//filterId = Filter.MyActiveWorkItems;// Comment out this statement and replace it with the one below.
filterId = Filter.MyWorkItems; Step 3: Edit the function called getDefaultSearch() also located inside WorkList.jsp. Follow the comment below to edit just one statement inside the function. public String getDefaultSearch() throws Exception
{
String srchName = null;
SearchStruct defaultSearch = null;
if(!("LE".equalsIgnoreCase(transportType)))
{
defaultSearch = bps.getDefaultSearchQuery(bps.getUserName(), SearchStruct.TYPE_WI);
}
if(defaultSearch != null){
srchName = defaultSearch.queryName + " (Default)";
//String filterIdStr = defaultSearch.preDefFilter; // comment out this statement and replace with the
// one that follows.
String filterIdStr = "7";
Step 4: Reload the worklist page, http://<hostname>:<port>/ibpm/jsp/WorkList.jsp, in the browser and the default filter should now show "My Activities". Note: Fujitsu Interstage support typically do not support custom code, unless there is a special license agreement.
Author: C.Y. Chen
Attachment: