1 Reply Latest reply on Mar 29, 2007 9:22 PM by neoko

    How to use @CreateProcess

    neoko

      Hello everyone! i don't know how to solve a problem. I need to create an instance of a process deployed previously this way:

       JbpmConfiguration jbpmConf = jbpm.getJbpmConfiguration();
       ProcessDefinition pd = jbpm.getProcessDefinitionFromXml(file);
       workflow.setName(pd.getName());
       jbpmContext = jbpmConf.createJbpmContext();
      
       try {
       jbpmContext.deployProcessDefinition(pd);
       } finally {
       jbpmContext.close();
       }
      

      Then in an action-method y try to do the following but nothing happens. That doesn't create the processInstance object for me.
       @CreateProcess(definition="#{workflow.name}")
       public void done(){}
      

      Does anyone know what i'm missing? Thanks in advance.