Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class BulkTaskResult<TResult>

OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult<TResult>

A record that stores details about the result of task execution. For tasks that have not completed yet, BulkTaskResult<TResult>.Empty is used.

public record BulkTaskResult<TResult> : IEquatable<BulkTaskResult<TResult>>

Inheritance

  • System.Object

Implemented Interfaces

  • System.IEquatable{OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult`1}

Constructors

public BulkTaskResult(BulkTaskState State, TResult? Result = default, Exception? Exception = null, DateTimeOffset? StartedAt = null, DateTimeOffset? FinalizedAt = null) #
A record that stores details about the result of task execution. For tasks that have not completed yet, BulkTaskResult<TResult>.Empty is used.

Parameters

Name
Type
Description
State
BulkTaskState
The state of the task.
Result
{TResult}
If the task has completed with the status BulkTaskState.Completed, the result will be stored here; otherwise, it will be null.
Exception
Exception
If the task has completed with the status BulkTaskState.Failed, the exception will be stored here; otherwise, it will be null.
StartedAt
Nullable<DateTimeOffset>
The time recorded immediately after changing the task status to BulkTaskState.Running and before the start of the task execution.
FinalizedAt
Nullable<DateTimeOffset>
The time recorded before generating and returning the result of the task execution, after changing the state to BulkTaskState.Completed or BulkTaskState.Failed.

Properties

Name
Type
State #
BulkTaskState
The state of the task.
Result #
{TResult}
If the task has completed with the status BulkTaskState.Completed, the result will be stored here; otherwise, it will be null.
Exception #
Exception
If the task has completed with the status BulkTaskState.Failed, the exception will be stored here; otherwise, it will be null.
StartedAt #
Nullable<DateTimeOffset>
The time recorded immediately after changing the task status to BulkTaskState.Running and before the start of the task execution.
FinalizedAt #
Nullable<DateTimeOffset>
The time recorded before generating and returning the result of the task execution, after changing the state to BulkTaskState.Completed or BulkTaskState.Failed.
Empty #
BulkTaskResult<TResult>
The result used for an incomplete task.
Duration #
Nullable<TimeSpan>
The duration of task execution.