Workflow Engine .NET

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

Inheritance

  • System.Object
  • OptimaJet.Workflow.Core.Utils.OneOf.OneOfBase{OptimaJet.Workflow.Plugins.FormsPlugin.ExecuteFormSuccess,OptimaJet.Workflow.Plugins.FormsPlugin.ValidationError,OptimaJet.Workflow.Plugins.FormsPlugin.SystemError}

Implemented Interfaces

Properties

Name
Type
ResultType #
ValidatedResultType
The result type, i.e., success, validation error, or another error.
IsSuccess #
Boolean
True if form execution was successful.
IsValidationError #
Boolean
True if form execution failed due to a validation error.
IsSystemError #
Boolean
True if form execution failed due to an error other than a validation error.
AsSuccess #
ExecuteFormSuccess
Casts the form execution result as a success result.
AsValidationError #
ValidationError
Casts the form execution result as a validation error result.
AsSystemError #
SystemError
Casts the form execution result as a system error result.
Success #
ExecuteFormSuccess
Returns the success result if it is successful; otherwise, returns null.
SystemError #
SystemError
Returns the system error result if it is a system error; otherwise, returns null.
ValidationError #
ValidationError
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