I tried the following code but its giving me only user specific workflows but not all the workflows.
CSClient client = (CSClient) request.getAttribute("iw.csclient");
CSWorkflowEngine wfengine = client.getWorkflowEngine();
WFQuery wfquery = new WFQuery();
wfquery.setActive(new Boolean(true));
wfquery.setQueryType(1);
CSWorkflow[] currentJobs = wfengine.getWorkflowsByQuery(wfquery.getQuery()); please tell me how to get all the workflows in the workflow sub system.