<!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;"> </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;"> </p><p><strong>Q2, In the bpmn2 file of  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><process processType="Private" isExecutable="true" id="ScriptTask" name="ScriptTask Process" tns:packageName="com.sample" ><br/> <br/>    <!-- nodes --><br/>    <startEvent id="_1" name="StartProcess" /><br/>    <scriptTask id="_2" name="Hello" scriptFormat="<a class="jive-link-external-small" href="http://www.java.com/java">http://www.java.com/java</a>" ><br/>      <script>System.out.println("Hello World");</script><br/>    </scriptTask><br/>    <endEvent id="_3" name="EndProcess" ><br/>        <terminateEventDefinition/><br/>    </endEvent></p><p>    <!-- connections --><br/>    <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" /><br/>    <sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" /></p><p>  </process></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>But in the files created by BPMN2 visual editor, there are namespace bpmn2. as below:</strong></p><p><bpmn2:process id="com.test.login" name="loginProcess" isClosed="true"></p><p>    <bpmn2:parallelGateway id="ParallelGateway_1" gatewayDirection="Diverging"></p><p>      <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming></p><p>      <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing></p><p>      <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing></p><p>    </bpmn2:parallelGateway></p><p>    <bpmn2:sequenceFlow id="SequenceFlow_2" name="to1" sourceRef="ParallelGateway_1" targetRef="ScriptTask_1"/></p><p>    <bpmn2:sequenceFlow id="SequenceFlow_8" name="to2" sourceRef="ParallelGateway_1" targetRef="ScriptTask_2"/></p><p>    <bpmn2:startEvent id="StartEvent_1" name="Start"></p><p>      <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing></p><p>    </bpmn2:startEvent></p><p>    <bpmn2:sequenceFlow id="SequenceFlow_3" name="to0" sourceRef="StartEvent_1" targetRef="ParallelGateway_1"/></p><p>    <bpmn2:scriptTask id="ScriptTask_2" name="Script Task"></p><p>      <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming></p><p>      <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing></p><p>      <bpmn2:script>System.out.println(&quot;hello world2&quot;);</bpmn2:script></p><p>    </bpmn2:scriptTask></p><p>    <bpmn2:sequenceFlow id="SequenceFlow_10" name="to4" sourceRef="ScriptTask_2" targetRef="EndEvent_2"/></p><p>    <bpmn2:scriptTask id="ScriptTask_1" name="Script Task" scriptFormat=""></p><p>      <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming></p><p>      <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing></p><p>      <bpmn2:script>System.out.println(&quot;hello world&quot;);</bpmn2:script></p><p>    </bpmn2:scriptTask></p><p>    <bpmn2:sequenceFlow id="SequenceFlow_6" name="to3" sourceRef="ScriptTask_1" targetRef="EndEvent_1"/></p><p>    <bpmn2:endEvent id="EndEvent_1" name="End"></p><p>      <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming></p><p>    </bpmn2:endEvent></p><p>    <bpmn2:endEvent id="EndEvent_2" name="End"></p><p>      <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming></p><p>    </bpmn2:endEvent></p><p>  </bpmn2:process></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Which one is right?</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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>