cancel
Showing results for 
Search instead for 
Did you mean: 

Creating custom xsd in Activiti for ExtensionElements

mvharish
Champ on-the-rise
Champ on-the-rise
Hi,We have a project requirement where we need to include custom elements inside the extensionelements attributes of Service\User task.I was trying add the custom tags say <activiti:XXXX>YYYY</activiti:XXXX> but it seems the whole bpmn file gets reset and my tags are gone if I later modify the bpmn file with addition of different tag.
So is there a way to add our own elements.For ex:
<serviceTask id="servicetask1" name="Service Task" activiti:class="com.candidjava.MyDelegate">
      <documentation>ghhh</documentation>
      <extensionElements>
      <activiti:futureActor>Harish</activiti:futureActor>
      <activiti:colour>green</activiti:colour>
      </extensionElements>
  </serviceTask>
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
Yes, that should be possible.

When you say 'gets reset', do you mean it gets reset in the designer?

mvharish
Champ on-the-rise
Champ on-the-rise
Thanks for the reply.
yes what happenes is when there is a change done at designer level.The custom tags

<activiti:futureActor>Harish</activiti:futureActor>
<activiti:colour>green</activiti:colour>

are getting removed and I can see only

<extensionElements>
</extensionElements>

for a temporary fix currently I am using the <activiti:field> element which is present inside the <extensionelements> tag.But in future it will be great if we can define our own custom elements inside the <extensionelement .So that parsing level validation error can be handled easily.