Package com.dtolabs.rundeck.core.execution.workflow.steps.node

Examples of com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepResultImpl


                    nodeNames.remove(node.getNodename());
                }
            } catch (NodeStepException e) {
                success = false;
                failures.put(node.getNodename(),
                             new NodeStepResultImpl(e, e.getFailureReason(), e.getMessage(), node)
                );
                context.getExecutionListener().log(Constants.ERR_LEVEL,
                                                   "Failed dispatching to node " + node.getNodename() + ": "
                                                   + e.getMessage());
View Full Code Here


                    failureMap.put(node.getNodename(), interpreterResult);
                }
                resultMap.put(node.getNodename(), interpreterResult);
                return interpreterResult;
            } catch (NodeStepException e) {
                NodeStepResultImpl result = new NodeStepResultImpl(e,
                                                                   e.getFailureReason(),
                                                                   e.getMessage(),
                                                                   node);
                failureMap.put(node.getNodename(), result);
                return result;
View Full Code Here

    static protected NodeStepResult nodeStepResultFromNodeStepException(
            final INodeEntry node,
            final NodeStepException nodeStepException
    )
    {
        return new NodeStepResultImpl(
            nodeStepException.getCause(),
            nodeStepException.getFailureReason(),
            nodeStepException.getMessage(),
            node
        );
View Full Code Here

                .singleNodeContext(node, true)
                .stepNumber(beginStep)
                .stepContext(stack)
                .build();
            WorkflowExecutionResult result = executor.executeWorkflow(newcontext, workflowItem);
            NodeStepResultImpl result1;
            if (result.isSuccess()) {
                result1 = new NodeStepResultImpl(node);
            } else {
                result1 = new NodeStepResultImpl(result.getException(),
                        Reason.WorkflowSequenceFailures,
                        null == result.getException() ? "Sequence failed" : "Exception: " + result.getException()
                                .getClass() + ": " + result.getException().getMessage(),
                        node);
            }
            result1.setSourceResult(result);
            return result1;
        }
View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepResultImpl

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.