bpmn-io / bpmn.io

The bpmn.io website sources.
https://bpmn.io
155 stars 99 forks source link

The content of element 'bpmn2:dataInputAssociation' is not complete. ... #36

Closed syntax-punk closed 6 years ago

syntax-punk commented 6 years ago

Hello, Faced with this error while editing the diagram. Say, you have a 'CallActivity' and a connection to either 'DataObjectReference' or 'DataStoreReference'. If you change the CallActivity type of the same object to any other one (Task, UserTask etc ...) and try to save it on the backend, you will get the following error:

The content of element 'bpmn2:dataInputAssociation' is not complete. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":documentation, "http://www.omg.org/spec/BPMN/20100524/MODEL":extensionElements, "http://www.omg.org/spec/BPMN/20100524/MODEL":sourceRef, "http://www.omg.org/spec/BPMN/20100524/MODEL":targetRef}' is expected

But if you manually remove connection with DataObject... it works just fine.

nikku commented 6 years ago

Please reproduce this error against demo.bpmn.io and report your results. Thanks!

syntax-punk commented 6 years ago

Hi @nikku, the issue appears to happen on the server side while saving diagram and thus sending it to the backend, where exception is thrown while parsing the XML.

nikku commented 6 years ago

So not an issue with our library then?

syntax-punk commented 6 years ago

Well, I'm not sure, because maybe the XML is not saved according to the specs.

syntax-punk commented 6 years ago

This is the exception from Camunda XMLSchemaValidator while parsing the XML generated by bpmn.io:

"Caused by: org.xml.sax.SAXException: Error: URI=null Line=33: cvc-complex-type.2.4.b: The content of element 'bpmn2:dataInputAssociation' is not complete. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":documentation, "http://www.omg.org/spec/BPMN/20100524/MODEL":extensionElements, "http://www.omg.org/spec/BPMN/20100524/MODEL":sourceRef, "http://www.omg.org/spec/BPMN/20100524/MODEL":targetRef}' is expected."

nikku commented 6 years ago

Please reproduce this error against demo.bpmn.io and report your results. Thanks!

Please provide us with concrete steps to reproduce this issue against demo.bpmn.io if there is anything we should act on.

Thanks!