-
1. Re: Is it at all possible to get all existing process definitions remotely?
happyhippo Jun 5, 2015 3:29 AM (in response to avico81)Hi,
You might try: /rest/packages/com.youpackagename/assets
-
2. Re: Is it at all possible to get all existing process definitions remotely?
travellerx Jun 5, 2015 8:46 AM (in response to avico81)Check below if this is what you want ?
RuntimeEngine engine = RemoteRuntimeEngineFactory.newRestBuilder()
.addUrl(new URL("http://<IP>:<port>/jbpm-console/"))
.addUserName("username").addPassword("password")
.addDeploymentId(deploymentId)
.build();
KieSession ksession = engine.getKieSession();
Collection<ProcessInstance> pis = ksession.getProcessInstances();
for (ProcessInstance pi : pis) {
System.out.println(pi.getProcessName());
}
-
3. Re: Is it at all possible to get all existing process definitions remotely?
avico81 Jun 5, 2015 11:19 AM (in response to happyhippo)Dan bu
I don't have a package.
I'm writing a standalone component that reads messages from a Queue and executes processes accordingly.
Some of the processes won't exist by the time I'm done with this component nor do I get them in the message in anyway.
My only option is to inspect the jBPM via REST (or other remote API option) to get the deployed process ids.
TravellerX TravellerX
I need to get the deployed processes (the definitions) not the process instances.