Package edu.indiana.extreme.xbaya.component.ws

Examples of edu.indiana.extreme.xbaya.component.ws.WorkflowComponent


                .getComponent(Adder.WSDL_PATH);
        Node adder = workflow.addNode(adderComp);
        adder.setPosition(new Point(200, 100));

        // Sub workflow
        WorkflowComponent subWorkflowComponent = this.gpelComponentRegistry
                .getComponent(subWorkflowID);
        Node subWorkflow = workflow.addNode(subWorkflowComponent);
        subWorkflow.setPosition(new Point(350, 150));

        // Output
View Full Code Here


    public WorkflowComponent getComponent(URI workflowID)
            throws ComponentRegistryException, ComponentException {

        try {
            Workflow workflow = this.workflowClient.load(workflowID, this.type);
            return new WorkflowComponent(workflow);
        } catch (WorkflowEngineException e) {
            throw new ComponentRegistryException(e);
        } catch (GraphException e) {
            throw new ComponentException(e);
        } catch (RuntimeException e) {
View Full Code Here

     * @throws GraphException
     */
    public void update(Workflow workflow) throws ComponentException,
            GraphException {

        WorkflowComponent newComponent = new WorkflowComponent(workflow);
        URI newTemplateID = newComponent.getTemplateID();

        List<GraphCanvas> graphCanvases = this.engine.getGUI()
                .getGraphCanvases();
        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);
                    }
                }
            }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.component.ws.WorkflowComponent

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.