Assembly: OptimaJet.Workflow.Core

Interface IActivityExceptionHandlerBuilder

OptimaJet.Workflow.Core.Model.Builder.IActivityExceptionHandlerBuilder

Provides operations for selecting how an ActivityExceptionsHandler responds to a matching Exception raised during normal activity execution.

public interface IActivityExceptionHandlerBuilder : IActivityBuilder, IBaseActivityBuilder, IProcessDefinitionBuilder

Type Hierarchy

Methods

IActivityBuilder Retry(int retryCount) #
Configures the handler to execute ActivityDefinition.Implementation again when a matching Exception is raised.

Parameters

Name
Type
Description
retryCount
Int32
The maximum number of additional attempts to execute ActivityDefinition.Implementation. The value must be greater than zero.

Returns

Type
Description
IActivityBuilder
The current builder as an IActivityBuilder for method chaining.

Exceptions

Type
Description
ArgumentException
Thrown when retryCount is less than or equal to zero.
IActivityBuilder SetActivity(ActivityDefinition activity) #
Configures the handler to move the process instance to the activity represented by activity when a matching Exception is raised.

Parameters

Name
Type
Description
activity
ActivityDefinition
The target ActivityDefinition.

Returns

Type
Description
IActivityBuilder
The current builder as an IActivityBuilder for method chaining.
IActivityBuilder SetState(string stateName) #
Configures the handler to move the process instance to the business state named by stateName when a matching Exception is raised.

Parameters

Name
Type
Description
stateName
String
The name of the target business state.

Returns

Type
Description
IActivityBuilder
The current builder as an IActivityBuilder for method chaining.
IActivityBuilder Ignore() #
Configures the handler to suppress a matching Exception so workflow execution can continue.

Returns

Type
Description
IActivityBuilder
The current builder as an IActivityBuilder for method chaining.