it’s basically a clone of the Nyan example. Except that I use my custom svg instead of Nyan.gif.
Now, the problem is that the label of this element is not shown. I want it to be viewable just like the labels on a Task Element. It’s possible to add or edit the label (it’s even accessible via businessObject), but the DOM responsible for showing the label will not be generated.
What you need to do is render the embedded label as part of the render process, cf. BpmnRenderer.
The BpmnRenderer wraps that into a little bit of utility, but what it does in a nutshell is resorting to TextRenderer for creating the actual label text and adding it to the graphical element.