<!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;">
    How to integrate a Web Application with JBPM?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/srikanthanr">srikanthan ramanathan</a> in <i>jBPM Development</i> - <a href="https://community.jboss.org/message/743072#743072">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.5pt; font-family: 'Arial Narrow','sans-serif';">Hi,</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">Hope you all are doing fine. i need a quick favour from you guys. </span><span style="font-family: 'Arial Narrow', sans-serif; font-size: 10.5pt;">We are planning to use JBPM as an BPM engine. But, unfortunately I don&rsquo;t have any knowledge on JBMP. So, I would like to clarify with you guys. The queries are given below:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong style=": ; font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif'; text-decoration: underline;">The proposed architecture</strong></p><ol style="list-style-type: decimal;"><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">1. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">The architecture is </span><span style="font-size: 10.5pt; font-family: Wingdings;">&#224;</span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';"> Our JBoss based Web App will call JBPM thru java call. </span></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">2. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">And we will not use JBPM user interface (GUI) but we use our Bboss application&rsquo;s UI.</span></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">3. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">>From the JBoss UI&rsquo;s button click (Submit/Approve etc), JBoss app calls JBPM to </span><ol style="list-style-type: decimal;"><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">a. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">create workflow process instance.</span></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">b. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">Move process instance from one stage to another stage.</span></li></ol></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">4. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">Meaning, we have Maker/Checker (Authorization) functionality exists. When Maker user submits the transaction in Jboss UI, the JBPM process (workflow) will be called and instance will be created for the Checker user(s) for the transaction approval. The Checker can either &ldquo;Approve&#8221; the transaction (OR) he can &ldquo;Reject&#8221; it back to the Maker user.</span></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">5. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">So, it is kind of Jboss driven JBPM Maker/Check Approval process. We are using the JBPM just for STATE MANAGEMENT.</span></li></ol><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong style=": ; font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif'; text-decoration: underline;">Queries</strong></p><ol style="list-style-type: decimal;"><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">1. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">How do I call BPM process (best way of doing it) from my Web application? </span><ol style="list-style-type: decimal;"><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">a. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">How to do thru plain java call?</span></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">b. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">How to do thru web-service call?</span></li></ol></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">2. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">When maker submits the transaction, he will get an option (popup window) to select the eligible Checker user&rsquo;s names in the Web Application. When Maker chooses the Checker names and submit the transaction, the BPM should create a process instance only for the chosen Checker users. </span></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">3. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">Do we have dynamic role support in JBMP? The role&rsquo;s corresponding user/group details should be picked up from database. The Role details will be kept in Web Application database; the JBPM will have to connect to Web application database to get the role details.</span></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">4. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">Can I fetch all the process instances/To-Do list (for example, waiting for approval) that belong to one user/group (OR) set of users by making java call to BPM engine from MY Web application?</span></li><li><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">5. </span><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">Also, we have a scenario, in which there are multiple user groups to be part of approval process. Like, &ldquo;minimum 2 people from Group G1&#8221; and &ldquo;minimum 3 people from Group G2&#8221; should approve the process instance.</span></li></ol><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">Could you please clarify it? That would be nice.</span></p><p><span style="font-size: 10.5pt; font-family: 'Arial Narrow','sans-serif';">Have a wonderful day</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/743072#743072">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>