chore(modeling): add non-interrupting start events to ElementFactory

This commit is contained in:
pedesen 2015-08-17 16:40:14 +02:00
parent 3cb1721c89
commit e1876fa3e8
1 changed files with 23 additions and 19 deletions

View File

@ -73,6 +73,10 @@ ElementFactory.prototype.create = function(elementType, attrs) {
businessObject.di.isMarkerVisible = true;
}
if (attrs.isInterrupting === false) {
businessObject.isInterrupting = false;
}
if (attrs._eventDefinitionType) {
var eventDefinitions = businessObject.get('eventDefinitions') || [],
newEventDefinition = this._moddle.create(attrs._eventDefinitionType);