
Chapter 8. Building a case study application 271
Example 8-31 getWorkLists method
public Vector getWorkLists() {
Vector WLVector = new Vector();
try {
// List the worklists names for display in the jsp. The names need
// to be passed to the next servlet for opening
String worklists[] = drqs.getWorkListNames();
for (int i = 0; i < worklists.length; i++) {
WLVector.add(worklists[i]);
}
} catch (CMBException e ) {
System.out.println(e);
}
return WLVector;
}
Example 8-32 openWorkList method
/**
* Retrieves items and workpackages related to a worklist
* Return: java.util.Vector
* elementAt(0) CMItem[x]
* elementAt(1) CMWorkPackageICM[x]
*
* @param worklist ...