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