fix(modeling/DropOnFlowBehavior): ensure label is created before executing
This commit is contained in:
parent
48490197a5
commit
ce361dabd7
|
@ -145,8 +145,7 @@ function DropOnFlow(eventBus, bpmnRules, modeling) {
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
this.postExecuted('shape.create', function(context) {
|
||||||
this.postExecute('shape.create', function(context) {
|
|
||||||
|
|
||||||
var shape = context.shape,
|
var shape = context.shape,
|
||||||
targetFlow = context.targetFlow,
|
targetFlow = context.targetFlow,
|
||||||
|
|
|
@ -47,7 +47,7 @@ function LabelSupport(eventBus, modeling, bpmnFactory) {
|
||||||
var element = context.shape || context.connection,
|
var element = context.shape || context.connection,
|
||||||
businessObject = element.businessObject;
|
businessObject = element.businessObject;
|
||||||
|
|
||||||
if (!hasExternalLabel(businessObject)) {
|
if (!hasExternalLabel(element)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue