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

    Figuring out how process instanciation!

    Ricardo Marques Novice

      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 {
       jbpmContext.close();
       }
       return result;


      on the client side:
      NewProcessInstanceCommand cmd = null;
      
      cmd = new NewProcessInstanceCommand();
      cmd.setProcessId(Long.parseLong(pid));
      
      getCommandService().execute(cmd);


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



      help?