<!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;">
    why jbpm5.3 usertask  support only one incoming connection?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/vavi">gao haijun</a> in <i>jBPM Development</i> - <a href="https://community.jboss.org/message/741623#741623">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I have a process, contains approve and reject. if reject,the process should return to usertask1.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if I write the process definition file using hand(without the eclipse plugin),it will throw a exception:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>ProcessLoadError: unable to parse xml : Exception class java.lang.IllegalArgumentException : This type of node cannot have more than one incoming connection!</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>imo, what I said should be a<strong> common request/case</strong>. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>so why jbpm5.3 usertask&#160; support only one incoming connection?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Hope someone can answer my question,thx a lot.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> PS:the process difinition details:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;itemDefinition id="_conditionWhoItem" structureRef="Object" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;itemDefinition id="_2-conditionWhoItem" structureRef="Object" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;itemDefinition id="_4-conditionWhoItem" structureRef="Object" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;itemDefinition id="_5-conditionWhoItem" structureRef="Object" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;process processType="Private" isExecutable="true" id="com.sample.bpmn" name="Sample Process" tns:packageName="defaultPackage" &gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;!-- process variables --&gt;</p><p>&#160;&#160;&#160; &lt;property id="conditionWho" itemSubjectRef="_conditionWhoItem"/&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;!-- nodes --&gt;</p><p>&#160;&#160;&#160; &lt;startEvent id="_1" name="StartProcess" /&gt;</p><p>&#160;&#160;&#160; &lt;userTask id="_2" name="1" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;FME&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160; &lt;/userTask&gt;</p><p>&#160;&#160;&#160; &lt;exclusiveGateway id="_3" name="Gateway" gatewayDirection="Diverging" /&gt;</p><p>&#160;&#160;&#160; &lt;userTask id="_4" name="3" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;SLE2&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160; &lt;/userTask&gt;</p><p>&#160;&#160;&#160; &lt;userTask id="_5" name="2" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;SLE1&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160; &lt;/userTask&gt;</p><p>&#160;&#160;&#160; &lt;endEvent id="_6" name="End" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;terminateEventDefinition/&gt;</p><p>&#160;&#160;&#160; &lt;/endEvent&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;!-- connections --&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_5-_2" sourceRef="_5" targetRef="_2" /&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_3-_4" sourceRef="_3" targetRef="_4" name="SLE2" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;conditionExpression xsi:type="tFormalExpression" &gt;return conditionWho == "SLE2";&lt;/conditionExpression&gt;</p><p>&#160;&#160;&#160; &lt;/sequenceFlow&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_3-_5" sourceRef="_3" targetRef="_5" name="SLE1" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;conditionExpression xsi:type="tFormalExpression" &gt;return conditionWho == "SLE1";&lt;/conditionExpression&gt;</p><p>&#160;&#160;&#160; &lt;/sequenceFlow&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_4-_6" sourceRef="_4" targetRef="_6" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;/process&gt;</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/741623#741623">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>