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  '{"':artifact}' .
at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(

the whole process definition is in attachment file "CompensateSubprocessProcess.bpmn20.xml.txt".

when i remove the following fragment:

<boundaryEvent id="compensateBookHotelEvent" attachedToRef="bookHotel">
<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.