Does anyone know how to write a workflow query for thisCSWorkflow[] getWorkflowsByQuery(java.lang.String workflowQuery) Return the details of workflows (jobs) that satisfy a query. what query are they talking about.I am trying to create an interface to display all the present active workflows, that will be accessible through a link to a jsp on ccstd. I am going to use cssdk for it.ThanksInterwoven 6.5 / Unix
I used something like this but this didnt work. CSWorkflow[] workflows = CSWorkflowEngine.getWorkflowsByQuery(wfQuery);
<%@ page import="com.interwoven.cssdk.workflow.*" %> String wfQuery = "<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><wfquery><active/></wfquery>"; CSWorkflow[] workflows = CSWorkflowEngine.getWorkflowsByQuery(wfQuery); <% for(int i=0; i<workflows.length; ++i){ %>Workflow Id : <%= workflows.getId() %><br><% }%>
Just so folks can actually see what you tried ... - minus the escapes:<%@ page import="com.interwoven.cssdk.workflow.*" %> String wfQuery = "<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><wfquery><active/></wfquery>"; CSWorkflow[] workflows = CSWorkflowEngine.getWorkflowsByQuery(wfQuery); <% for(int i=0; i<workflows.length; ++i){ %>Workflow Id : <%= workflows.getId() %><br><% }%>
"<?xml version='1.0' encoding='UTF-8' standalone='yes'?>\n<wfquery><active/></wfquery>";
"<wfquery><active/></wfquery>";