Package org.jenkinsci.plugins.workflow.graph

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


                    w.printf("%s -> %s%n",
                            p.getId(), n.getId());
                }

                if (n instanceof BlockStartNode) {
                    BlockStartNode sn = (BlockStartNode) n;
                    w.printf("%s [shape=trapezium]%n", n.getId());
                } else
                if (n instanceof BlockEndNode) {
                    BlockEndNode sn = (BlockEndNode) n;
                    w.printf("%s [shape=invtrapezium]%n", n.getId());
                    w.printf("%s -> %s [style=dotted]%n",
                            sn.getStartNode().getId(), n.getId());
                }

                w.printf("%s [label=\"%s: %s\"]%n", n.getId(), n.getId(), n.getDisplayName());
            }
View Full Code Here


                // TODO assert that context has gotten a return value
            }
        } catch (Exception x) {
            context.onFailure(x);
        }
        return new BlockStartNode(exec, nodeId, prior) {
            @Override protected String getTypeDisplayName() {
                return step.getDescriptor().getDisplayName();
            }
        };
    }
View Full Code Here

    @Override public void start() throws IOException {
        FlowStartNode start = new FlowStartNode(this, newID());
        heads.put(MAIN, start.getId());
        addingHead(start);
        // TODO factor this out into a general thread start function:
        BlockStartNode blockStart = new BlockStartNode(this, newID(), start) {
            @Override protected String getTypeDisplayName() {
                return "Thread start";
            }
        };
        heads.put(MAIN, blockStart.getId());
        addingHead(blockStart);
        LOGGER.fine("starting flow");
        if (states.isEmpty())  {
            // TODO is there a cleaner way of handling this?
            try {
View Full Code Here

TOP

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

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.