Package org.jbpm.workflow.core

Examples of org.jbpm.workflow.core.Constraint


    }
   
    private void updateConnectionLabel(ElementConnection connection) {
        ConnectionWrapper connectionWrapper = (ConnectionWrapper) connection;
        String label = null;
        Constraint constraint = getSplit().internalGetConstraint(
            new ConnectionRef(connectionWrapper.getConnection().getTo().getId(),
                connectionWrapper.getConnection().getToType()));
        if (constraint != null) {
            label = constraint.getName();
        }
        connectionWrapper.getConnection().setMetaData("label", label);
        connectionWrapper.notifyListeners(ElementConnection.CHANGE_LABEL);
    }
View Full Code Here


            labels.put(outgoingConnection, label2);
            GridData gridData = new GridData();
            gridData.grabExcessHorizontalSpace = true;
            gridData.horizontalAlignment = GridData.FILL;
            label2.setLayoutData(gridData);
            Constraint constraint = newMap.get(
                new ConnectionRef(outgoingConnection.getTo().getId(), outgoingConnection.getToType()));
            if (constraint != null) {
                label2.setText(constraint.getName());
            }
            Button editButton = new Button(composite, SWT.NONE);
            editButton.setText("Edit");
            editButton.addSelectionListener(new EditButtonListener(
                    outgoingConnection));
View Full Code Here

            public void run() {
                RuleFlowConstraintDialog dialog = new RuleFlowConstraintDialog(
                        getShell(), process);
                dialog.create();
                ConnectionRef connectionRef = new ConnectionRef(connection.getTo().getId(), connection.getToType());
                Constraint constraint = newMap.get(connectionRef);
                dialog.setConstraint(constraint);
                dialog.fixType(0);
                dialog.fixDialect(0);
                int code = dialog.open();
                if (code != CANCEL) {
                    constraint = dialog.getConstraint();
                    newMap.put(
                        connectionRef,
                        constraint);
                    setConnectionText(
                        (Label) labels.get(connection), constraint.getName());
                }
            }

        };
        r.run();
View Full Code Here

            labels.put(outgoingConnection, label2);
            GridData gridData = new GridData();
            gridData.grabExcessHorizontalSpace = true;
            gridData.horizontalAlignment = GridData.FILL;
            label2.setLayoutData(gridData);
            Constraint constraint = newMap.get(
                new ConnectionRef(outgoingConnection.getTo().getId(), outgoingConnection.getToType()));
            if (constraint != null) {
                label2.setText(constraint.getName());
            }
            Button editButton = new Button(composite, SWT.NONE);
            editButton.setText("Edit");
            editButton.addSelectionListener(new EditButtonListener(
                    outgoingConnection));
View Full Code Here

            public void run() {
                RuleFlowConstraintDialog dialog = new RuleFlowConstraintDialog(
                        getShell(), process);
                dialog.create();
                ConnectionRef connectionRef = new ConnectionRef(connection.getTo().getId(), connection.getToType());
                Constraint constraint = newMap.get(connectionRef);
                dialog.setConstraint(constraint);
                int code = dialog.open();
                if (code != CANCEL) {
                    constraint = dialog.getConstraint();
                    newMap.put(
                        connectionRef,
                        constraint);
                    setConnectionText(
                        (Label) labels.get(connection), constraint.getName());
                }
            }

        };
        r.run();
View Full Code Here

    public void setNode(Node node) {
        super.setNode(node);
        for (Connection connection: getStateNode().getOutgoingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE)) {
            String label = null;
            Constraint constraint = getStateNode().getConstraint(connection);
            if (constraint != null) {
                label = constraint.getName();
            }
            ((org.jbpm.workflow.core.Connection) connection).setMetaData("label", label);
        }
    }
View Full Code Here

    }
   
    private void updateConnectionLabel(ElementConnection connection) {
        ConnectionWrapper connectionWrapper = (ConnectionWrapper) connection;
        String label = null;
        Constraint constraint = getStateNode().getConstraint(
            connectionWrapper.getConnection());
        if (constraint != null) {
            label = constraint.getName();
        }
        connectionWrapper.getConnection().setMetaData("label", label);
        connectionWrapper.notifyListeners(ElementConnection.CHANGE_LABEL);
    }
View Full Code Here

   
    public void setNode(Node node) {
        super.setNode(node);
        for (Connection connection: getSplit().getDefaultOutgoingConnections()) {
            String label = null;
            Constraint constraint = getSplit().internalGetConstraint(
                new ConnectionRef(connection.getTo().getId(), connection.getToType()));
            if (constraint != null) {
                label = constraint.getName();
            }
            ((org.jbpm.workflow.core.Connection) connection).setMetaData("label", label);
        }
    }
View Full Code Here

    }
   
    private void updateConnectionLabel(ElementConnection connection) {
        ConnectionWrapper connectionWrapper = (ConnectionWrapper) connection;
        String label = null;
        Constraint constraint = getSplit().internalGetConstraint(
            new ConnectionRef(connectionWrapper.getConnection().getTo().getId(),
                connectionWrapper.getConnection().getToType()));
        if (constraint != null) {
            label = constraint.getName();
        }
        connectionWrapper.getConnection().setMetaData("label", label);
        connectionWrapper.notifyListeners(ElementConnection.CHANGE_LABEL);
    }
View Full Code Here

        StartNode start = process.getStart();
        Node target = start.getTo().getTo();
        if ( target instanceof Split ) {
            Split split = (Split) target;
            for ( Connection connection : split.getDefaultOutgoingConnections() ) {
                Constraint constraint = split.getConstraint( connection );
                if ( constraint != null ) {
                    System.out.println( "Found constraint to node " + connection.getTo().getName() + " [" + connection.getTo().getId() + "]: " + constraint.getConstraint() );
                    result.put( XmlBPMNProcessDumper.getUniqueNodeId( connection.getTo() ),
                                new String[]{connection.getTo().getName(), constraint.getConstraint()} );
                }
            }
        }

        if ( isr != null ) {
View Full Code Here

TOP

Related Classes of org.jbpm.workflow.core.Constraint

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.