Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-1607

Add support for BatchExecutionCommand in Java Remote API

XMLWordPrintable

      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:

            swiderski.maciej Maciej Swiderski (Inactive)
            ibek1@redhat.com Ivo Bek
            Ivo Bek Ivo Bek
            Ivo Bek Ivo Bek
            Edson Tirelli, Ivo Bek, Kris Verlaenen, Marco Rietveld (Inactive), Rajesh Rajasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: