Show / Hide Table of Contents

Class WorkUnitExecutor

Defines an executor for WorkUnits.

Inheritance
object
FlowModelObject
WorkItem
ExecutableWorkBase
WorkUnitExecutor
Implements
IFlowModelItem
IComputationalWork
Inherited Members
ExecutableWorkBase.Source
ExecutableWorkBase.GetDescendants()
ExecutableWorkBase.Execute(object, IExecutionContext)
ExecutableWorkBase.Complete(IExecutionContext, object, string)
ExecutableWorkBase.Fail(IExecutionContext, string, Exception)
ExecutableWorkBase.CreateRootExecutionContext()
WorkItem.Tag
WorkItem.JobId
WorkItem.ParentId
WorkItem.Id
WorkItem.GetParent()
WorkItem.Select<T>(Func<WorkItem, T>)
WorkItem.Traverse(Action<WorkItem, WorkItem>, WorkItem)
WorkItem.FindItems(Func<WorkItem, bool>, bool)
WorkItem.OnInitialize(Job)
WorkItem.ToString()
FlowModelObject.BatchNumber
FlowModelObject.Properties
FlowModelObject.PropertiesContent
FlowModelObject.this[string]
FlowModelObject.UpdateProperties(string)
FlowModelObject.UpdateProperties(FlowModelObject)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: DNVGL.One.Compute.WorkExecution.ExecutionModel
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public class WorkUnitExecutor : ExecutableWorkBase, IFlowModelItem, IComputationalWork

Constructors

View Source

WorkUnitExecutor(WorkUnit, IExecutableWorkBuilder)

Initializes a new instance of the WorkUnitExecutor class.

Declaration
public WorkUnitExecutor(WorkUnit workUnit, IExecutableWorkBuilder workBuilder)
Parameters
Type Name Description
WorkUnit workUnit

The work unit.

IExecutableWorkBuilder workBuilder

The work builder.

Exceptions
Type Condition
InvalidOperationException

Unable to build work from {workItem.GetType()}.

See Also
ExecutableWorkBase

Methods

View Source

CanExecute()

Determines whether this instance can execute.

Declaration
public override bool CanExecute()
Returns
Type Description
bool

true if this instance can execute; otherwise, false.

Overrides
ExecutableWorkBase.CanExecute()
See Also
ExecutableWorkBase
View Source

Process(object, IExecutionContext)

Processes the specified input.

Declaration
protected override object Process(object input, IExecutionContext executionContext)
Parameters
Type Name Description
object input

The input.

IExecutionContext executionContext

The execution context.

Returns
Type Description
object

Processing result. May be null.

Overrides
ExecutableWorkBase.Process(object, IExecutionContext)
See Also
ExecutableWorkBase

Implements

IFlowModelItem
IComputationalWork

Extension Methods

WorkItemExtensions.GetAncestors(WorkItem, WorkItem)
WorkItemExtensions.GetRelativeWeight(WorkItem, WorkItem)
WorkItemExtensions.BuildExecutableWork(WorkItem)

See Also

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