2 Replies Latest reply on May 17, 2007 6:45 AM by ricardomarques

    Figuring out how process instanciation!


      Hi all

      My purpuse is, from a user (grover on this case), be able to start a process and view that process on the tasklist.

      I think I haven't got many problems starting the process, but something must miss, I see the instance created on jbpm_processinstance, but can see the results of the execution.

      here's my code:

      on the ejb side:

      Object result = null;
       JbpmContext jbpmContext = this.jbpmConfiguration.createJbpmContext();
       try {
       log.debug("executing " + command);
       result = command.execute(jbpmContext);
       } catch (Exception e) {
       throw new JbpmException("couldn't execute "+command, e);
       } finally {
       return result;

      on the client side:
      NewProcessInstanceCommand cmd = null;
      cmd = new NewProcessInstanceCommand();

      to get my tasklist:
      GetTaskListCommand cmd = null;
      cmd = new GetTaskListCommand(name,true);
      List result = (List) getCommandService().execute(cmd);