Engine.Variable.getEngineLongVar()

Signature

long getEngineLongVar(String varName)

Domain

ACTION, CONDITION, QUERY, BUI

Description

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.

Parameters

NameTypeDescription
varNameStringThe name of the variable.

Returns

TypeDescription
longThe value of this variable

Cautions

none