Table of Contents

Class ExecuteDefaultHandler

Namespace
Acuit.Pinpoint.Workflows.Workstation.Activities
Assembly
Acuit.Pinpoint.Workflows.Workstation.dll

A workflow activity that executes the default workflow handler, if one exists, for the active event.

public class ExecuteDefaultHandler : Activity, IActivity
Inheritance
ExecuteDefaultHandler
Implements
Inherited Members

Remarks

If a default workflow handler exists, the workflow will be provided the following:

  • A composite parameter value provider that will provide parameter values from the following sources, in order of decreasing precedence:

    1. The ParameterValueProvider value of the WorkflowEventHandlerOptions provided with the workflow event handler, if not null.
    2. The parameter value provider inherited from the executing workflow.
  • A composite service provider that will provide services from the following sources, in order of decreasing precedence:

    1. A IUriContext service that provides the BaseUri value of the WorkflowEventHandlerOptions provided with the workflow event handler, if not null.
    2. The ServiceProvider value of the WorkflowEventHandlerOptions provided with the workflow event handler, if not null.
    3. The service provider inherited from the executing workflow.

This activity requires a IWorkflowEventContext service (automatically provided by Acuit Pinpoint Workstation) when the workflow is executing as a workflow event handler.

Methods

OnExecuteAsync(ActivityContext, CancellationToken)

Derived classes must implement this to perform the activity.

protected override Task OnExecuteAsync(ActivityContext context, CancellationToken cancellationToken)

Parameters

context ActivityContext

The activity context.

cancellationToken CancellationToken

The cancellation token used to request canceling the activity.

Returns

Task

A task that represents the asynchronous operation.

Exceptions

ArgumentNullException

context is null.

InvalidOperationException

A service required by the activity is not available, or a required activity property value is not set. This will only occur asynchronously, wrapped in an AggregateException as the faulted task's Exception.

Exception

An error occurred while performing the activity. This will only occur asynchronously, wrapped in an AggregateException as the faulted task's Exception.