<!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;">
    FeedBack about link between form and process I made
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/joploya">Sandra Renaud</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/796297#796297">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I would like to create this post in order to collect ideas from peoples who use BPM (hoping I can use this forum for that).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>First let me present the context</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1-&#160;&#160;&#160;&#160;&#160; A first actor starts a new request (super form) that consists in :</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; some shared informations</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0 to n forms&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; This is the corresponding UML diagram&#160; <a href="https://community.jboss.org/servlet/JiveServlet/showImage/2-796297-20271/uml_forms.png"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/2-796297-20271/310-181/uml_forms.png </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2-&#160;&#160;&#160;&#160; First actor validate his step. A new jbpm process instance is created and goes to first process step then wait for a second actor.</p><p>3-&#160;&#160;&#160;&#160; A second actor log in, take the task and open the super form. he completes his part in each form. Finally he validates and send to next part the super form. The process task is completed and process goes to next waiting step. </p><p>Point 3 is repeated until we need to split the super form.</p><p>4-&#160;&#160;&#160;&#160; The last actor who fills his part of information in each form validates. But then the process is splited in one process per form and each process goes to waiting step for human action.</p><p>5-&#160;&#160;&#160;&#160; Each processes continue and terminate independently . When an actor of these subflow log in and take his tasks he see only one form. It is very important that each form can be ended without waiting for other forms.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, I found two solutions concerning the process modeling and implemented the second one</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1rst solution&#160; : at first validation one process is created per form and manage all steps from start to end of the flow. </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; With this solution we have to create a custom jbpm task management because in task list only one task has to be shown but when this task is taken all tasks related have to be claimed and started. Same "problem" after validation, we must retireve all concerning task and complete them.</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/2-796297-20274/oneProcessPerFormAtStart.png"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/2-796297-20274/450-596/oneProcessPerFormAtStart.png </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2nd solution :&#160; All comon steps are managed in one process. At split step, this process ended. Then a new process instance is created for each form and manage all individual steps until the end.</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; This is the solution I implemented with jbpm 3.</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/2-796297-20275/superProcessAtStart.png"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/2-796297-20275/310-516/superProcessAtStart.png </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am about to migrate this flow with jbpm5 and I will be very interest in a feedback of people using jbpm. You can have better ideas, and constructive criticism is welcome.</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/796297#796297">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>