SubProcesses within pool

Description

When creating a subprocess within a swimlane the Designer places the sequence-flow tags within the <subProcess>-tags, causing parse-error when importing the process into Activiti:

XML:
<subProcess id="subprocess1" name="Sub Process">
<startEvent id="startevent2" name="Start"></startEvent>
<userTask id="usertask2" name="ROLE 2 TASK" activiti:assignee="${role2}"></userTask>
<endEvent id="endevent2" name="End"></endEvent>
<sequenceFlow id="flow3" name="" sourceRef="subprocess1" targetRef="usertask3"></sequenceFlow>
<sequenceFlow id="flow5" name="" sourceRef="startevent2" targetRef="usertask2"></sequenceFlow>
<sequenceFlow id="flow6" name="" sourceRef="usertask2" targetRef="endevent2"></sequenceFlow>
</subProcess>

SHOULD BE (..or rather, will work):

<subProcess id="subprocess1" name="Sub Process">
<startEvent id="startevent2" name="Start"></startEvent>
<userTask id="usertask2" name="ROLE 2 TASK" activiti:assignee="${role2}"></userTask>
<endEvent id="endevent2" name="End"></endEvent>
</subProcess>
<sequenceFlow id="flow3" name="" sourceRef="subprocess1" targetRef="usertask3"></sequenceFlow>
<sequenceFlow id="flow5" name="" sourceRef="startevent2" targetRef="usertask2"></sequenceFlow>
<sequenceFlow id="flow6" name="" sourceRef="usertask2" targetRef="endevent2"></sequenceFlow>

Environment

Eclipse on MacOS X.

Assignee

Tijs Rademakers

Reporter

H_kan Jonson

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure