Defined in: types/ExecutionResult.ts:8
Represents the outcome of an execution unit (Script, Rule, Action, or Condition).
Type Parameters
TValue
TValue = any
The type of the value produced by the execution (e.g., number of rules for a Script, boolean for a Condition).
Constructors
Constructor
new ExecutionResult<
TValue>(success,context,value?,messages?):ExecutionResult<TValue>
Defined in: types/ExecutionResult.ts:15
Parameters
success
boolean
Whether the execution completed without errors.
context
The state of the ExecutionContext after the run.
value?
TValue | null
The primary output of the execution.
messages?
string[] = []
Any informational or error messages generated.
Returns
ExecutionResult<TValue>
Properties
context
readonlycontext:ExecutionContext
Defined in: types/ExecutionResult.ts:17
The state of the ExecutionContext after the run.
messages
readonlymessages:string[] =[]
Defined in: types/ExecutionResult.ts:19
Any informational or error messages generated.
success
readonlysuccess:boolean
Defined in: types/ExecutionResult.ts:16
Whether the execution completed without errors.
value
readonlyvalue:TValue|null=null
Defined in: types/ExecutionResult.ts:18
The primary output of the execution.
Methods
isSuccessful()
isSuccessful():
boolean
Defined in: types/ExecutionResult.ts:25
Helper to check if the execution was successful.
Returns
boolean
