Assembly: OptimaJet.Workflow.FormsPlugin

Class GetExecutableFormsResult

OptimaJet.Workflow.Plugins.FormsPlugin.GetExecutableFormsResult

Represents the response of a get executable forms operation.

public sealed class GetExecutableFormsResult : OneOfBase<GetExecutableFormsSuccess, SystemError>, IOneOf

Type Hierarchy

Properties

public ResultType ResultType { get; } #
The result type, i.e., success, or error.
public bool IsSuccess { get; } #
True if the operation was successful.
public bool IsSystemError { get; } #
True if the operation failed due to an error.
public GetExecutableFormsSuccess AsSuccess { get; } #
Casts the operation result as a success result.
public SystemError AsSystemError { get; } #
Casts the operation result as an error result.
public GetExecutableFormsSuccess? Success { get; } #
Returns the success result if it is successful; otherwise, returns null.
public SystemError? SystemError { get; } #
Returns the error result if the operation is not successful; otherwise, returns null.

Methods

public static implicit operator GetExecutableFormsResult(SystemError systemError) #

Parameters

Name
Type
Description
systemError
SystemError

Returns

Type
Description
GetExecutableFormsResult
public static implicit operator GetExecutableFormsResult(GetExecutableFormsSuccess getExecutableFormsSuccess) #

Parameters

Name
Type
Description
getExecutableFormsSuccess
GetExecutableFormsSuccess

Returns

Type
Description
GetExecutableFormsResult
public static explicit operator GetExecutableFormsSuccess(GetExecutableFormsResult getExecutableFormsResult) #

Parameters

Name
Type
Description
getExecutableFormsResult
GetExecutableFormsResult

Returns

Type
Description
GetExecutableFormsSuccess
public static explicit operator SystemError(GetExecutableFormsResult getExecutableFormsResult) #

Parameters

Name
Type
Description
getExecutableFormsResult
GetExecutableFormsResult

Returns

Type
Description
SystemError