Add custom icon to userTask

I want to add another icon at the right of the user Task box like the red icon in the photo, but I doesn’t find any solution.

custom icon

Thanks in advance.

You could use the overlays API for that.

Your solution work for me, but what about save the new icon to the bpmn file xml?

Then I think the custom elements example will be interesting for you. Rendering is only one part of the story, you will have to add your custom model descriptors to persist it.