this.beginStep = beginStep;
this.stack = stack;
}
public NodeStepResult dispatch(final ExecutionContext context, final INodeEntry node) {
final ExecutionContextImpl newcontext = new ExecutionContextImpl.Builder(context)
.singleNodeContext(node, true)
.stepNumber(beginStep)
.stepContext(stack)
.build();
WorkflowExecutionResult result = executor.executeWorkflow(newcontext, workflowItem);