- TIBCO BusinessEvents®
- Standard
- Engine
- Variable

# Engine.Variable

## Description

Functions to set and get Engine Variable.

## Functions

Name | Signature and Synopsis
--- | ---
`getEngineBooleanArrayVar` | `boolean[] getEngineBooleanArrayVar(String varName)` Gets the engine variable as boolean[] of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns null if the variable is not set.
`getEngineBooleanVar` | `boolean getEngineBooleanVar(String varName)` Gets the engine variable as boolean of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns false if the variable is not set.
`getEngineDateTimeArrayVar` | `DateTime[] getEngineDateTimeArrayVar(String varName)` Gets the engine variable as DateTime[] of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns null if the variable is not set.
`getEngineDateTimeVar` | `DateTime getEngineDateTimeVar(String varName)` Gets the engine variable as DateTime of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns null if the variable is not set.
`getEngineDoubleArrayVar` | `double getEngineDoubleArrayVar(String varName)` Gets the engine variable as double[] of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns null if the variable is not set.
`getEngineDoubleVar` | `double getEngineDoubleVar(String varName)` Gets the engine variable as double of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns 0.0 if the variable is not set.
`getEngineIntArrayVar` | `int[] getEngineIntArrayVar(String varName)` Gets the engine variable as int[] of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns null if the variable is not set.
`getEngineIntVar` | `int getEngineIntVar(String varName)` Gets the engine variable as int of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns 0 if the variable is not set.
`getEngineLongArrayVar` | `long[] getEngineLongArrayVar(String varName)` Gets the engine variable as long[] of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns null if the variable is not set.
`getEngineLongVar` | `long getEngineLongVar(String varName)` Gets the engine variable as long of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns 0L if the variable is not set.
`getEngineObjectVar` | `Object getEngineObjectVar(String varName)` Gets the engine variable as Object of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns null if the variable is not set.
`getEngineStringArrayVar` | `String[] getEngineStringArrayVar(String varName)` Gets the engine variable as String[] of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns null if the variable is not set.
`getEngineStringVar` | `String getEngineStringVar(String varName)` Gets the engine variable as String of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition. This function returns null if the variable is not set.
`removeEngineVar` | `void removeEngineVar(String varName)` Removes the engine variable of name varName. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineBooleanArrayVar` | `void setEngineBooleanArrayVar(String varName, boolean[] value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineBooleanVar` | `void setEngineBooleanVar(String varName, boolean value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineDateTimeArrayVar` | `void setEngineDateTimeArrayVar(String varName, DateTime[] value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineDateTimeVar` | `void setEngineDateTimeVar(String varName, DateTime value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineDoubleArrayVar` | `void setEngineDoubleArrayVar(String varName, double[] value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineDoubleVar` | `void setEngineDoubleVar(String varName, double value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineIntArrayVar` | `void setEngineIntArrayVar(String varName, int[] value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineIntVar` | `void setEngineIntVar(String varName, int value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineLongArrayVar` | `void setEngineLongArrayVar(String varName, long[] value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineLongVar` | `void setEngineLongVar(String varName, long value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineObjectVar` | `void setEngineObjectVar(String varName, Object value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineStringArrayVar` | `void setEngineStringArrayVar(String varName, String[] value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.
`setEngineStringVar` | `void setEngineStringVar(String varName, String value)` Sets the engine variable of name varName to value. Engine variable is a in-memory variable share across all the rule sessions for a RuleServiceProvider. Rule condition won't have dependency of this variable i.e. changes of this variable won't retrigger the rule if it is used in the condition.