Package edu.indiana.extreme.xbaya.graph.ws

Examples of edu.indiana.extreme.xbaya.graph.ws.WorkflowNode


    /**
     * @see edu.indiana.extreme.xbaya.component.ws.WSComponent#createNode(edu.indiana.extreme.xbaya.graph.Graph)
     */
    @Override
    public WorkflowNode createNode(Graph graph) {
        WorkflowNode node = new WorkflowNode(graph);

        // Copy some infomation from the component

        node.setName(getName());
        node.setComponent(this);
        // node.setWSDLQName(this.wsdlQName);

        // Creates a unique ID for the node. This has to be after setName().
        node.createID();

        // Creat ports
        createPorts(node);

        return node;
View Full Code Here


        for (GraphCanvas graphCanvas : graphCanvases) {
            Graph graph = graphCanvas.getGraph();
            List<WorkflowNode> updatingNodes = new LinkedList<WorkflowNode>();
            for (Node node : graph.getNodes()) {
                if (node instanceof WorkflowNode) {
                    WorkflowNode workflowNode = (WorkflowNode) node;
                    WorkflowComponent workflowComponent = workflowNode
                            .getComponent();
                    URI templateID = workflowComponent.getTemplateID();
                    if (templateID.equals(newTemplateID)) {
                        updatingNodes.add(workflowNode);
                    }
                }
            }
            for (WorkflowNode node : updatingNodes) {
                Point position = node.getPosition();
                // TODO remember connections too
                graph.removeNode(node);

                WorkflowNode newNode = newComponent.createNode(graph);
                newNode.setPosition(position);
            }
        }
    }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.graph.ws.WorkflowNode

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.