Package org.jenkinsci.plugins.workflow.graph

Examples of org.jenkinsci.plugins.workflow.graph.FlowEndNode


    /*packgage*/ synchronized void onProgramEnd(Outcome outcome) {
        // end of the program
        // run till the end successfully FIXME: failure comes here, too
        // TODO: if program terminates with exception, we need to record it
        // TODO: in the error case, we have to close all the open nodes
        FlowNode head = new FlowEndNode(this, iotaStr(), (FlowStartNode)startNodes.pop(), result, getCurrentHeads().toArray(new FlowNode[0]));
        if (outcome.isFailure())
            head.addAction(new ErrorAction(outcome.getAbnormal()));

        // shrink everything into a single new head
        done = true;
        FlowHead first = getFirstHead();
        first.setNewHead(head);
View Full Code Here


        }
        pcs.clear();
        heads.clear();
        String endID = newID();
        heads.put(MAIN, endID);
        addingHead(new FlowEndNode(this, endID, /*TODO*/null, r, finals.toArray(new FlowNode[finals.size()])));
    }
View Full Code Here

TOP

Related Classes of org.jenkinsci.plugins.workflow.graph.FlowEndNode

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.