fix(modeling): make sure lanes get ids assigned

This commit is contained in:
Nico Rehwaldt 2015-08-12 08:18:49 +02:00 committed by pedesen
parent 4afefcb838
commit e9a7bfa986
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ BpmnFactory.prototype._needsId = function(element) {
element.$instanceOf('bpmn:MessageFlow') ||
element.$instanceOf('bpmn:Artifact') ||
element.$instanceOf('bpmn:Participant') ||
element.$instanceOf('bpmn:Lane') ||
element.$instanceOf('bpmn:Process') ||
element.$instanceOf('bpmn:Collaboration') ||
element.$instanceOf('bpmndi:BPMNShape') ||

View File

@ -34,6 +34,9 @@ describe('features/modeling - create lanes', function() {
var lane = laneShape.businessObject;
// then
// expect it to have an id
expect(lane.id).to.exist;
expect(laneShape).to.exist;
expect(lane).to.exist;