Worklists

19 views
Skip to first unread message

Douglas

unread,
Jan 19, 2006, 5:01:01 PM1/19/06
to IBM Content Manager
I'm trying to get the number of worklists available to a user while
within the IDMActionPage.jsp of the sample eClient. However nothing I
try seems to work. I've listed 2 methods I've tried below. The first
fails because dl.listWorkFlows() is null and the second fails to
connect. I've also tried to find documentation about function getworks.
It uses idm.jar and no matter how much I search I can't find anything
to do with com.ibm.idm.*. Does anyone know where I can get
documentation for the package?

DKDatastoreICM ds2 = new DKDatastoreICM();
ds2.connect("icmnlsdb", "PATH1" ,"PATH1" ,"");
DKWorkFlowServiceDL dl = new DKWorkFlowServiceDL(ds2);
if(dl != null)
{
dl.connect("icmnlsdb", "demo" ,"password" ,"");
if((dl != null) && (dl.isConnected()))
{
//////////////////// dl.listWorkFlows(); is null
/////////////////////////////
DKSequentialCollection ptr = (DKSequentialCollection
)dl.listWorkFlows();
if((dl != null) && (ptr != null))
{
dkIterator pI = ptr.createIterator();
while(pI.more())
{
pI.next();
}
}
}
}

CMBConnection c2 = new CMBConnection();
c2.setDsType("ICM");
c2.setServerName("icmnlsdb");
c2.setUserid("PATH1");
c2.setPassword("PATH1");
c2.connect();
CMBWorkFlowQueryService qs = c2.getWorkFlowQueryService();
Collection qResults = null;
if(qs != null)
{
//NO CONNECTION
CMBConnection c3 = qs.getConnection();
if(c3 != null)
qResults = qs.getWorkLists(false);
}


function getWorks() {
var docURL = '<%= webAppName %>/IDMWorkFlowServlet';
docURL += '?<%= IDMServletConstants.PARM_NAME_wfaction %>=<%=
IDMWorkFlowServlet.WF_WORKLISTS %>';
docURL += '&<%= IDMServletConstants.PARM_NAME_USERID
%>='+currentWorkListsOwner;
docURL += '&<%= IDMServletConstants.PARM_NAME_referrer
%>=/IDMActionPage.jsp';
if (openWorkListsInNewWindow) {
wn = "worklists_" + currentWorkListsOwner;
setWindowname(wn);
window.open(docURL, wn,
'resizable=1,scrollbars=1,status=1')
} else
window.location = docURL;
}

Thanks,

Douglas

Workn

unread,
Feb 14, 2006, 1:02:10 PM2/14/06
to IBM Content Manager
The best doc I've found for the java classes is
http://publib.boulder.ibm.com/infocenter/cmgmt/v8r3m0/index.jsp
This does not include anything about com.ibm.idm.* that is all a part
of the idm.jar, not published and a part of the eClient internal code.

Reply all
Reply to author
Forward
0 new messages