I am looking to implement a web script using java, and I want it to, using the java api, conduct a search among all the workflows in order to present later. I've gotten the web script itself to work, but I don't know how I am supposed to instantiate WorkflowService (or specifically WorkflowServiceImpl or whatever it is called) in order to dig among the workflow instances themselves.
I've looked through most of the usual tutorials and some examples out on the web, but they either have only half the code available (critical parts such as initialization is missing), or it is simply written in javascript.
What do I do? I've stared myself blind on the documentation but to no avail.