AnsweredAssumed Answered

Disparity designer formed file to description XSD

Question asked by shar on Mar 17, 2011
Latest reply on Dec 9, 2011 by vasil
Activiti designer generated a code

    <userTask id="usertask60" name="Support" activiti:candidateUsers="kermit" activiti:formKey="ll.form">
      <extensionElements>
        <activiti:taskListener event="create" class="org.abpm.listeners.AssignDesiderListener"></activiti:taskListener>
      </extensionElements>
      <documentation textFormat="text/plain">Text</documentation>
    </userTask>

presentation of Bpmn2.0 shows an error

cvc-complex-type.2.4.a: Invalid content was found starting with element '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://
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://
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":rendering}' is expected.

In accordance with description of xsd


   <xsd:complexType name="tBaseElement" abstract="true">
      <xsd:sequence>
         <xsd:element ref="documentation" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element ref="extensionElements" minOccurs="0" maxOccurs="1" />
      </xsd:sequence>
      <xsd:attribute name="id" type="xsd:ID" use="optional"/>
      <xsd:anyAttribute namespace="##other" processContents="lax"/>
   </xsd:complexType>

An element of 'documentation' must be before an element extensionElements.
If to bring in such change in a file an error disappears.
It can be I influenced something wrong?

Outcomes