-
1. Re: jBPM integration question
gavin.king Mar 26, 2007 4:08 PM (in response to fady.matar)Do you have the necessary lines in components.xml?
-
2. Re: jBPM integration question
fady.matar Mar 26, 2007 4:16 PM (in response to fady.matar)Yes gavin the configuration is there in components.xml
now the thing is that i don't have any processes deployed the configuration looks as follows:<core:jbpm> <core:process-definitions></core:process-definitions> <core:pageflow-definitions></core:pageflow-definitions> </core:jbpm>
This is left intentionally blank, the purpose is to initialize jbpm only. I'm creating a workflow shell where multiple workflow instances are deployed. An effort with Tom Bayaens. Can you please assist in this? -
3. Re: jBPM integration question
gavin.king Mar 26, 2007 4:21 PM (in response to fady.matar)Wellthen, of course no process definitions will be created!
What did you expect?
You'll have to find some other means to deploy the processes, if you don't want to list them in components.xml. -
4. Re: jBPM integration question
fady.matar Mar 26, 2007 4:30 PM (in response to fady.matar)I have other alternatives but would I still benefit from using the full features related to JBPM?
One quick approach is to deploy a dummy process. But wouldn't it be appropriate to deploy the jBPM just when it's configuration is present? -
5. Re: jBPM integration question
gavin.king Mar 26, 2007 4:34 PM (in response to fady.matar)Hold on, what is it that you want to be created? The schema, or the data in the schema?
If all you want to do is create the schema, you only have to enable schema export in hibernate.cfg.xml. Just like in the examples. -
6. Re: jBPM integration question
fady.matar Mar 26, 2007 4:47 PM (in response to fady.matar)exactly i just want to enable the schema export, nothing else is required and this is already specified in the hibernate.cfg.xml
property name="hbm2ddl.auto">create</property>
-
7. Re: jBPM integration question
fady.matar Mar 26, 2007 5:50 PM (in response to fady.matar)Gavin, the hibernate.xml is not being parsed from within the jar. I modified it to be non deployable and still no exceptions has been thrown at deployment time.
I verified the file exists in the archive -
8. Re: jBPM integration question
fady.matar Apr 2, 2007 7:39 AM (in response to fady.matar)Any update on this? the schema fails to be created.
-
9. Re: jBPM integration question
pmuir Apr 3, 2007 11:39 AM (in response to fady.matar)I'm confused about what you want. I think you might just want to start up JBPM when Seam starts, and then deploy your process definitions some other way? If so, look at the way org.jboss.seam.core.Jbpm.startup works, and extend the class, and overriding the startup method so it starts up without any process definitions being present.
-
10. Re: jBPM integration question
fady.matar Apr 4, 2007 2:57 PM (in response to fady.matar)I got your point, will give it a try. Thanks for the suggestion
-
11. Re: jBPM integration question
fady.matar Apr 4, 2007 3:03 PM (in response to fady.matar)Thanks for the suggestion. I'll give it a try
-
12. Re: jBPM integration question
fady.matar Apr 6, 2007 4:58 AM (in response to fady.matar)Ok I got the concept but now how to make this class initialize itself on startup? Would I need to invoke it from a servlet?
-
13. Re: jBPM integration question
pmuir Apr 6, 2007 5:26 AM (in response to fady.matar)Let's see the class you want to start up
-
14. Re: jBPM integration question
fady.matar Apr 6, 2007 5:44 AM (in response to fady.matar)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 } }