Class BulkTaskFinalizedEventArgs<TId, TResult>
OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskFinalizedEventArgs<TId, TResult>
Event arguments for the BulkAggregateTask<TId, TResult>.OnTaskFinalized event handler.
Namespace: OptimaJet.Workflow.Core.Runtime.Bulk
public class BulkTaskFinalizedEventArgs<TId, TResult> : EventArgsInheritance
- System.Object
- System.EventArgs
Constructors
public BulkTaskFinalizedEventArgs(Dictionary<TId, BulkTaskResult<TResult>> results, TId lastFinalizedTaskId) #Event arguments for the BulkAggregateTask<TId, TResult>.OnTaskFinalized event handler.
Parameters
Name
Type
Description
resultsDictionary<BulkTaskResult<TResult>>A dictionary containing intermediate results for the ongoing tasks. Initially, all values are set to BulkTaskResult<TResult>.Empty, but as the task progresses, the dictionary will be populated with the results and statuses of executed tasks. It's important to note that the dictionary does not update the result value when transitioning from the BulkTaskState.Created to BulkTaskState.Running state for performance reasons.
lastFinalizedTaskId{TId}The identifier of the last completed task.
Properties
Name
Type
Results #Dictionary<BulkTaskResult<TResult>>A dictionary containing intermediate results for the ongoing tasks. Initially, all values are set to BulkTaskResult<TResult>.Empty, but as the task progresses, the dictionary will be populated with the results and statuses of executed tasks. It's important to note that the dictionary does not update the result value when transitioning from the BulkTaskState.Created to BulkTaskState.Running state for performance reasons.
LastFinalizedTaskId #{TId}The identifier of the last finalized task.
LastFinalizedTaskResult #BulkTaskResult<TResult>The BulkTaskResult<TResult> of the last finalized task.
Count #Int32Gets the total number of tasks.
NotRanCount #Int32Gets the number of tasks with the status BulkTaskState.Created.
CompletedCount #Int32Gets the number of tasks with the status BulkTaskState.Completed.
FailedCount #Int32Gets the number of tasks with the status BulkTaskState.Failed.
FinalizedCount #Int32Gets the number of tasks with the status BulkTaskState.Completed or BulkTaskState.Failed.
Progress #Decimal