2 Replies Latest reply on Nov 26, 2013 6:42 AM by snj grg

    jBPM5 - IllegalArgumentException : This type of node cannot have more than one outgoing connection

    snj grg Newbie

      Hi,

       

                   I am trying to run a simple workflow using jbpm 5.4. Attached process definition is created using eclipse plugin. I am getting below exception at : kbuilder.add(ResourceFactory.newFileResource("logic/memo_ver2.bpmn"), ResourceType.BPMN2);

       

      java.lang.IllegalArgumentException: This type of node cannot have more than one outgoing connection

              at org.jbpm.workflow.core.node.Join.validateAddOutgoingConnection(Join.java:93)

              at org.jbpm.workflow.core.impl.NodeImpl.addOutgoingConnection(NodeImpl.java:127)

              at org.jbpm.workflow.core.impl.ConnectionImpl.connect(ConnectionImpl.java:75)

              at org.jbpm.workflow.core.impl.ConnectionImpl.<init>(ConnectionImpl.java:71)

              at org.jbpm.bpmn2.xml.ProcessHandler.linkConnections(ProcessHandler.java:293)

              at org.jbpm.bpmn2.xml.ProcessHandler.end(ProcessHandler.java:145)

              at org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:422)

              at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)

              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(Unknown Source)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)

              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

              at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)

              at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)

              at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

              at javax.xml.parsers.SAXParser.parse(Unknown Source)

              at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:301)

              at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:180)

              at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)

              at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:262)

              at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:673)

              at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:709)

              at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:51)

              at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:40)

              at logic.TaskJBPMProcessEngine.readKnowledgeBase(TaskJBPMProcessEngine.java:109)

              at logic.TaskJBPMProcessEngine.run(TaskJBPMProcessEngine.java:48)

              at java.lang.Thread.run(Unknown Source)

       

                         The only node with more than one outgoing connection is a diverging gateway.  Any help would be highly appreciated.

       

      Thanks