Show / Hide Table of Contents

Class FlowModelItemEntity

Represents one work item input/result entity for persistence during a run.

Inheritance
object
FlowModelItemEntity
SQLiteStorageResultsItemEntity
SQLiteStorageWorkItemEntity
Implements
ICloneable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DNVGL.One.Compute.StorageLibrary.Entities
Assembly: DNVGL.One.Compute.StorageLibrary.dll
Syntax
public class FlowModelItemEntity : ICloneable

Constructors

View Source

FlowModelItemEntity()

Initializes a new instance of the FlowModelItemEntity class.

Declaration
public FlowModelItemEntity()
View Source

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 Source

BatchNumber

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.

View Source

JobId

Gets or sets the Job identifier.

Declaration
public string JobId { get; set; }
Property Value
Type Description
string

Gets or sets the job identifier.

View Source

ParentId

Gets or sets the parent id.

Declaration
public string ParentId { get; set; }
Property Value
Type Description
string

The parent task id.

View Source

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.

View Source

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.

View Source

WorkItemId

Gets or sets the task identifier.

Declaration
public string WorkItemId { get; set; }
Property Value
Type Description
string

The work item identifier.

Methods

View Source

Clone()

Returns memberwise clone.

Declaration
public virtual object Clone()
Returns
Type Description
object

Cloned object.

View Source

ExtractWorkItemContentAsJson()

Gets the work item content.

Declaration
public string ExtractWorkItemContentAsJson()
Returns
Type Description
string

Work item as JSON.

Implements

ICloneable
  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.