Class FlowModelObject
Base class for flow model objects.
Inherited Members
Namespace: DNVGL.One.Compute.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
[DataContract]
public abstract class FlowModelObject
Constructors
View SourceFlowModelObject()
Initializes a new instance of the FlowModelObject class.
Declaration
protected FlowModelObject()
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 SourceBatchNumber
Gets or sets the batch number.
Declaration
[DataMember]
public int BatchNumber { get; set; }
Property Value
Type | Description |
---|---|
int | The batch number. |
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. |
Properties
Gets the properties.
Declaration
public IPropertyContainer Properties { get; }
Property Value
Type | Description |
---|---|
IPropertyContainer | The properties. |
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 SourceUpdateProperties(FlowModelObject)
Updates the properties.
Declaration
protected void UpdateProperties(FlowModelObject flowModelObject)
Parameters
Type | Name | Description |
---|---|---|
FlowModelObject | flowModelObject |
UpdateProperties(string)
Updates the properties.
Declaration
protected void UpdateProperties(string json)
Parameters
Type | Name | Description |
---|---|---|
string | json | The json. |