Skip to main content

Class WorkflowErrorEventArgs

Represents information about an error occurred due to execution of a workflow process

Inheritance

↳ object

    ↳ EventArgs

        WorkflowErrorEventArgs

Inherited Members

Empty

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Runtime

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public class WorkflowErrorEventArgs : EventArgs

Constructors

WorkflowErrorEventArgs(ProcessInstance, ProcessStatus, TransitionDefinition, Exception)

Constructor

Declaration
public WorkflowErrorEventArgs(ProcessInstance processInstance, ProcessStatus processStatus, TransitionDefinition executedTransition, Exception exception)
Parameters
TypeNameDescription
ProcessInstanceprocessInstanceInstance of the process the execution of which caused the error
ProcessStatusprocessStatusStatus of the process
TransitionDefinitionexecutedTransitionTransition the execution of which caused the error
ExceptionexceptionException which was thrown

Properties

Exception

Returns the exception which was thrown

Declaration
public Exception Exception { get; set; }
Property value
TypeDescription
Exception

ProcessInstance

Returns the instance of the process the execution of which caused the error

Declaration
public ProcessInstance ProcessInstance { get; set; }
Property value
TypeDescription
ProcessInstance

ProcessStatus

Status of the process

Declaration
public ProcessStatus ProcessStatus { get; set; }
Property value
TypeDescription
ProcessStatus

ExecutedTransition

Returns the transition the execution of which caused the error

Declaration
public TransitionDefinition ExecutedTransition { get; set; }
Property value
TypeDescription
TransitionDefinition

SuppressThrow

If true the thrown exception won't be propagated.

Declaration
public bool SuppressThrow { get; set; }
Property value
TypeDescription
bool

ActivityToSet

If not then the specified activity will be set as current for the process which execution caused the error

Declaration
public ActivityDefinition ActivityToSet { get; set; }
Property value
TypeDescription
ActivityDefinition

Extension Methods