Package org.jbpm.ui.common.command

Examples of org.jbpm.ui.common.command.NodeCreateCommand


    @Override
    protected Command getCreateCommand(CreateRequest request) {
        Object newObject = request.getNewObject();
        if (newObject instanceof Node) {
            NodeCreateCommand createCommand = new NodeCreateCommand();
            createCommand.setNode((Node) newObject);
            createCommand.setParent((ProcessDefinition) getHost().getModel());
            Rectangle newRect = getClosestRectangle((Rectangle) getConstraintFor(request));
            createCommand.setConstraint(newRect);
            return createCommand;
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.jbpm.ui.common.command.NodeCreateCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.