Hey there,
I’m currently using th bpmn modeler inside a vue framework and really enjoying the provided bpmn.io tools. However, I can’t figure out a bug with the lasso tool. If multple objects are selected with the lasso tool and I try to copy them, following error message will be triggered:
Uncaught (in promise) TypeError: businessObject.get is not a function
getTemplateId$1 index.esm.js:17175
_getTemplateId index.esm.js:18914
get index.esm.js:18767
getTemplate index.esm.js:1406
getTypeLabel index.esm.js:1340
Header index.esm.js:127
Preact 24
_update index.esm.js:1558
onSelectionChanged index.esm.js:1576
invokeFunction EventBus.js:519
_invokeListener EventBus.js:371
_invokeListeners EventBus.js:352
fire EventBus.js:313
select Selection.js:106
select LassoTool.js:181
LassoTool LassoTool.js:102
invokeFunction EventBus.js:519
_invokeListener EventBus.js:371
_invokeListeners EventBus.js:352
fire EventBus.js:313
fire Dragging.js:169
end Dragging.js:265
trapClickAndEnd Dragging.js:314
bind_1 index.esm.js:398
init Dragging.js:513
ignoreIfModelingDisabled DisableModeling.js:46
fnName DisableModeling.js:36
ignoreIfModelingDisabled DisableModeling.js:46
fnName DisableModeling.js:36
activateLasso LassoTool.js:157
LassoTool LassoTool.js:88
wrappedCallback EventBus.js:185
invokeFunction EventBus.js:519
_invokeListener EventBus.js:371
_invokeListeners EventBus.js:352
fire EventBus.js:313
fire Dragging.js:169
end Dragging.js:276
bind_1 index.esm.js:398
init Dragging.js:512
ignoreIfModelingDisabled DisableModeling.js:46
fnName DisableModeling.js:36
ignoreIfModelingDisabled DisableModeling.js:46
fnName DisableModeling.js:36
activateSelection LassoTool.js:168
toggle LassoTool.js:191
_registerDefaultActions BpmnEditorActions.js:82
trigger EditorActions.js:172
DisableModeling DisableModeling.js:111
fnName DisableModeling.js:36
registerBindings BpmnKeyboardBindings.js:101
invokeFunction EventBus.js:519
_invokeListener EventBus.js:371
index.esm.js:17175
Below you can find the imports, init and package versions.
import BpmnModeler from "bpmn-js/lib/Modeler";
import 'camunda-bpmn-js/dist/assets/camunda-cloud-modeler.css';
import ZeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json';
import ZeebeModdleModule from 'zeebe-bpmn-moddle/lib';
import '@bpmn-io/element-template-chooser/dist/element-template-chooser.css';
import ElementTemplateChooserModule from '@bpmn-io/element-template-chooser';
import TEMPLATES from '../.camunda/element-templates/templates.json';
import ElementTemplatesIconsRenderer from '@bpmn-io/element-templates-icons-renderer';
import TokenSimulationModule from 'bpmn-js-token-simulation';
import {
BpmnPropertiesPanelModule,
BpmnPropertiesProviderModule,
CloudElementTemplatesPropertiesProviderModule,
ZeebePropertiesProviderModule,
} from "bpmn-js-properties-panel";
import minimapModule from "diagram-js-minimap";
let canvas = this.$refs["canvas"];
let panel = this.$refs["panel"];
this.modeler = new BpmnModeler({
container: canvas,
keyboard: {
bindTo: window
},
moddleExtensions: {
zeebe: ZeebeModdle
},
propertiesPanel: {
parent: panel,
},
additionalModules: [
minimapModule,
BpmnPropertiesPanelModule,
BpmnPropertiesProviderModule,
CloudElementTemplatesPropertiesProviderModule,
ElementTemplateChooserModule,
ElementTemplatesIconsRenderer,
TokenSimulationModule,
ZeebePropertiesProviderModule,
ZeebeModdleModule
],
});
this.modeler.get('elementTemplatesLoader').setTemplates(TEMPLATES);
"@bpmn-io/element-template-chooser": "^0.0.5",
"@bpmn-io/element-templates-icons-renderer": "^0.2.0",
"@bpmn-io/properties-panel": "^0.13.0",
"bpmn-js": "^9.3.1",
"bpmn-js-properties-panel": "1.2.0",
"bpmn-js-token-simulation": "^0.27.0",
"camunda-bpmn-js": "^0.16.1",
"core-js": "^3.18.2",
"diagram-js-minimap": "^2.0.3",
"zeebe-bpmn-moddle": "^0.12.0"