You mean that way?
http://community.jboss.org/servlet/JiveServlet/downloadImage/2-619339-16834/450-315/test-error-subprocess2.jpg
Loading this definition, I have this error:
java.lang.IllegalArgumentException: Could not find source node for connection:SubProcess_1
at org.jbpm.bpmn2.xml.ProcessHandler.linkConnections(ProcessHandler.java:164)
at org.jbpm.bpmn2.xml.SubProcessHandler.handleCompositeContextNode(SubProcessHandler.java:97)
at org.jbpm.bpmn2.xml.SubProcessHandler.end(SubProcessHandler.java:83)
at org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:414)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:293)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:172)
at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)
at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:249)
at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:516)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:560)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)