I connect with WB with this code:
CommandWebService client = RemoteRuntimeEngineFactory.newCommandWebServiceClientBuilder()
.addServerUrl(commandWsdlUrl)
.addUserName(userId)
.addPassword(passId)
.addDeploymentId(deploymentId)
.buildBasicAuthClient();
and I tray to use the GetProcessInstancesCommand:
GetProcessInstancesCommand getProcessInstancesCommand = new GetProcessInstancesCommand ();
JaxbCommandsRequest request = new JaxbCommandsRequest(deploymentId, getProcessInstancesCommand);
JaxbCommandsResponse response = client.execute(request);
and it returns a empty list in processInstancesList variable but I have instances running in the project.+
I don't know what is the problem, can you help me, please?