got error “find some invalid element starting with 'serviceTask'” while deploying

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2015 08:15 AM
When i deploy an xml process resource, i got error as:
"org.activiti.bpmn.exceptions.XMLException: cvc-complex-type.2.4.a: find some invalid element starting with 'serviceTask' . it should be start with one of '{"http://www.omg.org/spec/BPMN/20100524/MODEL':artifact}' .
at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:277)
……"
the whole process definition is in attachment file "CompensateSubprocessProcess.bpmn20.xml.txt".
when i remove the following fragment:
it's deployed successfully.
it seems to be some error in compensation boudary event definition, but i write it followed by the Activiti User Guide.
moreover, the activiti version is activiti-5.17.0
It will be very grateful some one can give me a help.
"org.activiti.bpmn.exceptions.XMLException: cvc-complex-type.2.4.a: find some invalid element starting with 'serviceTask' . it should be start with one of '{"http://www.omg.org/spec/BPMN/20100524/MODEL':artifact}' .
at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:277)
……"
the whole process definition is in attachment file "CompensateSubprocessProcess.bpmn20.xml.txt".
when i remove the following fragment:
<boundaryEvent id="compensateBookHotelEvent" attachedToRef="bookHotel"> <compensateEventDefinition/></boundaryEvent><association id="a1" sourceRef="compensateBookHotelEvent" targetRef="cancelHotelReservation" associationDirection="None"/>
it's deployed successfully.
it seems to be some error in compensation boudary event definition, but i write it followed by the Activiti User Guide.
moreover, the activiti version is activiti-5.17.0
It will be very grateful some one can give me a help.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2015 02:39 AM
Hi,
there is a bug in the parser (create a jira issue for this case please attach process definition to the issue).
Workaround is to place
at the end of the BPMN definition.
Regards
Martin
there is a bug in the parser (create a jira issue for this case please attach process definition to the issue).
Workaround is to place
<association id="a1" sourceRef="compensateBookHotelEvent"
targetRef="cancelHotelReservation" associationDirection="None"/>
at the end of the BPMN definition.
Regards
Martin
