Show / Hide Table of Contents

Interface IWorkItemStatusService

Service interface for task status info and logging.

Namespace: DNVGL.One.Compute.Core.JobStatus
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IWorkItemStatusService

Methods

View Source

AddWorkToJob(Job, WorkItem)

Add work item records for the work and its children.

Declaration
void AddWorkToJob(Job job, WorkItem work)
Parameters
Type Name Description
Job job

The job.

WorkItem work

The work item.

View Source

GetJobItemInfo(string)

Gets the item information for all work items in the given job.

Declaration
IEnumerable<WorkItemInfo> GetJobItemInfo(string jobId)
Parameters
Type Name Description
string jobId

The job identifier.

Returns
Type Description
IEnumerable<WorkItemInfo>

Item information for the items part of the job.

View Source

GetPartItemInfo(string, string, bool)

Gets the part item information.

Declaration
IEnumerable<WorkItemInfo> GetPartItemInfo(string jobId, string itemId, bool notCompletedOnly = true)
Parameters
Type Name Description
string jobId

The job identifier.

string itemId

The item identifier.

bool notCompletedOnly

if set to true [not completed only].

Returns
Type Description
IEnumerable<WorkItemInfo>

Item information for the items part of the work item.

View Source

GetWorkItemInfo(string, string)

Gets the work item information.

Declaration
WorkItemInfo GetWorkItemInfo(string jobId, string itemId)
Parameters
Type Name Description
string jobId

The job identifier.

string itemId

The item identifier.

Returns
Type Description
WorkItemInfo

Work item information.

View Source

UpdateWorkItemStatus(WorkItemInfo)

Updates the work item status.

Declaration
void UpdateWorkItemStatus(WorkItemInfo workItemInfo)
Parameters
Type Name Description
WorkItemInfo workItemInfo

The work item information.

View Source

UpdateWorkItemStatus(IEnumerable<WorkItemInfo>)

Batch update of the work item status for the given work items.

Declaration
void UpdateWorkItemStatus(IEnumerable<WorkItemInfo> workItemInfos)
Parameters
Type Name Description
IEnumerable<WorkItemInfo> workItemInfos

The work item info.

Extension Methods

WorkItemStatusServiceExtensions.AggregateJobDuration(IWorkItemStatusService, string)
WorkItemStatusServiceExtensions.UpdateWorkItemStatus(IWorkItemStatusService, string, string, string, WorkStatus, double, string)
  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.