-
Bug
-
Resolution: Done
-
Major
-
6.4.7
-
CR1
-
-
2018 Week 05-06, 2018 Week 07-08, 2018 Week 09-10
'documentation' has to be located before other elements.
https://github.com/kiegroup/jbpm/blob/6.5.x/jbpm-bpmn2/src/main/xsd/Semantic.xsd#L93-L100
But Process Designer may place a 'documentation' after other elements. For example, with the steps:
1. Create a StartEvent
2. Set some text in "documentation" property
or
1. Create a ScriptTask
2. Set some text in "name" and "script" property
3. Set some text in "documentation" property
or
1. Create a sequenceFlow
2. Set some text in "name" property
3. And then Set some text in "documentation" property
See attached org.jbpm.documentationTest.v1.0.bpmn2
It results in the following error.
13:48:03,483 ERROR [org.drools.core.xml.ExtensibleXmlParser] (default task-19) (null: 10, 57): cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn2:documentation'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":auditing, "http://www.omg.org/spec/BPMN/20100524/MODEL":monitoring, "http://www.omg.org/spec/BPMN/20100524/MODEL":categoryValueRef, "http://www.omg.org/spec/BPMN/20100524/MODEL":incoming, "http://www.omg.org/spec/BPMN/20100524/MODEL":outgoing, "http://www.omg.org/spec/BPMN/20100524/MODEL":property, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataOutput, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataOutputAssociation, "http://www.omg.org/spec/BPMN/20100524/MODEL":outputSet, "http://www.omg.org/spec/BPMN/20100524/MODEL":eventDefinition, "http://www.omg.org/spec/BPMN/20100524/MODEL":eventDefinitionRef}' is expected. 13:48:03,484 ERROR [org.drools.core.xml.ExtensibleXmlParser] (default task-19) (null: 19, 57): cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn2:documentation'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":auditing, "http://www.omg.org/spec/BPMN/20100524/MODEL":monitoring, "http://www.omg.org/spec/BPMN/20100524/MODEL":categoryValueRef, "http://www.omg.org/spec/BPMN/20100524/MODEL":incoming, "http://www.omg.org/spec/BPMN/20100524/MODEL":outgoing, "http://www.omg.org/spec/BPMN/20100524/MODEL":ioSpecification, "http://www.omg.org/spec/BPMN/20100524/MODEL":property, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataInputAssociation, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataOutputAssociation, "http://www.omg.org/spec/BPMN/20100524/MODEL":resourceRole, "http://www.omg.org/spec/BPMN/20100524/MODEL":loopCharacteristics, "http://www.omg.org/spec/BPMN/20100524/MODEL":script}' is expected. 13:48:03,488 ERROR [org.drools.core.xml.ExtensibleXmlParser] (default task-19) (null: 39, 57): cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn2:documentation'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":auditing, "http://www.omg.org/spec/BPMN/20100524/MODEL":monitoring, "http://www.omg.org/spec/BPMN/20100524/MODEL":categoryValueRef, "http://www.omg.org/spec/BPMN/20100524/MODEL":conditionExpression}' is expected.
- clones
-
RHPAM-387 "Invalid content was found starting with element" caused by 'documentation' ordering
- Closed