Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class BulkTaskFinalizedEventArgs<TId, TResult>

Event arguments for the OptimaJet.Workflow.Core.Runtime.Bulk.BulkAggregateTask%602.OnTaskFinalized event handler.

Inheritance

↳ object

    ↳ EventArgs

        ↳ BulkTaskFinalizedEventArgs<TId, TResult>

Inherited Members

Empty

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Runtime.Bulk

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public class BulkTaskFinalizedEventArgs<TId, TResult> : EventArgs

Constructors

BulkTaskFinalizedEventArgs(Dictionary<TId, BulkTaskResult<TResult>>, TId)

Event arguments for the OptimaJet.Workflow.Core.Runtime.Bulk.BulkAggregateTask%602.OnTaskFinalized event handler.

Declaration
public BulkTaskFinalizedEventArgs(Dictionary<TId, BulkTaskResult<TResult>> results, TId lastFinalizedTaskId)
Parameters
TypeNameDescription
Dictionary<TId, BulkTaskResult<TResult>>resultsA dictionary containing intermediate results for the ongoing tasks. Initially, all values are set
to <xref href="OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult%601.Empty" data-throw-if-not-resolved="false"></xref>, 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 <xref href="OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskState.Created" data-throw-if-not-resolved="false"></xref>
to <xref href="OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskState.Running" data-throw-if-not-resolved="false"></xref> state for performance reasons.
{TId}lastFinalizedTaskIdThe identifier of the last completed task.

Properties

Results

A dictionary containing intermediate results for the ongoing tasks. Initially, all values are set to OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult%601.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.

Declaration
public Dictionary<TId, BulkTaskResult<TResult>> Results { get; }
Property value
TypeDescription
Dictionary<TId, BulkTaskResult<TResult>>

LastFinalizedTaskId

The identifier of the last finalized task.

Declaration
public TId LastFinalizedTaskId { get; }
Property value
TypeDescription
{TId}

LastFinalizedTaskResult

The OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult%601 of the last finalized task.

Declaration
public BulkTaskResult<TResult> LastFinalizedTaskResult { get; }
Property value
TypeDescription
BulkTaskResult<<TResult>>

Count

Gets the total number of tasks.

Declaration
public int Count { get; }
Property value
TypeDescription
int

NotRanCount

Gets the number of tasks with the status BulkTaskState.Created.

Declaration
public int NotRanCount { get; }
Property value
TypeDescription
int

CompletedCount

Gets the number of tasks with the status BulkTaskState.Completed.

Declaration
public int CompletedCount { get; }
Property value
TypeDescription
int

FailedCount

Gets the number of tasks with the status BulkTaskState.Failed.

Declaration
public int FailedCount { get; }
Property value
TypeDescription
int

FinalizedCount

Gets the number of tasks with the status BulkTaskState.Completed or BulkTaskState.Failed.

Declaration
public int FinalizedCount { get; }
Property value
TypeDescription
int

Progress

Gets the ratio of OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskFinalizedEventArgs%602.FinalizedCount to OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskFinalizedEventArgs%602.Count.

Declaration
public decimal Progress { get; }
Property value
TypeDescription
decimal

Extension Methods