3 Replies Latest reply on Jun 5, 2015 11:19 AM by Avi Cohen

    Is it at all possible to get all existing process definitions remotely?

    Avi Cohen Newbie

      I tried via REST call to both /rest/deployment/process and the old API /rest/deployment/(deploymentId)/process and got an empty list in both even though there were deployed processes.

       

       

      I also tried the following code:

      final RemoteRestRuntimeEngineFactoryBuilderImpl builder = (RemoteRestRuntimeEngineFactoryBuilderImpl) RemoteRestRuntimeEngineFactory.newBuilder();

      builder.addUrl(baseUrl).addDeploymentId(deploymentId).addUserName(user).addPassword(password);

      final RemoteRestRuntimeEngineFactory factory = builder.build();

      final RuntimeEngine engine = factory.newRuntimeEngine();

      final KieSession ksession = engine.getKieSession();

      final Collection<Process> processes = ksession.getKieBase().getProcesses();

      but I got 'java.lang.UnsupportedOperationException: The .getKieBase(..) method is not supported on the remote api.'

       

       

      Any suggestions?