Description of problem: Multiple "None StartEvent"s should be validated by BPMN2 editor in JBDS. BPMN 2 Diagram Editor can allow to input multiple None StartEvents. But the same bpmn file will be validated in the business-central with the following error. ------------------ 10:24:43,163 ERROR [stderr] (EJB default - 7) java.lang.IllegalArgumentException: A RuleFlowProcess cannot have more than one start node! 10:24:43,164 ERROR [stderr] (EJB default - 7) at org.jbpm.ruleflow.core.RuleFlowProcess$WorkflowProcessNodeContainer.validateAddNode(RuleFlowProcess.java:155) 10:24:43,164 ERROR [stderr] (EJB default - 7) at org.jbpm.workflow.core.impl.NodeContainerImpl.addNode(NodeContainerImpl.java:42) 10:24:43,164 ERROR [stderr] (EJB default - 7) at org.jbpm.workflow.core.impl.WorkflowProcessImpl.addNode(WorkflowProcessImpl.java:71) 10:24:43,164 ERROR [stderr] (EJB default - 7) at org.jbpm.bpmn2.xml.AbstractNodeHandler.end(AbstractNodeHandler.java:136) 10:24:43,164 ERROR [stderr] (EJB default - 7) at org.jbpm.bpmn2.xml.StartEventHandler.end(StartEventHandler.java:190) 10:24:43,165 ERROR [stderr] (EJB default - 7) at org.drools.core.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:439) 10:24:43,165 ERROR [stderr] (EJB default - 7) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:596) 10:24:43,165 ERROR [stderr] (EJB default - 7) at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:834) ------------------ Version-Release number of selected component (if applicable): BPMN 6.1 JBDS 9 with BPMN2 Modeler 1.2.1.Final JBDS 8 with BPMN2 Modeler 1.1.3.Final How reproducible: To set multiple StartEvents(none) in BPMN modeler. Steps to Reproduce: 1.set StartEvent -> script Task -> EndEvent process 2.set one more in the same file 3.save the file Actual results: There is no error in JBDS. Expected results: There are any error or warning like a business central. Additional info:
Fixed in 1.2.3 (Mars) and 1.3.0 (Neon) BPMN2 Modeler
Verified on: JBDSIS 9.0.0.Beta1, JBTIS 4.3.0.Beta1 BPMN2 Modeler - 1.2.3.CR2-v20160209-2002
unfortunately it is not fixed get this error on Neon: BPMN2 Modeler - Diagram Editor 1.3.0.Final-v20160602-2145-B47 org.eclipse.bpmn2.modeler.feature.group Eclipse.org BPMN2 Modeler - Examples 1.3.0.Final-v20160602-2145-B47 org.eclipse.bpmn2.modeler.examples.feature.group Eclipse.org BPMN2 Modeler - jBPM Runtime Extension Feature 1.3.0.Final-v20160602-2145-B47 org.eclipse.bpmn2.modeler.runtime.jboss.feature.group JBoss by Red Hat As per BPMN2 definition a sub-process always starts with a None Start Event.
Created attachment 1191051 [details] sub-process starting with None event
Hello Karl. Thanks for your contribution. Just let me clarify two things. 1. Your problem is a little bit different form the original one. I suggest to file it into separate bugzilla and I suggest to attach source file of the process or at least similar/simplified process to keep your business private. 2. Red Hat bugzilla project serves for issues present in official tooling supported by Red Hat. You have problems with Modeler 1.3.0. Red Hat support for this version of modeler is still in the preparation phase. But never minds. You can file your issue into community eclipse bugzilla [1]. [1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=BPMN2Modeler