fix(importer): import label on messageFlows

Closes #76
This commit is contained in:
Nico Rehwaldt 2014-06-17 11:03:03 +02:00
parent 9112024e88
commit d41cad1b67
2 changed files with 14 additions and 1 deletions

View File

@ -12,7 +12,8 @@ function hasLabel(element) {
element.$instanceOf('bpmn:Gateway') ||
element.$instanceOf('bpmn:DataStoreReference') ||
element.$instanceOf('bpmn:DataObjectReference') ||
element.$instanceOf('bpmn:SequenceFlow');
element.$instanceOf('bpmn:SequenceFlow') ||
element.$instanceOf('bpmn:MessageFlow');
}

View File

@ -44,6 +44,18 @@ describe('import - labels', function() {
});
});
it('on message flows', function(done) {
var xml = fs.readFileSync('test/fixtures/bpmn/import/labels/collaboration-message-flows.bpmn', 'utf8');
var renderer = new Viewer(container);
renderer.importXML(xml, function(err) {
done(err);
});
});
});