Workflow Engine .NET

Assembly: OptimaJet.Workflow.FormsPlugin

Class GetProcessFormResult

OptimaJet.Workflow.Plugins.FormsPlugin.GetProcessFormResult

Represents the result of an attempt to retrieve a form.

public sealed class GetProcessFormResult : OneOfBase<GetProcessFormSuccess, SystemError>, IOneOf

Inheritance

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

Implemented Interfaces

Properties

Name
Type
ResultType #
ResultType
The result type, i.e., success, or error.
IsSuccess #
Boolean
True if the operation was successful.
IsSystemError #
Boolean
True if the operation failed due to an error.
AsSuccess #
GetProcessFormSuccess
Casts the operation result as a success result.
AsSystemError #
SystemError
Casts the operation result as an error result.
Success #
GetProcessFormSuccess
Returns the success result if it is successful; otherwise, returns null.
SystemError #
SystemError
Returns the error result if the operation is not successful; otherwise, returns null.

Methods

public static implicit operator GetProcessFormResult(SystemError systemError) #

Parameters

Name
Type
Description
systemError
SystemError

Returns

Type
Description
GetProcessFormResult
public static implicit operator GetProcessFormResult(GetProcessFormSuccess getProcessFormSuccess) #

Parameters

Name
Type
Description
getProcessFormSuccess
GetProcessFormSuccess

Returns

Type
Description
GetProcessFormResult
public static explicit operator GetProcessFormSuccess(GetProcessFormResult getProcessFormResult) #

Parameters

Name
Type
Description
getProcessFormResult
GetProcessFormResult

Returns

Type
Description
GetProcessFormSuccess
public static explicit operator SystemError(GetProcessFormResult getProcessFormResult) #

Parameters

Name
Type
Description
getProcessFormResult
GetProcessFormResult

Returns

Type
Description
SystemError