mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
3.5 KiB
3.5 KiB
Home > kibana-plugin-plugins-expressions-server > Execution
Execution class
Signature:
export declare class Execution<ExtraContext extends Record<string, unknown> = Record<string, unknown>, Input = unknown, Output = unknown, InspectorAdapters extends Adapters = ExtraContext['inspectorAdapters'] extends object ? ExtraContext['inspectorAdapters'] : DefaultInspectorAdapters>
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(params) | Constructs a new instance of the Execution class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
context | ExecutionContext<Input, InspectorAdapters> & ExtraContext |
Execution context - object that allows to do side-effects. Context is passed to every function. | |
contract | ExecutionContract<ExtraContext, Input, Output, InspectorAdapters> |
Contract is a public representation of Execution instances. Contract we can return to other plugins for their consumption. |
|
expression | string |
||
input | Input |
Initial input of the execution.N.B. It is initialized to null rather than undefined for legacy reasons, because in legacy interpreter it was set to null by default. |
|
inspectorAdapters | InspectorAdapters |
||
params | ExecutionParams<ExtraContext> |
||
result | Promise<Output | ExpressionValueError> |
||
state | ExecutionContainer<Output | ExpressionValueError> |
Dynamic state of the execution. |
Methods
Method | Modifiers | Description |
---|---|---|
cancel() | Stop execution of expression. | |
cast(value, toTypeNames) | ||
interpret(ast, input, options) | ||
invokeChain(chainArr, input) | ||
invokeFunction(fn, input, args) | ||
resolveArgs(fnDef, input, argAsts) | ||
start(input) | Call this method to start execution.N.B. input is initialized to null rather than undefined for legacy reasons, because in legacy interpreter it was set to null by default. |