How to add attribute to XML representation of a BPMN component

Hello,
I would like to know how I can (programmatically) add an extra attribute to the XML representation of a BPMN component.

So for a particular task-component that I select in the modeler, I want to be able to specify a value that is then assigned to an extra attribute of the bpmn:task tag. Is this possible?

Thanks in advance!

Hi.

Yes, this is possible. You can refer to this example.