philippe Serenne [https://community.jboss.org/people/serenne] created the 
discussion

"Configuration JBPM 5.2"

To view the discussion, visit: https://community.jboss.org/message/714644#714644

--------------------------------------------------------------
reference guide chapter 3 talks about JbpmConfiguration  and JbpmContext
re to be different from those in the default configuration file. 
The JBPM configuration is represented by the org.jbpm.JbpmConfiguration class. 
To obtain it, use the singleton instance method 
(JbpmConfiguration.getInstance().) 
h2. Note

To load a configuration from another source, use the 
JbpmConfiguration.parseXxxx methods. 
static JbpmConfinguration jbpmConfiguration = 
JbpmConfinguration.parseResource("my.jbpm.cfg.xml");  
The JbpmConfiguration is "thread safe" and, hence, can be kept in a +static 
member+. 
Every thread can use a JbpmConfiguration as a +factory+ for JbpmContext 
objects. A JbpmContext will usually represent one transaction. They make 
services available inside +context blocks+ which looks like this: 
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();  try {  // 
This is what we call a context block.    // Here you can perform workflow 
operations    } finally {  jbpmContext.close();  }
The JbpmContext makes both a set of services and the configuration settings 
available to the JBPM. 

But these classes cannot be found in bin or src distrib (nor the 
org/jbpm/default.jbpm.cfg.xml default configuration file)

Dos anybody has an idea about how to manage configuration in Jbmp5.2 ?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/714644#714644]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to