cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Multi-Instance and Script Tasks

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,

There seems to be an issue with multi-instance configurations and script tasks.

The following exception is thrown upon startup of the engine: ActivitiException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'multiInstanceLoopCharacteristics'. No child element is expected at this point.

Might be a problem in the DTD/schema?

Adding multi-instance configurations to user tasks works without problems.

Regards,
Markus
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
Could you paste your relevant process xml?

Did you already try to wrap it in CDATA?

mikejbrady
Champ in-the-making
Champ in-the-making
As you surmise Markus, the error cited is an XML validation error. I see it in v5.11. It looks like the Eclipse Designer is putting the 'multiInstanceLoopCharacteristics' (MILC) element in the wrong place, after the 'script' element. I moved the MILC element to first within the 'scriptTask' then successfully validated and ran.

Before, generated by the Designer:

<scriptTask …>
  <script>…</script>
  <multiInstanceLoopCharacteristic …/>
</scriptTask>
After hand edit:

<scriptTask …>
  <multiInstanceLoopCharacteristic …/>
  <script>…</script>
</scriptTask>
My XML schema knowledge is a bit rusty, so cannot say exactly why this is a problem – something to do with the 'scriptTask' inheritance relationship. The schema really should be more flexible. Regardless, it is standard BPMN2, so the problem seems to be in the Designer.

I am happy to enter a JIRA ticket with sample XML, but need a codehaus JIRA account.

trademak
Star Contributor
Star Contributor
Hi,

The error is now fixed for the 5.12 release of the Designer. I expect to release the 5.12 in a couple of weeks.
Thanks for raising the issue.

Best regards,

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,

Great to hear that!

Thanks,
Markus