Add custom elements and store them in a bpmn file

Hi,

I’m trying to modify the bpmn modeler by adding custom element in the palette which I able to do thanks to Custom Elements exemple but the thing is when I save the diagram in the bpmn file, my new element are registered as “bpmn:Task” element. So when I load the same file in the editor it appears as a normal Task and not like my custom element.

Custom rendering of my element : image

Rendering after loading the bpmn file : image

How can I save my custom Element in a way that when I load it again it appears with my custom design ?

Thanks in advance for your time :slight_smile:

Can you share your project setup? It will be easier for us to reproduce it.

In what way are you customizing your element?