cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Task Copy Paste Issue

navienkmr
Champ in-the-making
Champ in-the-making
Hi,

I am using activiti designer version 5.12.0. I have created few custom tasks.

The service task xml of the custom task looks like this

<serviceTask id="servicetask5" name="Database Task" activiti:class="com.xyz.server.abc.SomeDelegation" activiti:extensionId="persistence.DBTaskModel">
      <extensionElements>
        <activiti:field name="evidenceRequired">
          <activiti:string>false</activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>

But when I copy and paste the same task in the same bpmn then the attribute class is getting missed.

<serviceTask id="servicetask9" name="Database Task" activiti:extensionId="persistence.DBTaskModel">
      <extensionElements>
        <activiti:field name="evidenceRequired">
          <activiti:string>false</activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
1 REPLY 1

navienkmr
Champ in-the-making
Champ in-the-making
Sorry adding the XML's properly

The service task xml of the custom task looks like this

<serviceTask id="servicetask5" name="Database Task" activiti:class="com.abc.xyz.DatabaseDelegation" activiti:extensionId="persistence.DBTaskModel">
      <extensionElements>
        <activiti:field name="evidenceRequired">
          <activiti:string>false</activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>

But when I copy and paste the same task in the same bpmn then the attribute class is getting missed.

<serviceTask id="servicetask9" name="Database Task" activiti:extensionId="persistence.DBTaskModel">
      <extensionElements>
        <activiti:field name="evidenceRequired">
          <activiti:string>false</activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>