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:
- The ParameterValueProvider value of the WorkflowEventHandlerOptions provided with the workflow event handler, if not null.
- 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:
- A IUriContext service that provides the BaseUri value of the WorkflowEventHandlerOptions provided with the workflow event handler, if not null.
- The ServiceProvider value of the WorkflowEventHandlerOptions provided with the workflow event handler, if not null.
- 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
ActivityContextThe activity context.
cancellationToken
CancellationTokenThe 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.
- Exception
An error occurred while performing the activity.