Package org.jbpm.workflow.core.impl

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


    private static void updateSplitNode(SplitTransferNode splitTransferNode,
                                        Split splitNode) {
        for ( ConnectionRef connection : splitNode.getConstraints().keySet() ) {

            final ConnectionRef connectionRef = new ConnectionRef( connection.getNodeId(),
                                                                   connection.getToType() );

            SplitNode.ConnectionRef splitNodeConnectionRef = new SplitNode.ConnectionRef();
            splitNodeConnectionRef.setNodeId( connection.getNodeId() );
            splitNodeConnectionRef.setToType( connection.getToType() );
View Full Code Here

            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

        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

            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

        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

    private static void updateSplitNode(SplitTransferNode stn,
                                        Split splitNode) {
        for ( ConnectionRef connection : splitNode.getConstraints().keySet() ) {

            final ConnectionRef ref1 = new ConnectionRef( connection.getNodeId(),
                                                          connection.getToType() );

            SplitNode.ConnectionRef ref2 = new SplitNode.ConnectionRef();
            ref2.setNodeId( connection.getNodeId() );
            ref2.setToType( connection.getToType() );
View Full Code Here

    private static void updateSplitNode(SplitTransferNode stn,
                                        Split splitNode) {
        for ( ConnectionRef connection : splitNode.getConstraints().keySet() ) {

            final ConnectionRef ref1 = new ConnectionRef( connection.getNodeId(),
                                                          connection.getToType() );

            SplitNode.ConnectionRef ref2 = new SplitNode.ConnectionRef();
            ref2.setNodeId( connection.getNodeId() );
            ref2.setToType( connection.getToType() );
View Full Code Here

    private static void updateSplitNode(SplitTransferNode splitTransferNode,
                                        Split splitNode) {
        for ( ConnectionRef connection : splitNode.getConstraints().keySet() ) {

            final ConnectionRef connectionRef = new ConnectionRef( connection.getNodeId(),
                                                                   connection.getToType() );

            SplitNode.ConnectionRef splitNodeConnectionRef = new SplitNode.ConnectionRef();
            splitNodeConnectionRef.setNodeId( connection.getNodeId() );
            splitNodeConnectionRef.setToType( connection.getToType() );
View Full Code Here

TOP

Related Classes of org.jbpm.workflow.core.impl.ConnectionRef

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.