use of org.kie.workbench.common.stunner.core.graph.command.impl.RegisterNodeCommand in project kie-wb-common by kiegroup.
the class CaseManagementAddChildNodeGraphCommand method initialize.
@Override
protected CaseManagementAddChildNodeGraphCommand initialize(final GraphCommandExecutionContext context) {
final Node parent = getParent(context);
final Node child = getCandidate();
this.addCommand(new RegisterNodeCommand(child));
this.addCommand(new CaseManagementSetChildNodeGraphCommand(parent, child, Optional.of(0), Optional.empty(), Optional.empty()));
return this;
}
Aggregations