Assembly: OptimaJet.Workflow.FormsPlugin

Class ExecuteFormResult

OptimaJet.Workflow.Plugins.FormsPlugin.ExecuteFormResult

Represents the response of a form execution operation.

public sealed class ExecuteFormResult : OneOfBase<ExecuteFormSuccess, ValidationError, SystemError>, IOneOf

Type Hierarchy

Properties

public ValidatedResultType ResultType { get; } #
The result type, i.e., success, validation error, or another error.
public bool IsSuccess { get; } #
True if form execution was successful.
public bool IsValidationError { get; } #
True if form execution failed due to a validation error.
public bool IsSystemError { get; } #
True if form execution failed due to an error other than a validation error.
public ExecuteFormSuccess AsSuccess { get; } #
Casts the form execution result as a success result.
public ValidationError AsValidationError { get; } #
Casts the form execution result as a validation error result.
public SystemError AsSystemError { get; } #
Casts the form execution result as a system error result.
public ExecuteFormSuccess? Success { get; } #
Returns the success result if it is successful; otherwise, returns null.
public SystemError? SystemError { get; } #
Returns the system error result if it is a system error; otherwise, returns null.
public ValidationError? ValidationError { get; } #
Returns the validation error result if it is a validation error; otherwise, returns null.

Methods

public static implicit operator ExecuteFormResult(SystemError systemError) #

Parameters

Name
Type
Description
systemError
SystemError

Returns

Type
Description
ExecuteFormResult
public static implicit operator ExecuteFormResult(ValidationError validationError) #

Parameters

Name
Type
Description
validationError
ValidationError

Returns

Type
Description
ExecuteFormResult
public static implicit operator ExecuteFormResult(ExecuteFormSuccess executeFormSuccess) #

Parameters

Name
Type
Description
executeFormSuccess
ExecuteFormSuccess

Returns

Type
Description
ExecuteFormResult
public static explicit operator ExecuteFormSuccess(ExecuteFormResult executeFormResult) #

Parameters

Name
Type
Description
executeFormResult
ExecuteFormResult

Returns

Type
Description
ExecuteFormSuccess
public static explicit operator ValidationError(ExecuteFormResult executeFormResult) #

Parameters

Name
Type
Description
executeFormResult
ExecuteFormResult

Returns

Type
Description
ValidationError
public static explicit operator SystemError(ExecuteFormResult executeFormResult) #

Parameters

Name
Type
Description
executeFormResult
ExecuteFormResult

Returns

Type
Description
SystemError