Class WorkItemProperties
Contains application properties for work items.
Implements
Inherited Members
Namespace: DNVGL.One.Compute.Core.JobProperties
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public class WorkItemProperties : FlowModelObject, IFlowModelItem
Constructors
View SourceWorkItemProperties()
Initializes a new instance of the WorkItemProperties class.
Declaration
public WorkItemProperties()
WorkItemProperties(WorkItem)
Initializes a new instance of the WorkItemProperties class.
Declaration
public WorkItemProperties(WorkItem workItem)
Parameters
Type | Name | Description |
---|---|---|
WorkItem | workItem | The work item. |
Properties
View SourceId
Gets the item identifier.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | The identifier. |
JobId
Gets the job identifier.
Declaration
public string JobId { get; set; }
Property Value
Type | Description |
---|---|
System.String | The job identifier. |
ParentId
Gets the parent identifier.
Declaration
public string ParentId { get; set; }
Property Value
Type | Description |
---|---|
System.String | The parent identifier. |
ResultStorageType
Gets or sets the type of storage results from the work item is stored to.
Declaration
public ResultStorageTypes ResultStorageType { get; set; }
Property Value
Type | Description |
---|---|
ResultStorageTypes | The type of storage the results are stored to. |
Remarks
An attempt is made to infer this property when the WorkItemProperties are constructed from the WorkItem. If the work item is a WorkUnit, the UserContainer flag is set if the OutputFileSpecifications contains a DestinationSpecification of type BlobDirectorySpecification. Furthermore, the ResultLake flag is set if the OutputFileSpecifications contains a DestinationSpecification of type ResultLakeStorageSpecification.
Tag
Gets the tag.
Declaration
public string Tag { get; set; }
Property Value
Type | Description |
---|---|
System.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.
WorkItemDirectory
Gets or sets the path to the work item container directory.
Declaration
public string WorkItemDirectory { get; set; }
Property Value
Type | Description |
---|---|
System.String | The work item container directory. |
Remarks
If set and ResultStorageType has the UserContainer flag set, this path can be used to locate the result files of this work item in the user container.