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 |
---|---|---|
string | jobId | The job identifier. |
Returns
Type | Description |
---|---|
IEnumerable<WorkItemInfo> | Item information for the items part of the job. |
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 |
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 |
---|---|---|
string | jobId | The job identifier. |
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. |