Package org.jbpm.ui.common.command

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


public class NodeGraphicalNodeEditPolicy extends GraphicalNodeEditPolicy {

    @Override
    protected Command getConnectionCompleteCommand(CreateConnectionRequest request) {
        Node node = getNode();
        TransitionCreateCommand command = (TransitionCreateCommand) request.getStartCommand();
        if (!node.canAddArrivingTransition(command.getSource())) {
            return null;
        }
        command.setTarget(node);
        return command;
    }
View Full Code Here


    protected Command getConnectionCreateCommand(CreateConnectionRequest request) {
        Node node = getNode();
        if (!node.canAddLeavingTransition(null)) {
            return null;
        }
        TransitionCreateCommand command = new TransitionCreateCommand();
        command.setSource(node);
        request.setStartCommand(command);
        return command;
    }
View Full Code Here

TOP

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

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.