-
Enhancement
-
Resolution: Won't Do
-
Major
-
None
-
6.0.1
Description of problem:
REST API and JMS API provide operations to run more commands at once. This ability should be reflected in Java Remote API as well.
For example, I will get "UnsupportedOperationException: The .execute(..) method is not supported on the remote api" when I use the following code:
List<Command<?>> cmds = new ArrayList<Command<?>>();
cmds.add(new StartTaskCommand(taskId, userId));
cmds.add(new CompleteTaskCommand(taskId, userId, null));
ExecutionResults responses = rc.execute(CommandFactory.newBatchExecution(cmds));
I know that there also exists CompositeCommand just for TaskCommands but I use it for example to get more information about the process:
cmds.add(new GetTasksOwnedCommand("bob", "fr-CA"));
cmds.add(new GetProcessInstanceCommand(procInstId));
With my own REST/JMS client I will get the right response but it is not possible to do this request with the provided Java Remote API.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info: