[jboss-user] [JBoss Seam] - How to use @CreateProcess

neoko do-not-reply at jboss.com
Thu Mar 29 17:44:53 EDT 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032950#4032950

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032950



More information about the jboss-user mailing list