<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Configuration JBPM 5.2
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/serenne">philippe Serenne</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/714644#714644">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>reference guide chapter 3 talks about JbpmConfiguration&#160; and JbpmContext</p><p class="para">re to be different from those in the default configuration file. </p><p class="para">The JBPM configuration is represented by the <code class="classname">org.jbpm.JbpmConfiguration</code> class. To obtain it, use the <code class="systemitem">singleton</code> instance method (<code class="methodname">JbpmConfiguration.getInstance()</code>.) </p><p class="note"><div class="admonition_header"><h2>Note</h2></div></p><p class="admonition"><div class="para">To load a configuration from another source, use the <code class="methodname">JbpmConfiguration.parseXxxx</code> methods. </div></p><pre class="programlisting"><span class="perl_DataType">static</span> JbpmConfinguration jbpmConfiguration = JbpmConfinguration.<span class="perl_Function">parseResource</span>(<span class="perl_String">"my.jbpm.cfg.xml"</span>);&#160; </pre><p class="para">The <code class="classname">JbpmConfiguration</code> is "thread safe" and, hence, can be kept in a <em class="firstterm">static member</em>. </p><p class="para">Every thread can use a <code class="classname">JbpmConfiguration</code> as a <em class="firstterm">factory</em> for <code class="classname">JbpmContext</code> objects. A <code class="classname">JbpmContext</code> will usually represent one transaction. They make services available inside <em class="firstterm">context blocks</em> which looks like this: </p><pre class="programlisting">JbpmContext jbpmContext = jbpmConfiguration.<span class="perl_Function">createJbpmContext</span>();&#160; <span class="perl_Keyword">try</span> {&#160; <span class="perl_Comment">// This is what we call a context block.</span><span class="perl_Comment"></span>&#160; <span class="perl_Comment"></span>&#160; <span class="perl_Comment">// Here you can perform workflow operations</span><span class="perl_Comment"></span>&#160; <span class="perl_Comment"></span>&#160; } <span class="perl_Keyword">finally</span> {&#160; jbpmContext.<span class="perl_Function">close</span>();&#160; }</pre><p class="para">The <code class="classname">JbpmContext</code> makes both a set of services and the configuration settings available to the JBPM. </p><p class="para" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="para">But these classes cannot be found in bin or src distrib (nor the <code class="filename">org/jbpm/default.jbpm.cfg.xml default configuration file)</code></p><p class="para" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="para">Dos anybody has an idea about how to manage configuration in Jbmp5.2 ?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/714644#714644">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>