fix(modeling/DropOnFlowBehavior): ensure label is created before executing

This commit is contained in:
Nico Rehwaldt 2017-12-10 00:32:11 +01:00 committed by Philipp Fromme
parent 48490197a5
commit ce361dabd7
2 changed files with 2 additions and 3 deletions

View File

@ -145,8 +145,7 @@ function DropOnFlow(eventBus, bpmnRules, modeling) {
}
}, true);
this.postExecute('shape.create', function(context) {
this.postExecuted('shape.create', function(context) {
var shape = context.shape,
targetFlow = context.targetFlow,

View File

@ -47,7 +47,7 @@ function LabelSupport(eventBus, modeling, bpmnFactory) {
var element = context.shape || context.connection,
businessObject = element.businessObject;
if (!hasExternalLabel(businessObject)) {
if (!hasExternalLabel(element)) {
return;
}