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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user