Assembly: OptimaJet.Workflow.Core

Class BuildStepResult

OptimaJet.Workflow.Core.Builder.BuildStepResult

Represents the result of a build step execution.

public sealed class BuildStepResult

Properties

public bool IsSuccess { get; } #
Gets a value indicating whether the build step completed successfully.
public ProcessDefinition ProcessDefinition { get; } #
Gets the BuildStepResult.ProcessDefinition produced by the build step.
public ReadOnlyCollection<string> Errors { get; } #
Gets validation or execution errors produced by the build step.

Methods

public static BuildStepResult Fail(List<string> errors) #
Creates a failed build step result from a list of errors.

Parameters

Name
Type
Description
errors
List<String>
The messages describing the failure.

Returns

Type
Description
BuildStepResult
A failed BuildStepResult.
public static BuildStepResult Fail(string error) #
Creates a failed build step result from a single error message.

Parameters

Name
Type
Description
error
String
The message describing the failure.

Returns

Type
Description
BuildStepResult
A failed BuildStepResult.
public static BuildStepResult Success(ProcessDefinition processDefinition) #
Creates a successful build step result with the provided process definition.

Parameters

Name
Type
Description
processDefinition
ProcessDefinition
The BuildStepResult.ProcessDefinition produced by the step.

Returns

Type
Description
BuildStepResult
A successful BuildStepResult.