XML Parsing Error
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2015 09:01 AM
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
mgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns
mgdi="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:
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'.
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


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'.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2015 09:09 AM
Can you create a JIRA issue and attach the full BPMN XML, so we can test it?
Thanks,
Thanks,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2015 09:27 PM
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…
org.xxx, com.xxx , You need to be rename 'ActivitiServices' to org, foo, bar…
