How to change value of extension element when copy, paste

Hello everyone,

I have custom element dm:userId with value is 1. I want to after copy and paste dm:userId with value increase = 2. Please help me to solve this issue

<bpmn2:collaboration id="Collaboration_0iod4d3">
    <bpmn2:participant id="_participant" name="Generic Participant" processRef="_appointment_process_test">
      <bpmn2:extensionElements>
        <dm:userId>
           1
        </dm:userId>
      </bpmn2:extensionElements>
    </bpmn2:participant>
</bpmn2:collaboration>
  • After paste
<bpmn2:collaboration id="Collaboration_0iod4d2">
    <bpmn2:participant id="_participant" name="Generic Participant" processRef="_appointment_process_test">
      <bpmn2:extensionElements>
        <dm:userId>
           2
        </dm:userId>
      </bpmn2:extensionElements>
    </bpmn2:participant>
</bpmn2:collaboration>

help me please :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear:

Could you explain your issue in a structured and detailed manner, so anyone has a fair chance to understand your use case?

If you are stuck with a particular problem, provide the necessary context. Phrase your post so that we can follow your line of thought, step by step.

Please revise your post; we may not be able to help you otherwise. We may also close topics of low quality to prevent spam.

Thanks :heart: