Class WorkItemStatusEntity
Class containing info about one row from TaskStatusTable.
Inherited Members
Namespace: DNVGL.One.Compute.StorageLibrary.Entities
Assembly: DNVGL.One.Compute.StorageLibrary.dll
Syntax
public class WorkItemStatusEntity : ICloneable, IWorkItemStatusEntity
Constructors
View SourceWorkItemStatusEntity()
Initializes a new instance of the WorkItemStatusEntity class.
Declaration
public WorkItemStatusEntity()
WorkItemStatusEntity(WorkItemInfo)
Initializes a new instance of the WorkItemStatusEntity class.
Declaration
public WorkItemStatusEntity(WorkItemInfo workItemInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| WorkItemInfo | workItemInfo | The work item information. |
WorkItemStatusEntity(string, string, int, double, string, string)
Initializes a new instance of the WorkItemStatusEntity class.
Declaration
public WorkItemStatusEntity(string jobId, string taskId, int state, double progress, string message, string groupId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | jobId | The job id. |
| string | taskId | The task id. |
| int | state | The state. |
| double | progress | The progress. |
| string | message | The message. |
| string | groupId | Id of the task group. |
Properties
View SourceJobId
Gets or sets job identifier.
Declaration
public string JobId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Message
Gets or sets Message.
Declaration
public string Message { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ParentId
Gets or sets the parent identifier.
Declaration
public string ParentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The parent task identifier. |
Progress
Gets or sets progress.
Declaration
public double Progress { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Remarks
Progress is defined as a fraction of 1, where 0 = no progress and 1 = complete.
State
Gets or sets State.
Declaration
public int State { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
TaskDuration
Gets or sets the task duration (milliseconds).
Declaration
public long TaskDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| long | The task duration (milliseconds). |
TaskId
Gets or sets task identifier.
Declaration
public string TaskId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceClone()
Returns memberwise clone.
Declaration
public virtual object Clone()
Returns
| Type | Description |
|---|---|
| object | Cloned object. |
UpdateState(WorkStatus)
Sets state.
Declaration
public void UpdateState(WorkStatus state)
Parameters
| Type | Name | Description |
|---|---|---|
| WorkStatus | state | State of the work item. |