[jboss-user] [jBPM] - Configuration JBPM 5.2

philippe Serenne do-not-reply at jboss.com
Mon Feb 6 09:11:27 EST 2012


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120206/9fbde916/attachment-0001.html 


More information about the jboss-user mailing list