Show / Hide Table of Contents

Class FlowModelObject

Base class for flow model objects.

Inheritance
object
FlowModelObject
Job
WorkItem
JobProperties
WorkItemProperties
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.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
[DataContract]
public abstract class FlowModelObject

Constructors

View Source

FlowModelObject()

Initializes a new instance of the FlowModelObject class.

Declaration
protected FlowModelObject()
View Source

FlowModelObject(JObject)

Initializes a new instance of the FlowModelObject class.

Declaration
protected FlowModelObject(JObject properties)
Parameters
Type Name Description
JObject properties

The properties.

Properties

View Source

BatchNumber

Gets or sets the batch number.

Declaration
[DataMember]
public int BatchNumber { get; set; }
Property Value
Type Description
int

The batch number.

View Source

this[string]

Gets or sets the specified property.

Declaration
public string this[string property] { get; set; }
Parameters
Type Name Description
string property

The property.

Property Value
Type Description
string

The property value.

View Source

Properties

Gets the properties.

Declaration
public IPropertyContainer Properties { get; }
Property Value
Type Description
IPropertyContainer

The properties.

View Source

PropertiesContent

Gets or sets the content of the work item.

Declaration
public byte[] PropertiesContent { get; set; }
Property Value
Type Description
byte[]

The content of the work item.

Remarks

This is not (and should not be) a [DataMember], and will therefore not be serialized to JSON, because when serialized as JSON, the properties are transferred by serializing Properties. This member is used to support using this class as an entity when storing to tables.

Methods

View Source

UpdateProperties(FlowModelObject)

Updates the properties.

Declaration
protected void UpdateProperties(FlowModelObject flowModelObject)
Parameters
Type Name Description
FlowModelObject flowModelObject

A FlowModelObject.

View Source

UpdateProperties(string)

Updates the properties.

Declaration
protected void UpdateProperties(string json)
Parameters
Type Name Description
string json

The json.

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