Class WorkflowErrorEventArgs
OptimaJet.Workflow.Core.Runtime.WorkflowErrorEventArgs
Provides event data for WorkflowRuntime.OnWorkflowError and WorkflowRuntime.OnWorkflowErrorAsync.
Namespace: OptimaJet.Workflow.Core.Runtime
public class WorkflowErrorEventArgs : EventArgsType Hierarchy
- EventArgs
- WorkflowErrorEventArgs Current type
Constructors
public WorkflowErrorEventArgs(ProcessInstance processInstance, ProcessStatus processStatus, TransitionDefinition executedTransition, Exception exception) #Initializes a new instance of the WorkflowErrorEventArgs class.
Parameters
Name
Type
Description
processInstanceProcessInstanceThe process instance whose execution caused the error.
processStatusProcessStatusThe status of the process at the time of the error.
executedTransitionTransitionDefinitionThe transition that was being executed when the error occurred.
exceptionExceptionThe 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.