2 Replies Latest reply on Apr 2, 2009 11:52 PM by Guillermo Ortiz

    Obtain the processInstance inside @CreateProcess

    Guillermo Ortiz Newbie

      Hi,


      I want to obtain the processInstance inside @CreateProcess, is it possible?


      Code:



      @CreateProcess(definition="todo")
           public void createProcessExample() {
                
                logger.info("CreateProcess invoked!!");          
                //How may I read to processId than I just created here?
                
           }
      



      XHTML:


      <h:commandButton action="#{motor.createProcessExample}" value="Create TODO" />