<!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;">
    The bounds of a task should it be relative to its swimlane?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/ooharak">ooharak</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/817672#817672">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 eventually come to an unexpected behavior </p><p><span style="font-size: 10pt;">when planning to import/export a BPMN2 file to/from&#160; </span><span style="font-size: 10pt;">the designer of drools-guvnor demo.</span></p><p><a class="jive-link-external-small" href="http://localhost:8080/drools-guvnor" rel="nofollow" target="_blank">http://localhost:8080/drools-guvnor</a></p><p>Does anyone have any ideas on this issue?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If a swimlane is at (10,10) and its containing task (80,80) in a BPMN2 file, </p><p>then the web designer will display that task at (90,90) <span style="font-size: 10pt;">which is (10+80, 10+80), relative to the container lane.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>However, by reading the specification of BPMN, <span style="font-size: 10pt;">I thought (80,80) would be correct.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>* Rationale</p><p>The graphical diagram aspect of a process definition is <span style="font-size: 10pt;">serialized in the BPMN file using BPMN DI (BPMNShape etc.)</span></p><p>According to the Specification, The bounds of a BPMNShape <span style="font-size: 10pt;">are always relative to the origin point of its BPMNPlane.</span></p><p><span>&gt; </span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/2.0/PDF/" rel="nofollow" target="_blank">http://www.omg.org/spec/BPMN/2.0/PDF/</a><span> </span></p><p>&gt; 12.2.3.3 BPMNShape </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>* Expect:</p><p>As both swimlanes and tasks are depicted using BPMNShape, </p><p>the bounds of a task are't relative to the origin point of <span style="font-size: 10pt;">its container swimlane.</span></p><p>Instead should it just be relative to the origin point of<span style="font-size: 10pt;">its owner plane, i.e. usually a process .</span></p><p>For instance, Figure 12.132 and Table 12.41 of the Specification</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>* Actual:</p><p>When I create an arbitrary BPMN file including a task <span style="font-size: 10pt;">within a lane and import it to drools-guvnor, </span></p><p>then the web designer displays my task relative to the lane.</p><p>This actual behavior is diffent from the expectation above.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>* Note</p><p>I found a bug related to the issue above :</p><p><a class="jive-link-external-small" href="https://issues.jboss.org/browse/JBPM-3782" target="_blank">https://issues.jboss.org/browse/JBPM-3782</a></p><p>but it says node's x/y values in bpmn file are relative to Swimlane, <span style="font-size: 10pt;">which is different from my understanding.</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/817672#817672">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>