<!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;">
    Seeking guidance with Jbpm 5.3+ Clustering
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/anindyas79">Anindya Saha</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/752604#752604">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">Hello Experts</span></p><p><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">We have been evaluating jBPM 5.2/5.3 for one of our large prestigious clients.They are planning to migrate one of their complex workflow processes built on one of the leading bpmn solution to jBPM 5.3, and we as architects are helping them in proposing suitable architecture and design.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">After much studying and analysis we feel confident that an application jBPM + Drools will be able to be a successful replacement of the existing workflow process. However, we are lacking confidence in one arena i.e. scalability and cluster-deployment. We are planning to deploy jbpm on multiple Jboss instances and balance the load to the Jboss instances using an Apache Http server. To test clusterability we designed a simple process as below. A process which has two human tasks assigned to users john and mary and then a script task.</span></p><p> <a href="https://community.jboss.org/servlet/JiveServlet/showImage/2-752604-19175/jbpm.jpg"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/2-752604-19175/450-80/jbpm.jpg </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">Let us assume that there are two nodes N1 and N2. So when the user requests to create a task the request reached node N1. The process is created with a new session in node N1.We create the session using </span><span style="font-size: 10.0pt; font-family: Consolas; color: black;">JPAKnowledgeService.<em>newStatefulKnowledgeSession</em></span><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';"> The process moves to Johns tasklist. Now lets say if user John logs in, he is directed to node N2 via load balancer he can see the task and he can complete that. Since the session in node N2 is different than that of N1 when the process was created we have to call </span><span style="font-size: 10.0pt; font-family: Consolas; color: black;">JPAKnowledgeService.<em>loadStatefulKnowledgeSession</em></span><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">. Once John completes the task it moves to mary. Now let&rsquo;s say if user Mary logs in, she is directed to node N1 via load balancer she can see the task and she can complete that. But after completion the task is not moving to script task. Also in the processinstanceinfo table does not get emptied. The problem is happening in case of zigzag direction of the request to different nodes. However, if the apache httpd delegates all the subsequent requests after the process is started to only Node N1 or only Node N2 then the entire chain gets completed.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">Start (N1) -&gt; John (N2) -&gt; Mary (N1)&#160; does not work</span></p><p><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">Start (N1) -&gt; John (N2) -&gt; Mary (N2)&#160; works </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">Any suggestion or help in this regard would be really appreciated. Any pointers or links to who have actually implemented clustering would help us a lot.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">Thanks</span></p><p><span style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';">Anindya<br/></span></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/752604#752604">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>