cancel
Showing results for 
Search instead for 
Did you mean: 

XML Parsing Error

rsaunder
Champ in-the-making
Champ in-the-making
Creating a deployment throws an XML parsing exception. The bpmn20.xml file in fact fails validation but I'm not sure why.  Here are the namespaces:

definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 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">

Here is an example of an offending element:
<serviceTask id="servicetask21" name="Verify Document" activiti:class="ActivitiServices.VerifyDocument"></serviceTask>‍


The error is:
Multiple annotations found at this line:
   - cvc-pattern-valid: Value 'ActivitiServices.VerifyDocument' is not facet-valid with respect to pattern '([a-z]{2,3}(\.[a-zA-Z][a-zA-Z_$0-9]*)*)\.([A-Z][a-zA-Z_$0-9]*)' for type
    '#AnonType_class'.
   - cvc-attribute.3: The value 'ActivitiServices.VerifyDocument' of attribute 'activiti:class' on element 'serviceTask' is not valid with respect to its type, 'null'.
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Can you create a JIRA issue and attach the full BPMN XML, so we can test it?

Thanks,

ooactiviti
Champ in-the-making
Champ in-the-making
activit:class require ([a-z]{2,3}(\.[a-zA-Z][a-zA-Z_$0-9]*)*)\.([A-Z][a-zA-Z_$0-9]*), so package name part 1 must be 2~3 letter. Example:
org.xxx, com.xxx , You need to be rename 'ActivitiServices' to org, foo, bar…