[jboss-user] [JBoss Seam] - Conditional @CreateProcess

damianharvey do-not-reply at jboss.com
Thu Aug 2 11:04:07 EDT 2007


I'd like to launch a Business Process from a method if the outcome requires it (in my case it is missing data that needs supervisor attention). If I try to call a method that is annotated with @CreateProcess from another method, then the process is never launched. I can use BusinessProcess.instance().createProcess("processName"); 
If a process is launched this way it does not have access to the outjected variables so you have to use:@In BusinessProcessContext businessProcessContext;
  | ...
  | businessProcessContext.set("myVariable", "myValue");

But what would be handy would be "ifOutcome" like @End has. Then it would be as simple as @CreateProcess(ifOutcome="error")

Does this sounds reasonable or have I missed something?

Thanks,

Damian.

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

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



More information about the jboss-user mailing list