I have issue in custom element basically i added multiple custom element , then add properties panel every thing fine .
But when when put custom element in panel there are error display on browser console :
Uncaught TypeError: bo.get is not a function
CustomElementFactory
this.create = function(elementType, attrs) {
var type = attrs.type;if (elementType === 'label') { return self.baseCreate(elementType, assign({ type: 'label' }, DEFAULT_LABEL_SIZE, attrs)); } // add type to businessObject if custom if (/^custom:/.test(type)) { if (!attrs.businessObject) { attrs.businessObject = { type: type }; if (attrs.id) { assign(attrs.businessObject, { id: attrs.id }); } } // add width and height if shape if (!/:connection$/.test(type)) { assign(attrs, self._getCustomElementSize(type)); } if (!('$instanceOf' in attrs.businessObject)) { // ensure we can use ModelUtil#is for type checks Object.defineProperty(attrs.businessObject, '$instanceOf', { value: function(type) { return this.type === type; } }); } console.log("## ## elementType "+elementType); console.log("## ## attrs "+JSON.stringify(attrs)); return self.baseCreate(elementType, attrs); } return self.createBpmnElement(elementType, attrs);
};
for custom element i use the same implementation for :