hong lu [
http://community.jboss.org/people/luhong] created the discussion
"two questions about bpmn2 file"
To view the discussion, visit:
http://community.jboss.org/message/645811#645811
--------------------------------------------------------------
Hi,
*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?*
*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:*
<process processType="Private" isExecutable="true"
id="ScriptTask" name="ScriptTask Process"
tns:packageName="com.sample" >
<!-- nodes -->
<startEvent id="_1" name="StartProcess" />
<scriptTask id="_2" name="Hello" scriptFormat="
http://www.java.com/java http://www.java.com/java" >
<script>System.out.println("Hello World");</script>
</scriptTask>
<endEvent id="_3" name="EndProcess" >
<terminateEventDefinition/>
</endEvent>
<!-- connections -->
<sequenceFlow id="_1-_2" sourceRef="_1"
targetRef="_2" />
<sequenceFlow id="_2-_3" sourceRef="_2"
targetRef="_3" />
</process>
*But in the files created by BPMN2 visual editor, there are namespace bpmn2. as below:*
<bpmn2:process id="com.test.login" name="loginProcess"
isClosed="true">
<bpmn2:parallelGateway id="ParallelGateway_1"
gatewayDirection="Diverging">
<bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
<bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
</bpmn2:parallelGateway>
<bpmn2:sequenceFlow id="SequenceFlow_2" name="to1"
sourceRef="ParallelGateway_1" targetRef="ScriptTask_1"/>
<bpmn2:sequenceFlow id="SequenceFlow_8" name="to2"
sourceRef="ParallelGateway_1" targetRef="ScriptTask_2"/>
<bpmn2:startEvent id="StartEvent_1" name="Start">
<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="SequenceFlow_3" name="to0"
sourceRef="StartEvent_1" targetRef="ParallelGateway_1"/>
<bpmn2:scriptTask id="ScriptTask_2" name="Script Task">
<bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
<bpmn2:script>System.out.println("hello
world2");</bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_10" name="to4"
sourceRef="ScriptTask_2" targetRef="EndEvent_2"/>
<bpmn2:scriptTask id="ScriptTask_1" name="Script Task"
scriptFormat="">
<bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
<bpmn2:script>System.out.println("hello
world");</bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_6" name="to3"
sourceRef="ScriptTask_1" targetRef="EndEvent_1"/>
<bpmn2:endEvent id="EndEvent_1" name="End">
<bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:endEvent id="EndEvent_2" name="End">
<bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
</bpmn2:endEvent>
</bpmn2:process>
*Which one is right?*
*p.s. the bpmn2 visual editor means bpmn2 eclipse plugin. Thanks very much.*
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/645811#645811]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]