nullpointer on empty sourceref in datainputassociation

Description

According to the bpmn spec dataAssociations do not require sourceRef. The BpmnParse assumes one.

<xsd:element name="dataAssociation" type="tDataAssociation" />
<xsd:complexType name="tDataAssociation" abstract="true">
<xsd:complexContent>
<xsd:extension base="tBaseElement">
<xsd:sequence>
<xsd:element name="sourceRef" type="xsd:IDREF" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="targetRef" type="xsd:IDREF" minOccurs="1" maxOccurs="1"/>
<xsd:element name="transformation" type="tFormalExpression" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="assignment" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Please find attached minipatch to support associations without sourceRef.

Environment

None

Assignee

Tijs Rademakers

Reporter

Marco Dubbeld

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure