Class ExecuteFormResult
OptimaJet.Workflow.Plugins.FormsPlugin.ExecuteFormResult
Represents the response of a form execution operation.
Namespace: OptimaJet.Workflow.Plugins.FormsPlugin
public sealed class ExecuteFormResult : OneOfBase<ExecuteFormSuccess, ValidationError, SystemError>, IOneOfType Hierarchy
- OneOfBase<ExecuteFormSuccess, ValidationError, SystemError>
- ExecuteFormResult Current type
- Implemented interfaces
- ExecuteFormResult Current type
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
systemErrorSystemErrorReturns
Type
Description
ExecuteFormResultpublic static implicit operator ExecuteFormResult(ValidationError validationError) #Parameters
Name
Type
Description
validationErrorValidationErrorReturns
Type
Description
ExecuteFormResultpublic static implicit operator ExecuteFormResult(ExecuteFormSuccess executeFormSuccess) #Parameters
Name
Type
Description
executeFormSuccessExecuteFormSuccessReturns
Type
Description
ExecuteFormResultpublic static explicit operator ExecuteFormSuccess(ExecuteFormResult executeFormResult) #Parameters
Name
Type
Description
executeFormResultExecuteFormResultReturns
Type
Description
ExecuteFormSuccesspublic static explicit operator ValidationError(ExecuteFormResult executeFormResult) #Parameters
Name
Type
Description
executeFormResultExecuteFormResultReturns
Type
Description
ValidationErrorpublic static explicit operator SystemError(ExecuteFormResult executeFormResult) #Parameters
Name
Type
Description
executeFormResultExecuteFormResultReturns
Type
Description
SystemError