Class SequentialWorkExecutor
Executes SequentialWork.
Inherited Members
Namespace: DNVGL.One.Compute.WorkExecution.ExecutionModel
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public class SequentialWorkExecutor : ExecutableWorkBase, IFlowModelItem, IComputationalWork
Constructors
View SourceSequentialWorkExecutor(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
Methods
View SourceCanExecute()
Determines whether this instance can execute.
Declaration
public override bool CanExecute()
Returns
Type | Description |
---|---|
bool |
|
Overrides
See Also
View SourceProcess(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
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. |