cancel
Showing results for 
Search instead for 
Did you mean: 

Try to deploy Activiti Sources, but to many XML Errors

tschiela
Champ in-the-making
Champ in-the-making
Good Morning,

i checked out the sources (http://svn.codehaus.org/activiti/activiti/trunk/) and try customize the code, to fit our requirements. But i got 47 XML Errors. Here i list some of them:

    cvc-attribute.3:The value 'mail' of attribute 'activiti:type' on element 'sendTask' is not valid with respect to its type, 'null'.   EmailSendTaskTest.testHtmlMail.bpmn20.xml   /activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/mail   line 11   XML Problem

    cvc-complex-type.2.1: Element 'activiti:formProperty' must have no character or element information item [children], because the type's content type is empty.   FormServiceTest.testFormPropertyDetails.bpmn20.xml   /activiti-engine/src/test/resources/org/activiti/engine/test/api/form   line 26   XML Problem

    cvc-enumeration-valid: Value 'mail' is not facet-valid with respect to enumeration '[shell]'. It must be a value from the enumeration.   EmailSendTaskTest.testSendEmail.bpmn20.xml   /activiti-engine/src/test/resources/org/activiti/examples/bpmn/mail   line 11   XML Problem
Whats the problem here? can anybodyhelp

greets
Thomas
5 REPLIES 5

chris_joelly
Champ in-the-making
Champ in-the-making
Hello,

i have the same problem. i played with the XML Catalog in Eclipse and registered the XML Schema files which comes with the Activiti distribution, but it did not help a lot. I think its just a problem validating the various XML files so i just ignore it…

hth

shukla_raghav
Champ in-the-making
Champ in-the-making
I am facing similar problems. It seems the .bpmn files do not confirm to the XSD. Are the xml schemas erroneous. What should i do ? Should i suppress XML validation?

chris_joelly
Champ in-the-making
Champ in-the-making
I think some of the Activiti extensions are an issue.

e.g. there is an attribut defined called 'type' which is restricted to an enumeration with one element, "shell"
but the bpmn files they provide with the engine defines service and send tasks with:
activiti:type="mail", which for sure violates their provided XML schema, activiti-bpmn-extensions-5.10.xsd in this case.
But if u investigate other XSDs, like activiti-bpmn-extensions-5.3.xsd, u will find that there is no "shell" element in the enum for the attribute "type", there is only "mail"…
So, i think the XSDs file are not very stable nor correct to be used for serious validation.

Regarding the validation errors against the BPMN20.xsd. From what i saw the XMLs are valid… I did not find out too why the validation fails in Eclipse.

shukla_raghav
Champ in-the-making
Champ in-the-making

shukla_raghav
Champ in-the-making
Champ in-the-making
Hi,

What is have found is that there is inconstancy in the XMLs with the current Source 5.10 downloaded from http://svn.codehaus.org/activiti/activiti/trunk/
but when i downloaded the stable 5.9 source (https://svn.codehaus.org/activiti/activiti/tags/activiti-5.9/) the XML errors were gone.