[jboss-user] [JBoss Seam] - Re: jBPM integration question

fady.matar do-not-reply at jboss.com
Fri Apr 6 05:44:14 EDT 2007


I guess I need to override the startup method. This is what I have done so far


  | import static org.jboss.seam.InterceptionType.NEVER;
  | import static org.jboss.seam.annotations.Install.BUILT_IN;
  | 
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.Create;
  | import org.jboss.seam.annotations.Install;
  | import org.jboss.seam.annotations.Intercept;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Scope;
  | import org.jboss.seam.annotations.Startup;
  | import org.jboss.seam.jbpm.SeamVariableResolver;
  | import org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator;
  | import org.jboss.seam.core.Jbpm;
  | import org.jboss.seam.log.Log;
  | 
  | @Scope(ScopeType.APPLICATION)
  | @Startup(depends = { "org.jboss.seam.core.microcontainer",
  | 		"org.jboss.seam.core.ejb" })
  | @Name("org.jboss.seam.core.jbpm.init")
  | @Install(value = false, precedence = BUILT_IN)
  | public class JbpmInitializer extends Jbpm {
  | 
  | 	@Logger
  | 	Log log;
  | 
  | 	@Create
  | 	public void startup() throws Exception {
  | 		log.trace("Starting jBPM");
  | 		JbpmExpressionEvaluator.setVariableResolver(new SeamVariableResolver());
  | 		this.invokeJbpmContext();
  | 	}
  | 
  |         public void invokeJbpmContext() {
  |                 //Invokation goes here
  |         }
  | }
  | 

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

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



More information about the jboss-user mailing list