.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;
}