Assembly: OptimaJet.Workflow.Core

Class WorkflowErrorEventArgs

OptimaJet.Workflow.Core.Runtime.WorkflowErrorEventArgs

Provides event data for WorkflowRuntime.OnWorkflowError and WorkflowRuntime.OnWorkflowErrorAsync.

public class WorkflowErrorEventArgs : EventArgs

Type Hierarchy

Constructors

public WorkflowErrorEventArgs(ProcessInstance processInstance, ProcessStatus processStatus, TransitionDefinition executedTransition, Exception exception) #
Initializes a new instance of the WorkflowErrorEventArgs class.

Parameters

Name
Type
Description
processInstance
ProcessInstance
The process instance whose execution caused the error.
processStatus
ProcessStatus
The status of the process at the time of the error.
executedTransition
TransitionDefinition
The transition that was being executed when the error occurred.
exception
Exception
The exception that was thrown.

Properties

public Exception Exception { get; set; } #
Gets or sets the exception that was thrown.
public ProcessInstance ProcessInstance { get; set; } #
Gets or sets the process instance whose execution caused the error.
public ProcessStatus ProcessStatus { get; set; } #
Gets or sets the process status at the time of the error.
public TransitionDefinition ExecutedTransition { get; set; } #
Gets or sets the transition that was being executed when the error occurred.
public bool SuppressThrow { get; set; } #
Gets or sets a value indicating whether the thrown exception will be suppressed.

false

means the exception will be propagated.

true

means the exception will be suppressed.
public ActivityDefinition ActivityToSet { get; set; } #
Gets or sets an activity that is set as current for the process whose execution caused the error.

If null, the current activity is unchanged.