cancel
Showing results for 
Search instead for 
Did you mean: 

10 minute tutorial XML error

frecklefoot
Champ in-the-making
Champ in-the-making
I've been going through the 10 minute tutorial sample application, and I keep getting parsing errors in the application. As a result, the rest of the tutorial following the code development is useless to me. Error:

org.activiti.engine.ActivitiException: couldn't parse 'FinancialReportProcess.bpmn20.xml': The prefix "bpmndi" for element "bpmndi:BPMNDiagram" is not bound.

I used the XML verbatim from the given URL (http://www.activiti.org/userguide/images/FinancialReportProcess.bpmn20.xml). Am I missing something? Do I need to change the XML to get it to work?

Thanks for any help!
4 REPLIES 4

trademak
Star Contributor
Star Contributor
Hi,

Can you explain how you implemented the FinancialReportProcess.bpmn20.xml process definition? Or did you get it from the Activiti examples?

Best regards,

frecklefoot
Champ in-the-making
Champ in-the-making
Like I said in the original post, I got the XML straight from the URL referenced in the tutorial (http://www.activiti.org/userguide/index.html#bpmnFirstExamplStartProcess😞 http://www.activiti.org/userguide/images/FinancialReportProcess.bpmn20.xml

I didn't get it from the examples; I just copied the text from the (second) URL above and slapped it into a file named FinancialReportProcess.bpmn20.xml. I put it in the same folder as the TenMinuteTutorial.java source file.

trademak
Star Contributor
Star Contributor
Ok, the XML you can see in the userguide directly is correct, so please use that one.
You can also find this example process in the Activiti Modeler examples (workspace/activiti-modeler-examples).
The second link you point to, contains invalid BPMN 2.0 XML. We have to clean this up for sure.

Thanks,

frecklefoot
Champ in-the-making
Champ in-the-making
Thanks. I wanted to use the XML code from the link since it had the modeler info as well (node positions and whatnot). I used the XML from the Activiti Modeler example, and that throws errors too, though different ones:

org.activiti.engine.ActivitiException: cvc-complex-type.3.2.2: Attribute 'resourceRef' is not allowed to appear in element 'potentialOwner'. | FinancialReportProcess.bpmn20.xml | line 29 | column 87
cvc-complex-type.3.2.2: Attribute 'resourceRef' is not allowed to appear in element 'potentialOwner'. | FinancialReportProcess.bpmn20.xml | line 41 | column 87


The XML directly from the User Guide seems to work, though it is missing the modeler information, which is kind of a bummer. Thanks for your help!