Show / Hide Table of Contents

Class SequentialWorkExecutor

Executes SequentialWork.

Inheritance
object
FlowModelObject
WorkItem
ExecutableWorkBase
SequentialWorkExecutor
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 SequentialWorkExecutor : ExecutableWorkBase, IFlowModelItem, IComputationalWork

Constructors

View Source

SequentialWorkExecutor(SequentialWork, IExecutableWorkBuilder)

Initializes a new instance of the SequentialWorkExecutor class.

Declaration
public SequentialWorkExecutor(SequentialWork sequentialWork, IExecutableWorkBuilder workBuilder)
Parameters
Type Name Description
SequentialWork sequentialWork

The sequential work.

IExecutableWorkBuilder workBuilder

The work builder.

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)
Exceptions
Type Condition
InvalidOperationException

The execution context must be of type ICompositeExecutionContext. or One or more work items in the sequence are not of type IExecutableWork.

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.