Show / Hide Table of Contents

Class ExecutableWorkBase<TIn, TOut>

An implementation base class for work with typed input and output.

Inheritance
object
FlowModelObject
WorkItem
ExecutableWorkBase
ExecutableWorkBase<TIn, TOut>
Pipeline<TIn, TOut>
Implements
IFlowModelItem
IExecutableWork<TIn, TOut>
IComputationalWork
Inherited Members
ExecutableWorkBase.Source
ExecutableWorkBase.GetDescendants()
ExecutableWorkBase.CanExecute()
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 abstract class ExecutableWorkBase<TIn, TOut> : ExecutableWorkBase, IFlowModelItem, IExecutableWork<TIn, TOut>, IComputationalWork
Type Parameters
Name Description
TIn

The type of the in.

TOut

The type of the out.

Methods

View Source

Execute(TIn, IExecutionContext)

Executes with the specified input.

Declaration
public TOut Execute(TIn input, IExecutionContext executionContext = null)
Parameters
Type Name Description
TIn input

The input.

IExecutionContext executionContext

The execution context.

Returns
Type Description
TOut

Result from execution.

See Also
ExecutableWorkBase
IExecutableWork<TIn, TOut>
View Source

Process(object, IExecutionContext)

Processes the specified input.

Declaration
protected override sealed 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
ArgumentException

Thrown if input is not of type TIn.

See Also
ExecutableWorkBase
IExecutableWork<TIn, TOut>
View Source

Process(TIn, IExecutionContext)

Processes the specified input.

Declaration
protected abstract TOut Process(TIn input, IExecutionContext executionContext)
Parameters
Type Name Description
TIn input

The input.

IExecutionContext executionContext

The execution context.

Returns
Type Description
TOut

Processing result. May be null.

See Also
ExecutableWorkBase
IExecutableWork<TIn, TOut>

Implements

IFlowModelItem
IExecutableWork<TIn, TOut>
IComputationalWork

Extension Methods

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

See Also

ExecutableWorkBase
IExecutableWork<TIn, TOut>
  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.