<!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;">
    two questions about bpmn2 file
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/luhong">hong lu</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/645811#645811">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 style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Q1, The suffix of bpmn2 file is .bpmn2 in the jbpm-bpmn2-5.2.0.Final-test.jar. but the suffix of bpmn2 files which are created by BPMN2 visual editor is .bpmn?</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Q2, In the bpmn2 file of&#160; jbpm-bpmn2-5.2.0.Final-test.jar, the process definition tags don't have any namespace and the files couldn't opened by visual editor correctly. as below:</strong></p><p>&lt;process processType="Private" isExecutable="true" id="ScriptTask" name="ScriptTask Process" tns:packageName="com.sample" &gt;<br/> <br/>&#160;&#160;&#160; &lt;!-- nodes --&gt;<br/>&#160;&#160;&#160; &lt;startEvent id="_1" name="StartProcess" /&gt;<br/>&#160;&#160;&#160; &lt;scriptTask id="_2" name="Hello" scriptFormat="<a class="jive-link-external-small" href="http://www.java.com/java">http://www.java.com/java</a>" &gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;script&gt;System.out.println("Hello World");&lt;/script&gt;<br/>&#160;&#160;&#160; &lt;/scriptTask&gt;<br/>&#160;&#160;&#160; &lt;endEvent id="_3" name="EndProcess" &gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;terminateEventDefinition/&gt;<br/>&#160;&#160;&#160; &lt;/endEvent&gt;</p><p>&#160;&#160;&#160; &lt;!-- connections --&gt;<br/>&#160;&#160;&#160; &lt;sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" /&gt;<br/>&#160;&#160;&#160; &lt;sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" /&gt;</p><p>&#160; &lt;/process&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>But in the files created by BPMN2 visual editor, there are namespace bpmn2. as below:</strong></p><p>&lt;bpmn2:process id="com.test.login" name="loginProcess" isClosed="true"&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:parallelGateway id="ParallelGateway_1" gatewayDirection="Diverging"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:incoming&gt;SequenceFlow_3&lt;/bpmn2:incoming&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:outgoing&gt;SequenceFlow_2&lt;/bpmn2:outgoing&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:outgoing&gt;SequenceFlow_8&lt;/bpmn2:outgoing&gt;</p><p>&#160;&#160;&#160; &lt;/bpmn2:parallelGateway&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:sequenceFlow id="SequenceFlow_2" name="to1" sourceRef="ParallelGateway_1" targetRef="ScriptTask_1"/&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:sequenceFlow id="SequenceFlow_8" name="to2" sourceRef="ParallelGateway_1" targetRef="ScriptTask_2"/&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:startEvent id="StartEvent_1" name="Start"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:outgoing&gt;SequenceFlow_3&lt;/bpmn2:outgoing&gt;</p><p>&#160;&#160;&#160; &lt;/bpmn2:startEvent&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:sequenceFlow id="SequenceFlow_3" name="to0" sourceRef="StartEvent_1" targetRef="ParallelGateway_1"/&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:scriptTask id="ScriptTask_2" name="Script Task"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:incoming&gt;SequenceFlow_8&lt;/bpmn2:incoming&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:outgoing&gt;SequenceFlow_10&lt;/bpmn2:outgoing&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:script&gt;System.out.println(&amp;quot;hello world2&amp;quot;);&lt;/bpmn2:script&gt;</p><p>&#160;&#160;&#160; &lt;/bpmn2:scriptTask&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:sequenceFlow id="SequenceFlow_10" name="to4" sourceRef="ScriptTask_2" targetRef="EndEvent_2"/&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:scriptTask id="ScriptTask_1" name="Script Task" scriptFormat=""&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:incoming&gt;SequenceFlow_2&lt;/bpmn2:incoming&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:outgoing&gt;SequenceFlow_6&lt;/bpmn2:outgoing&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:script&gt;System.out.println(&amp;quot;hello world&amp;quot;);&lt;/bpmn2:script&gt;</p><p>&#160;&#160;&#160; &lt;/bpmn2:scriptTask&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:sequenceFlow id="SequenceFlow_6" name="to3" sourceRef="ScriptTask_1" targetRef="EndEvent_1"/&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:endEvent id="EndEvent_1" name="End"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:incoming&gt;SequenceFlow_6&lt;/bpmn2:incoming&gt;</p><p>&#160;&#160;&#160; &lt;/bpmn2:endEvent&gt;</p><p>&#160;&#160;&#160; &lt;bpmn2:endEvent id="EndEvent_2" name="End"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmn2:incoming&gt;SequenceFlow_10&lt;/bpmn2:incoming&gt;</p><p>&#160;&#160;&#160; &lt;/bpmn2:endEvent&gt;</p><p>&#160; &lt;/bpmn2:process&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Which one is right?</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>p.s. the bpmn2 visual editor means bpmn2 eclipse plugin. Thanks very much.</strong></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/645811#645811">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>