cancel
Showing results for 
Search instead for 
Did you mean: 

Disparity designer formed file to description XSD

shar
Champ in-the-making
Champ in-the-making
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'Smiley Surprisedutgoing, "http://www.omg.org/spec/BPMN/20100524/MODEL':ioSpecification, "http://www.omg.org/spec/BPMN/20100524/
MODEL"Smiley Tongueroperty, "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?
5 REPLIES 5

trademak
Star Contributor
Star Contributor
Hi,

Thanks, it's fixed now in the trunk.

Best regards,

qnerd
Champ in-the-making
Champ in-the-making
Hi,

it seems, that the same problem appears in the process element:

  <process id="Test" name="Dummy">
    <extensionElements>
      <activiti:executionListener event="end" class="EndEventListener"></activiti:executionListener>
    </extensionElements>
   <documentation>Test</documentation>
    […]
   </process>



Kind regards,
Sven

vasil
Champ in-the-making
Champ in-the-making
Hi,

Thanks, it's fixed now in the trunk.

Best regards,
I have the same issue with <documentation> element.
Is it already fixed in the latest release?
Since your post there are 5 releases.

My Installation environment:
  Activiti Eclipse BPMN 2.0 Designer 5.8.0 org.activiti.designer.feature.feature.group Activiti
  Eclipse SDK 3.7.1.M20110909-1335 org.eclipse.sdk.ide null

trademak
Star Contributor
Star Contributor
Hi,

And for which BPMN element do you have this problem? For the process element?

Best regards,

vasil
Champ in-the-making
Champ in-the-making
Hi,

And for which BPMN element do you have this problem? For the process element?

Best regards,
Here is a piece of the xml. Any time I save a diagram in the designer the <documentation> element's place is rearranged in the xml file.

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="SendWelcomeEmailToCustomer" name="Send welcome email to customer">
    <extensionElements>
      <activiti:executionListener event="start" class="servicetask.FooExecutionListener"></activiti:executionListener>
      <activiti:executionListener event="end" class="servicetask.FooExecutionListener"></activiti:executionListener>
    </extensionElements>
    <documentation>Place here the documentation.</documentation>