cancel
Showing results for 
Search instead for 
Did you mean: 

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

stalwartwill
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
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

<association id="a1" sourceRef="compensateBookHotelEvent"
            targetRef="cancelHotelReservation" associationDirection="None"/>

at the end of the BPMN definition.

Regards
Martin