Skip to content

Commit

Permalink
fixed counter
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Oct 22, 2022
1 parent 2008803 commit 269a8a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void executeOperation(final CreateNodeOperation operation) {
@Override
public String getLabel() {
int nodeCounter = GModelUtil.generateId(BpmnPackage.Literals.EVENT_GNODE, elementTypeId, modelState);
return "Event-" + nodeCounter;
return "Event-" + (nodeCounter + 1);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected void executeOperation(final CreateNodeOperation operation) {
@Override
public String getLabel() {
int nodeCounter = GModelUtil.generateId(BpmnPackage.Literals.TASK_GNODE, elementTypeId, modelState);
return "Task-" + nodeCounter;
return "Task-" + (nodeCounter + 1);
}

}

0 comments on commit 269a8a3

Please sign in to comment.