Class BuildStepResult
OptimaJet.Workflow.Core.Builder.BuildStepResult
Represents the result of a build step execution.
Namespace: OptimaJet.Workflow.Core.Builder
public sealed class BuildStepResultProperties
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
errorsList<String>The messages describing the failure.
Returns
Type
Description
BuildStepResultA failed BuildStepResult.
public static BuildStepResult Fail(string error) #Creates a failed build step result from a single error message.
Parameters
Name
Type
Description
errorStringThe message describing the failure.
Returns
Type
Description
BuildStepResultA failed BuildStepResult.
public static BuildStepResult Success(ProcessDefinition processDefinition) #Creates a successful build step result with the provided process definition.