AnsweredAssumed Answered

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

Question asked by stalwartwill on Dec 3, 2015
Latest reply on Dec 4, 2015 by martin.grofcik
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:


<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.

Outcomes