[jboss-user] [JBoss Seam] - Re: jBPM integration question
SunFire
do-not-reply at jboss.com
Fri Apr 6 09:45:14 EDT 2007
This one works well for me
@Intercept(NEVER)
| @Name("org.jboss.seam.core.jbpm.init")
| @Startup(depends={"org.jboss.seam.core.jbpm"})
| @Install(dependencies="org.jboss.seam.core.jbpm")
| public class JbpmInitializer extends Jbpm {
|
| private static final LogProvider log = Logging.getLogProvider(JbpmInitializer.class);
|
| public void startup() throws Exception {
| super.startup();
| if(getProcessDefinitions() == null || getProcessDefinitions().length < 1 ) {
| try {
| getJbpmConfiguration().createJbpmContext().getContextSession();
| } catch(Exception e) {
| log.error("jBPM Initialization Exception: " + e.getMessage());
| e.printStackTrace();
| }
| }
| }
|
| }
With it you can either deploy your processes with Seam or with something external. It will only be used if you enable JBPM in your components.xml and if no process definitions are set it will handle your schema creation/update.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035315#4035315
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035315
More information about the jboss-user
mailing list