0 Replies Latest reply on Jun 4, 2012 8:57 AM by Bhaskaran Venkataraman

    Issue with BPMN Editor

    Bhaskaran Venkataraman Newbie

      I am currently using JBPM5.2 with BPMN2.0 Editor and Eclipse Helios SR2.

      BPMN Editor provides 3 ways to look and modify our process diagrams :

       

      1. Using the Visual Editor

      2. Using the Process Editor

      3. The XML can be viewed/modified as a text file in a text editor

       

      I think there is a problem with sync between these 3 modes.

       

      I edited the diagram in the Visual Editor mode after saving tried to open it the Process Editor mode.

      It came up with error messages and I was able to see only the start node. But I was able to reproduce

      it a couple of times but not always.

       

      Then I tried updating the BPMN diagram using the Visual Editor and then opening the XML as a text

      file. The task ID is updated in some places but not in others. For e.g., where the user task node is

      defined the task ID is updated and in the sequence flow links it is updated but in the BPMN diagram section

      there were still references to the old task ID's.

       

      When I ran the program after the modifications it came up with a bunch of errors which I have

      reproduced below.

       

      The task ID field was editable only in the Visual Editor. It came up as a read only field in the Process editor.

      So I was not able to try the opposite : edit in Process editor and then open it using the Visual editor

       

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

       

      (null: 8, 96): schema_reference.4: Failed to read schema document 'http://www.omg.org/spec/BPMN/20100524/DI-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      (null: 17, 79): src-resolve: Cannot resolve the name 'bpmndi:BPMNDiagram' to a(n) 'element declaration' component.

      (null: 9, 44): cvc-datatype-valid.1.2.1: '1' is not a valid value for 'NCName'.

      (null: 9, 44): cvc-attribute.3: The value '1' of attribute 'id' on element 'startEvent' is not valid with respect to its type, 'ID'.

      (null: 10, 31): cvc-datatype-valid.1.2.1: '1-6' is not a valid value for 'QName'.

      (null: 10, 31): cvc-type.3.1.3: The value '1-6' of element 'outgoing' is not valid.

      (null: 12, 48): cvc-datatype-valid.1.2.1: '3' is not a valid value for 'NCName'.

      (null: 12, 48): cvc-attribute.3: The value '3' of attribute 'id' on element 'userTask' is not valid with respect to its type, 'ID'.

      (null: 13, 31): cvc-datatype-valid.1.2.1: '6-3' is not a valid value for 'QName'.

      (null: 13, 31): cvc-type.3.1.3: The value '6-3' of element 'incoming' is not valid.

      (null: 14, 31): cvc-datatype-valid.1.2.1: '3-9' is not a valid value for 'QName'.

      (null: 14, 31): cvc-type.3.1.3: The value '3-9' of element 'outgoing' is not valid.

      (null: 62, 40): cvc-datatype-valid.1.2.1: '5' is not a valid value for 'NCName'.

      (null: 62, 40): cvc-attribute.3: The value '5' of attribute 'id' on element 'endEvent' is not valid with respect to its type, 'ID'.

      (null: 63, 32): cvc-datatype-valid.1.2.1: '10-5' is not a valid value for 'QName'.

      (null: 63, 32): cvc-type.3.1.3: The value '10-5' of element 'incoming' is not valid.

      (null: 66, 82): cvc-datatype-valid.1.2.1: '6' is not a valid value for 'NCName'.

      (null: 66, 82): cvc-attribute.3: The value '6' of attribute 'id' on element 'scriptTask' is not valid with respect to its type, 'ID'.

      (null: 67, 31): cvc-datatype-valid.1.2.1: '1-6' is not a valid value for 'QName'.

      (null: 67, 31): cvc-type.3.1.3: The value '1-6' of element 'incoming' is not valid.

      (null: 68, 31): cvc-datatype-valid.1.2.1: '6-3' is not a valid value for 'QName'.

      (null: 68, 31): cvc-type.3.1.3: The value '6-3' of element 'outgoing' is not valid.

      (null: 71, 50): cvc-datatype-valid.1.2.1: '9' is not a valid value for 'NCName'.

      (null: 71, 50): cvc-attribute.3: The value '9' of attribute 'id' on element 'userTask' is not valid with respect to its type, 'ID'.

      (null: 72, 31): cvc-datatype-valid.1.2.1: '3-9' is not a valid value for 'QName'.

      (null: 72, 31): cvc-type.3.1.3: The value '3-9' of element 'incoming' is not valid.

      (null: 73, 32): cvc-datatype-valid.1.2.1: '9-10' is not a valid value for 'QName'.

      (null: 73, 32): cvc-type.3.1.3: The value '9-10' of element 'outgoing' is not valid.

      (null: 121, 84): cvc-datatype-valid.1.2.1: '10' is not a valid value for 'NCName'.

      (null: 121, 84): cvc-attribute.3: The value '10' of attribute 'id' on element 'scriptTask' is not valid with respect to its type, 'ID'.

      (null: 122, 32): cvc-datatype-valid.1.2.1: '9-10' is not a valid value for 'QName'.

      (null: 122, 32): cvc-type.3.1.3: The value '9-10' of element 'incoming' is not valid.

      (null: 123, 32): cvc-datatype-valid.1.2.1: '10-5' is not a valid value for 'QName'.

      (null: 123, 32): cvc-type.3.1.3: The value '10-5' of element 'outgoing' is not valid.

      (null: 126, 57): cvc-datatype-valid.1.2.1: '6-3' is not a valid value for 'NCName'.

      (null: 126, 57): cvc-attribute.3: The value '6-3' of attribute 'id' on element 'sequenceFlow' is not valid with respect to its type, 'ID'.

      (null: 126, 57): cvc-datatype-valid.1.2.1: '6' is not a valid value for 'NCName'.

      (null: 126, 57): cvc-attribute.3: The value '6' of attribute 'sourceRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 126, 57): cvc-datatype-valid.1.2.1: '3' is not a valid value for 'NCName'.

      (null: 126, 57): cvc-attribute.3: The value '3' of attribute 'targetRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 127, 59): cvc-datatype-valid.1.2.1: '10-5' is not a valid value for 'NCName'.

      (null: 127, 59): cvc-attribute.3: The value '10-5' of attribute 'id' on element 'sequenceFlow' is not valid with respect to its type, 'ID'.

      (null: 127, 59): cvc-datatype-valid.1.2.1: '10' is not a valid value for 'NCName'.

      (null: 127, 59): cvc-attribute.3: The value '10' of attribute 'sourceRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 127, 59): cvc-datatype-valid.1.2.1: '5' is not a valid value for 'NCName'.

      (null: 127, 59): cvc-attribute.3: The value '5' of attribute 'targetRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 128, 57): cvc-datatype-valid.1.2.1: '1-6' is not a valid value for 'NCName'.

      (null: 128, 57): cvc-attribute.3: The value '1-6' of attribute 'id' on element 'sequenceFlow' is not valid with respect to its type, 'ID'.

      (null: 128, 57): cvc-datatype-valid.1.2.1: '1' is not a valid value for 'NCName'.

      (null: 128, 57): cvc-attribute.3: The value '1' of attribute 'sourceRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 128, 57): cvc-datatype-valid.1.2.1: '6' is not a valid value for 'NCName'.

      (null: 128, 57): cvc-attribute.3: The value '6' of attribute 'targetRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 129, 57): cvc-datatype-valid.1.2.1: '3-9' is not a valid value for 'NCName'.

      (null: 129, 57): cvc-attribute.3: The value '3-9' of attribute 'id' on element 'sequenceFlow' is not valid with respect to its type, 'ID'.

      (null: 129, 57): cvc-datatype-valid.1.2.1: '3' is not a valid value for 'NCName'.

      (null: 129, 57): cvc-attribute.3: The value '3' of attribute 'sourceRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 129, 57): cvc-datatype-valid.1.2.1: '9' is not a valid value for 'NCName'.

      (null: 129, 57): cvc-attribute.3: The value '9' of attribute 'targetRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 130, 59): cvc-datatype-valid.1.2.1: '9-10' is not a valid value for 'NCName'.

      (null: 130, 59): cvc-attribute.3: The value '9-10' of attribute 'id' on element 'sequenceFlow' is not valid with respect to its type, 'ID'.

      (null: 130, 59): cvc-datatype-valid.1.2.1: '9' is not a valid value for 'NCName'.

      (null: 130, 59): cvc-attribute.3: The value '9' of attribute 'sourceRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 130, 59): cvc-datatype-valid.1.2.1: '10' is not a valid value for 'NCName'.

      (null: 130, 59): cvc-attribute.3: The value '10' of attribute 'targetRef' on element 'sequenceFlow' is not valid with respect to its type, 'IDREF'.

      (null: 131, 55): cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":flowElement, "http://www.omg.org/spec/BPMN/20100524/MODEL":artifact, "http://www.omg.org/spec/BPMN/20100524/MODEL":resourceRole, "http://www.omg.org/spec/BPMN/20100524/MODEL":correlationSubscription, "http://www.omg.org/spec/BPMN/20100524/MODEL":supports}' is expected.

      (null: 137, 52): schema_reference.4: Failed to read schema document 'http://www.omg.org/spec/BPMN/20100524/DI-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      (null: 137, 52): cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmndi:BPMNDiagram'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":rootElement, "http://www.omg.org/spec/BPMN/20100524/MODEL":relationship}' is expected.

      (null: 138, 83): schema_reference.4: Failed to read schema document 'http://www.omg.org/spec/BPMN/20100524/DI-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      (null: 139, 53): schema_reference.4: Failed to read schema document 'http://www.omg.org/spec/BPMN/20100524/DI-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      (null: 140, 48): schema_reference.4: Failed to read schema document 'http://www.omg.org/spec/DD/20100524/DC-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      java.lang.IllegalArgumentException: Invalid bounds for node tns:1

          at org.jbpm.bpmn2.xml.di.BPMNShapeHandler.end(BPMNShapeHandler.java:84)

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

          at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604)

          at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:826)

          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1759)

          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2915)

          at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)

          at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)

          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)

          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)

          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)

          at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)

          at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)

          at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)

          at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)

          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:247)

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

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

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

          at com.sample.ProcessMain.readKnowledgeBase(ProcessMain.java:154)

          at com.sample.ProcessMain.main(ProcessMain.java:51)

      Caused by: java.lang.NumberFormatException: empty String

          at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1012)

          at java.lang.Float.valueOf(Float.java:405)

          at java.lang.Float.<init>(Float.java:506)

          at org.jbpm.bpmn2.xml.di.BPMNShapeHandler.end(BPMNShapeHandler.java:75)

          ... 23 more

      ProcessLoadError: unable to parse xml : Exception class java.lang.IllegalArgumentException : Invalid bounds for node tns:1

      java.lang.IllegalArgumentException: Could not parse knowledge.

          at org.drools.builder.impl.KnowledgeBuilderImpl.newKnowledgeBase(KnowledgeBuilderImpl.java:67)

          at com.sample.ProcessMain.readKnowledgeBase(ProcessMain.java:155)

          at com.sample.ProcessMain.main(ProcessMain.java:51)