Hi there,
I’m having trouble opening an existing diagram with custom meta tags (in particular the “camunda:executionListener”). I followed all the steps described to create custom meta, and everything went fine until I tried to open an existing diagram.
Here is my code and you’ll find attached a screenshot of the error in the browser and the .bpmn file containing the diagram.
// JSON Containing tag definition
var jsonCamunda = … json, check tagCamunda.xml
var Modeler = window.BpmnJS;
var modeler = new Modeler({moddleExtensions: {camunda:jsonCamunda},container: ‘#diagramCanvas’, width: ‘100%’, height: ‘100%’});
var container = $(‘#draw-container’);
$(document).ready(function() {
$.get(‘diagrama.bpmn’, function(xml) {
console.log( "diagram Loaded: " + xml);
modeler.importXML(xml, function(err) {
if (err) { console.log('error rendering', err); } else { var canvas = modeler.get('canvas'); // zoom to fit full viewport canvas.zoom('fit-viewport'); container.removeClass('with-error') .addClass('with-diagram'); } });
});
});
tagCamunda.xml (594 Bytes)
diagrama.bpmn (2.2 KB)