Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Interface IActivityExceptionHandlerBuilder

OptimaJet.Workflow.Core.Model.Builder.IActivityExceptionHandlerBuilder

Represents a builder for configuring exception handling for an activity.

public interface IActivityExceptionHandlerBuilder : IActivityBuilder, IBaseActivityBuilder, IProcessDefinitionBuilder

Methods

IActivityBuilder Retry(int retryCount) #
Configures the exception handler to retry the activity a specified number of times.

Parameters

Name
Type
Description
retryCount
Int32
The number of times to retry the activity. Must be greater than 0.

Returns

Type
Description
IActivityBuilder
The current instance of IActivityBuilder for method chaining.
IActivityBuilder SetActivity(ActivityDefinition activity) #
Configures the exception handler to set a specified activity when an exception occurs.

Parameters

Name
Type
Description
activity
ActivityDefinition
The activity definition to set.

Returns

Type
Description
IActivityBuilder
The current instance of IActivityBuilder for method chaining.
IActivityBuilder SetState(string stateName) #
Configures the exception handler to set a specified state when an exception occurs.

Parameters

Name
Type
Description
stateName
String
The name of the state to set.

Returns

Type
Description
IActivityBuilder
The current instance of IActivityBuilder for method chaining.
IActivityBuilder Ignore() #
Configures the exception handler to ignore the exception.

Returns

Type
Description
IActivityBuilder
The current instance of IActivityBuilder for method chaining.