CSClient client = (CSClient) request.getAttribute("iw.csclient");CSWorkflowEngine workflowEngine= client.getWorkflowEngine();CSWorkflow jobs[] = workflowEngine.getWorkflowsByQuery("<wfquery><active/></wfquery>");...
If the query format used for the method is the same as the query format used for the CLT iwqueryjobs - it would be an XML string following the DTD:
CSFactory csFactory = user_ctx.getFactory();CSClient client = csFactory.getClientForTrustedUser("iwts","",request.getLocale(),"","");I felt iwts might do the trick. However i am still in a limbo.
I have already tried root but was left with all workflows that were instantiated by the root user whereas i am trying to lay my hands on the entire workflow subsystem
As far as writing this code in a scriptlet is concerned, rest assured that its only for a POC sake .My working code will go into a servlet. (and i will delete the said jsp)I am just leveraging the ease of quick and dirty programming with jsps