<!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">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;">
    Re: Human Task Assignment -- actor status changed
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/melc">Chris Melas</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/644801#644801">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p>I'll try to see how each of your reqs are solved with "out of the box" functionality</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p>A task associated with the first node can be claimed by any member of a given group. When complete, the subsequent task can also be claimed by any member of some group (possibly a different one). However, the id of the actor that completed the previous task is retained as a process variable.</p></blockquote><p>- So, task1 and task2 are assigned to a group - ok</p><p>- The id of the actor that completed task1 will have to be mapped to a process variable - ok ( can be done either by using #{some expression} or a little magic around kcontext within the on exit action etc)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p>So here is the scenario. For the 2nd task, the actor completing that task will set "approved" to true or false. If "approved" is false, then:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>--the process should return to the previous node and be assigned to the actor that completed it before...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160; unless:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --either that actor no longer exists</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; or</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --that actor exists but is no longer a member of the group that can claim the task</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...in which case, the task should be claimed by some other member of this group</p></blockquote><p>- Assigning the actor based on the variable value is ok..... however i'm not sure what happens if both actorid and groupid are present in task1.... whether the actorid will supersede....-&gt; although you can always place a task3 which is the same as task1 and everything works fine.</p><p>- Regarding the "unless" part this is a little strange, because if the actor no longer exists and you assign the actorid </p><p>the following might happen (sry havent tried it)</p><p>a. the system complaints that the specific user no longer exists</p><p>b. the system has no problem that the users no longer exists and the group part works - then all ok </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>....keep in mind that i'm talking about zero code situations&#160; i.e. not even user-group callback etc....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If the actor exists but no longer part of the group then this gets complicated. Because, if the user exists then the actorid will be assigned along with the groupid, but the engine must not assign it to this user since is not a member of the group - not ok (this i'm almost certain that will not work for this engine as well as two more i.e. activiti and intalio, .... in jbpm this can be achieved with a little programming in a clean manner).</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/644801#644801">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://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>