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 SourceAddWorkToJob(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. |
GetJobItemInfo(String)
Gets the item information for all work items in the given job.
Declaration
IEnumerable<WorkItemInfo> GetJobItemInfo(string jobId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | jobId | The job identifier. |
Returns
| Type | Description |
|---|---|
| IEnumerable<WorkItemInfo> | Item information for the items part of the job. |
GetPartItemInfo(String, String, Boolean)
Gets the part item information.
Declaration
IEnumerable<WorkItemInfo> GetPartItemInfo(string jobId, string itemId, bool notCompletedOnly = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | jobId | The job identifier. |
| System.String | itemId | The item identifier. |
| System.Boolean | notCompletedOnly | if set to |
Returns
| Type | Description |
|---|---|
| IEnumerable<WorkItemInfo> | Item information for the items part of the work item. |
GetWorkItemInfo(String, String)
Gets the work item information.
Declaration
WorkItemInfo GetWorkItemInfo(string jobId, string itemId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | jobId | The job identifier. |
| System.String | itemId | The item identifier. |
Returns
| Type | Description |
|---|---|
| WorkItemInfo | Work item information. |
UpdateWorkItemStatus(WorkItemInfo)
Updates the work item status.
Declaration
void UpdateWorkItemStatus(WorkItemInfo workItemInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| WorkItemInfo | workItemInfo | The work item information. |
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. |