Workflow Engine .NET  2
Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters Class Reference

Represent execution result which contains information about execution More...

Inheritance diagram for OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters:
OptimaJet.Workflow.Core.Bus.ExecutionResponseParametersComplete OptimaJet.Workflow.Core.Bus.ExecutionResponseParametersError

Static Public Member Functions

static ExecutionResponseParametersComplete Create (ProcessInstance processInstance, string executedActivityName)
 Create ExecutionResponseParametersComplete object More...
 
static ExecutionResponseParametersComplete Create (ProcessInstance processInstance, string executedActivityName, string executedTransitionName)
 Create ExecutionResponseParametersComplete object More...
 
static ExecutionResponseParametersError Create (ProcessInstance processInstance, string executedActivityName, Exception exception)
 Create ExecutionResponseParametersError object More...
 
static ExecutionResponseParametersError Create (ProcessInstance processInstance, string executedActivityName, string executedTransitionName, Exception exception)
 Create ExecutionResponseParametersError object More...
 

Public Attributes

Guid ProcessId => ProcessInstance.ProcessId
 Returns id of the process instance More...
 
virtual bool IsError => false
 If True means execution error More...
 

Static Public Attributes

static ExecutionResponseParameters Empty => new ExecutionResponseParameters {IsEmplty = true}
 Returns instane of empty ExecutionResponseParameters More...
 

Properties

ProcessInstance ProcessInstance [get, set]
 Returns Process instance which requested execution More...
 
string ExecutedTransitionName [get, set]
 Transition name which was executed More...
 
string ExecutedActivityName [get, set]
 Activity name which was executed More...
 
bool IsEmplty [get, set]
 Return True if ExecutionResponseParameters is empty More...
 

Detailed Description

Represent execution result which contains information about execution

Member Function Documentation

◆ Create() [1/4]

static ExecutionResponseParametersComplete OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.Create ( ProcessInstance  processInstance,
string  executedActivityName 
)
static

Create ExecutionResponseParametersComplete object

Parameters
processInstanceProcess instance which requested execution
executedActivityNameActivity name which was executed
Returns
ExecutionResponseParametersComplete object

◆ Create() [2/4]

static ExecutionResponseParametersComplete OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.Create ( ProcessInstance  processInstance,
string  executedActivityName,
string  executedTransitionName 
)
static

Create ExecutionResponseParametersComplete object

Parameters
processInstanceProcess instance which requested execution
executedActivityNameActivity name which was executed
executedTransitionNameTransition name which was executed
Returns
ExecutionResponseParametersComplete object

◆ Create() [3/4]

static ExecutionResponseParametersError OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.Create ( ProcessInstance  processInstance,
string  executedActivityName,
Exception  exception 
)
static

Create ExecutionResponseParametersError object

Parameters
processInstanceProcess instance which requested execution
executedActivityNameActivity name which was executed
exceptionException which occured in time of execution
Returns
ExecutionResponseParametersError object

◆ Create() [4/4]

static ExecutionResponseParametersError OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.Create ( ProcessInstance  processInstance,
string  executedActivityName,
string  executedTransitionName,
Exception  exception 
)
static

Create ExecutionResponseParametersError object

Parameters
processInstanceProcess instance which requested execution
executedActivityNameActivity name which was executed
executedTransitionNameTransition name which was executed
exceptionException which occured in time of execution
Returns
ExecutionResponseParametersError object

Member Data Documentation

◆ Empty

ExecutionResponseParameters OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.Empty => new ExecutionResponseParameters {IsEmplty = true}
static

Returns instane of empty ExecutionResponseParameters

◆ IsError

virtual bool OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.IsError => false

If True means execution error

◆ ProcessId

Guid OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.ProcessId => ProcessInstance.ProcessId

Returns id of the process instance

Property Documentation

◆ ExecutedActivityName

string OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.ExecutedActivityName
getset

Activity name which was executed

◆ ExecutedTransitionName

string OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.ExecutedTransitionName
getset

Transition name which was executed

◆ IsEmplty

bool OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.IsEmplty
getset

Return True if ExecutionResponseParameters is empty

◆ ProcessInstance

ProcessInstance OptimaJet.Workflow.Core.Bus.ExecutionResponseParameters.ProcessInstance
getset

Returns Process instance which requested execution