Class FlowModelItemEntity
Represents one work item input/result entity for persistence during a run.
Implements
Inherited Members
Namespace: DNVGL.One.Compute.StorageLibrary.Entities
Assembly: DNVGL.One.Compute.StorageLibrary.dll
Syntax
public class FlowModelItemEntity : ICloneable
Constructors
View SourceFlowModelItemEntity()
Initializes a new instance of the FlowModelItemEntity class.
Declaration
public FlowModelItemEntity()
FlowModelItemEntity(IFlowModelItem)
Initializes a new instance of the FlowModelItemEntity class.
Declaration
public FlowModelItemEntity(IFlowModelItem workItem)
Parameters
Type | Name | Description |
---|---|---|
IFlowModelItem | workItem | The work item. |
Properties
View SourceBatchNumber
Gets or sets the batch number.
Declaration
public int BatchNumber { get; set; }
Property Value
Type | Description |
---|---|
int | The batch number. |
Remarks
The batch number is used by the scheduler for grouping batches of items for execution by the same worker.
JobId
Gets or sets the Job identifier.
Declaration
public string JobId { get; set; }
Property Value
Type | Description |
---|---|
string | Gets or sets the job identifier. |
ParentId
Gets or sets the parent id.
Declaration
public string ParentId { get; set; }
Property Value
Type | Description |
---|---|
string | The parent task id. |
Tag
Gets or sets the tag.
Declaration
public string Tag { get; set; }
Property Value
Type | Description |
---|---|
string | The tag. |
Remarks
This is a client specified tag that does not need to be unique. It is used as a recognizable prefix for the job identifier.
WorkItemContent
Gets or sets the content of the work item.
Declaration
public byte[] WorkItemContent { get; set; }
Property Value
Type | Description |
---|---|
byte[] | The content of the work item. |
WorkItemId
Gets or sets the task identifier.
Declaration
public string WorkItemId { get; set; }
Property Value
Type | Description |
---|---|
string | The work item identifier. |
Methods
View SourceClone()
Returns memberwise clone.
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
object | Cloned object. |
ExtractWorkItemContentAsJson()
Gets the work item content.
Declaration
public string ExtractWorkItemContentAsJson()
Returns
Type | Description |
---|---|
string | Work item as JSON. |