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.
Namespace: OptimaJet.Workflow.Core.Model.Builder
public interface IActivityExceptionHandlerBuilder : IActivityBuilder, IBaseActivityBuilder, IProcessDefinitionBuilderType Hierarchy
- IActivityExceptionHandlerBuilder Current type
Methods
IActivityBuilder Retry(int retryCount) #Configures the handler to execute ActivityDefinition.Implementation again when a matching Exception is raised.
Parameters
Name
Type
Description
retryCountInt32The maximum number of additional attempts to execute ActivityDefinition.Implementation. The value must be greater than zero.
Returns
Type
Description
IActivityBuilderThe current builder as an IActivityBuilder for method chaining.
Exceptions
Type
Description
ArgumentExceptionThrown 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
Returns
Type
Description
IActivityBuilderThe 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
stateNameStringThe name of the target business state.
Returns
Type
Description
IActivityBuilderThe 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
IActivityBuilderThe current builder as an IActivityBuilder for method chaining.