Multiple moddle extension in modeler


#1

Hi,
I’ve problem with multiple moddle extensions in modeler.
When I use this code

modeler = new BpmnModeler({
                    container: container,
                    keyboard: {
                        bindTo: window
                    },
                    additionalModules: [
                        bpm.getMiniMapModule(),
                        bpm.getTokenSimulation()
                    ],
                    moddleExtensions: {
                        gbme: modExt,
                        bizagi: bizagiExt                        
                    }
                });

I get this error in console

message: "Cannot read property 'split' of undefined"
stack: "TypeError: Cannot read property 'split' of undefined↵    at parseName (.../bpmn.development.js:80209:20)

And when i remove bizagi or gbme modeler worked successfully.

Also when I use modeler.get('moddle').registry.registerPackage() I get this error.

===== UPDATE 1 ====
a one solution is push json package to moddle with modeler.get('moddle').registry.packages.push(...) but I don’t know is valid or not.

===== UPDATE 2 ====
With top solution we can not create moddle type with moddle.create() and show error Uncaught Error: unknown type <bizagi:BizagiProperty>

Please help me hot to fix this problem.


#2

How do modExt and bizagiExt look like?