I need to add a property to all existing elements, and I wanted to find a superclass to extend that would let me add it to all elements, without having to assign it to each individually. I’ve tried extending bpmn:Element, bpmn:Shape and bpmn:Object, but none of them appear to be valid (they throw “Uncaught TypeError: extended is undefined”).
I’ve also tried “superclass”: Element as in several of the custom-properties examples, but it doesn’t appear to save my field when I do that.
{
"name": "MyElement",
"extends": [
"bpmn:Task"
],
"properties": [
{
"name": "nameTranslation",
"isAttr": true,
"type": "String"
}]
Is there a place anywhere that actually lists the elements and their inheritances? I couldn’t find anything on this forum or in the code.