<!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="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">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;">
    jBPM and Seam
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/lvdberg">Leo van den berg</a> in <i>jBPM</i> - <a href="http://community.jboss.org/docs/DOC-15494">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>We want to share our experience with jBpm combined with Seam in this forum. You can find almost the same text in the Seam 2 forum:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We are using Seam 2.2 with jBPM 3.3&#160; in our traffic management project and we have included different workflows and decisions handled&#160; by the jBPM/Drools modules.</p><p>Hopefully the following observations are useful to others:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ol><li>The quality of the jBPM documentation isn't at the same level as the Seam&#160; documentation, so you need a lot of additional Googling to get your&#160; stuff working. The additional (free) Seam in Action chapter helps a lot,&#160; but see warning 4</li><li>if you're doing something which is not really PersonTask related,&#160; it's better to work directly with the jBpm API, because it saves you a&#160; lot of headache; The integration of Seam with the jBpm non-Task stuff isn't that good&#160; and - to be honest - the jBPM API's are very easy to use.</li><li>Never (<strong>I mean never</strong>) use the jBPM core to store domain&#160; objects/values, Searching for them in the database is very slow (tables&#160; are NOT indexed). You can do different things to solve the problem of&#160; retrieving processes based on domain object; (a) change some core&#160; classes of jBPM (b) add indexes to the tables yourself, (c) add simple <q>searchtables</q>which contains the relation between the domain object and the&#160; process/task.<ol></ol></li><li>Replace or remove the default logging of jBPM, all examples of&#160; jbpm.cfg.xml include this (even Seam in Action), but it is&#160; the worst thing you can have in your production environement. We found&#160; that out the hard way.</li><li>Try to use the workflow as asynchronous as practically possible, jBpm&#160; is not really fast, and slows down your rerender process if it's in the&#160; normal requiest/response chain. Combine it with Seam events and&#160; rich.push and you see miracles happen.</li></ol></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Comment by <a href="http://community.jboss.org/docs/DOC-15494">going to Community</a></p>

        <p style="margin: 0;">Create a new document in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>