Class GetExecutableFormsResult
OptimaJet.Workflow.Plugins.FormsPlugin.GetExecutableFormsResult
Represents the response of a get executable forms operation.
Namespace: OptimaJet.Workflow.Plugins.FormsPlugin
public sealed class GetExecutableFormsResult : OneOfBase<GetExecutableFormsSuccess, SystemError>, IOneOfType Hierarchy
- OneOfBase<GetExecutableFormsSuccess, SystemError>
- GetExecutableFormsResult Current type
- Implemented interfaces
- GetExecutableFormsResult Current type
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
systemErrorSystemErrorReturns
Type
Description
GetExecutableFormsResultpublic static implicit operator GetExecutableFormsResult(GetExecutableFormsSuccess getExecutableFormsSuccess) #Parameters
Name
Type
Description
getExecutableFormsSuccessGetExecutableFormsSuccessReturns
Type
Description
GetExecutableFormsResultpublic static explicit operator GetExecutableFormsSuccess(GetExecutableFormsResult getExecutableFormsResult) #Parameters
Name
Type
Description
getExecutableFormsResultGetExecutableFormsResultReturns
Type
Description
GetExecutableFormsSuccesspublic static explicit operator SystemError(GetExecutableFormsResult getExecutableFormsResult) #Parameters
Name
Type
Description
getExecutableFormsResultGetExecutableFormsResultReturns
Type
Description
SystemError