Examples of ConnectionRef


Examples of org.jbpm.workflow.core.impl.ConnectionRef

        final Runnable r = new Runnable() {
            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();
View Full Code Here

Examples of org.jbpm.workflow.core.impl.ConnectionRef

            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");
View Full Code Here

Examples of org.jbpm.workflow.core.impl.ConnectionRef

        final Runnable r = new Runnable() {
            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();
View Full Code Here

Examples of org.jbpm.workflow.core.impl.ConnectionRef

    public void setPropertyValue(Object id, Object value) {
        if (CONSTRAINTS.equals(id)) {
            Iterator<Map.Entry<ConnectionRef, Constraint>> iterator = ((Map<ConnectionRef, Constraint>) value).entrySet().iterator();
            while (iterator.hasNext()) {
                Map.Entry<ConnectionRef, Constraint> element = iterator.next();
                ConnectionRef connectionRef = element.getKey();
                Connection outgoingConnection = null;
                for (Connection out: getStateNode().getOutgoingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE)) {
                    if (out.getToType().equals(connectionRef.getToType())
                        && out.getTo().getId() == connectionRef.getNodeId()) {
                        outgoingConnection = out;
                    }
                }
                if (outgoingConnection == null) {
                    throw new IllegalArgumentException("Could not find outgoing connection");
View Full Code Here

Examples of org.jbpm.workflow.core.impl.ConnectionRef

    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

Examples of org.jbpm.workflow.core.impl.ConnectionRef

   
    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);
View Full Code Here

Examples of org.jbpm.workflow.core.impl.ConnectionRef

    public void setPropertyValue(Object id, Object value) {
        if (CONSTRAINTS.equals(id)) {
            Iterator<Map.Entry<ConnectionRef, Constraint>> iterator = ((Map<ConnectionRef, Constraint>) value).entrySet().iterator();
            while (iterator.hasNext()) {
                Map.Entry<ConnectionRef, Constraint> element = iterator.next();
                ConnectionRef connectionRef = element.getKey();
                Connection outgoingConnection = null;
                for (Connection out: getStateNode().getOutgoingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE)) {
                    if (out.getToType().equals(connectionRef.getToType())
                        && out.getTo().getId() == connectionRef.getNodeId()) {
                        outgoingConnection = out;
                    }
                }
                if (outgoingConnection == null) {
                    throw new IllegalArgumentException("Could not find outgoing connection");
View Full Code Here

Examples of org.jbpm.workflow.core.impl.ConnectionRef

    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

Examples of org.jbpm.workflow.core.impl.ConnectionRef

   
    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);
View Full Code Here

Examples of org.jbpm.workflow.core.impl.ConnectionRef

            updateConnectionLabels();
        } else if (CONSTRAINTS.equals(id)) {
            Iterator<Map.Entry<ConnectionRef, Constraint>> iterator = ((Map<ConnectionRef, Constraint>) value).entrySet().iterator();
            while (iterator.hasNext()) {
                Map.Entry<ConnectionRef, Constraint> element = iterator.next();
                ConnectionRef connectionRef = element.getKey();
                Connection outgoingConnection = null;
                for (Connection out: getSplit().getDefaultOutgoingConnections()) {
                    if (out.getToType().equals(connectionRef.getToType())
                        && out.getTo().getId() == connectionRef.getNodeId()) {
                        outgoingConnection = out;
                    }
                }
                if (outgoingConnection == null) {
                    throw new IllegalArgumentException("Could not find outgoing connection");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.