chore(modeling/behavior): cleanup code
This commit is contained in:
parent
cc142d8fd5
commit
cc2cf3f561
|
@ -18,13 +18,13 @@ function CreateDataObjectBehavior(eventBus, bpmnFactory, moddle) {
|
||||||
var context = event.context,
|
var context = event.context,
|
||||||
shape = context.shape;
|
shape = context.shape;
|
||||||
|
|
||||||
if(is(shape, 'bpmn:DataObjectReference') && shape.type !== 'label') {
|
if (is(shape, 'bpmn:DataObjectReference') && shape.type !== 'label') {
|
||||||
|
|
||||||
// create a DataObject every time a DataObjectReference is created
|
// create a DataObject every time a DataObjectReference is created
|
||||||
var dataObjectShape = bpmnFactory.create('bpmn:DataObject');
|
var dataObject = bpmnFactory.create('bpmn:DataObject');
|
||||||
|
|
||||||
// set the reference to the DataObject
|
// set the reference to the DataObject
|
||||||
shape.businessObject.dataObjectRef = dataObjectShape;
|
shape.businessObject.dataObjectRef = dataObject;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue