Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class BulkTaskFinalizedEventArgs<TId, TResult>

OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskFinalizedEventArgs<TId, TResult>

Provides event data for the BulkAggregateTask<TId, TResult>.OnTaskFinalized event.

public class BulkTaskFinalizedEventArgs<TId, TResult> : EventArgs

Inheritance

  • Object
  • EventArgs

Constructors

public BulkTaskFinalizedEventArgs(Dictionary<TId, BulkTaskResult<TResult>> results, TId lastFinalizedTaskId) #
Initializes a new instance of BulkTaskFinalizedEventArgs<TId, TResult>.

Parameters

Name
Type
Description
results
Dictionary<TId, BulkTaskResult<TResult>>
A dictionary containing intermediate results for all tasks being tracked.
lastFinalizedTaskId
{TId}
The identifier of the last completed task.

Properties

Name
Type
Results #
Dictionary<TId, BulkTaskResult<TResult>>
Gets the dictionary of task identifiers and their current BulkTaskResult<TResult> values.
LastFinalizedTaskId #
{TId}
The identifier of the last finalized task.
LastFinalizedTaskResult #
BulkTaskResult<TResult>
Count #
Int32
Gets the total number of tracked tasks.
NotRanCount #
Int32
Gets the number of tasks currently in the BulkTaskState.Created state.
CompletedCount #
Int32
Gets the number of tasks currently in the BulkTaskState.Completed state.
FailedCount #
Int32
Gets the number of tasks currently in the BulkTaskState.Failed state.
FinalizedCount #
Int32
Gets the number of tasks in the finalized states: BulkTaskState.Completed or BulkTaskState.Failed.
Progress #
Decimal
Gets the proportion of tasks with finalized results (BulkTaskFinalizedEventArgs<TId, TResult>.FinalizedCount) out of all tasks (BulkTaskFinalizedEventArgs<TId, TResult>.Count).