AnsweredAssumed Answered

XML Parsing Error

Question asked by rsaunder on Apr 22, 2015
Latest reply on Nov 24, 2015 by ooactiviti
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" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="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'.

Outcomes