Internal Variables
Internal variables refer to elements of the current rulebase. This type of variable is defined internally by the TIBCO Hawk agent and requires no properties file. Values are assigned to variables when the rule is processed.
Like external variables, internal variables can be referenced in string arguments of methods used as a rule’s data source or in string arguments of actions. You can manually type internal variable syntax in the string argument of a method, or, for action arguments, TIBCO Hawk Console provides a dropdown list of internal variables.
Manually entering variables
To manually enter internal variables, specify the variable by using the following syntax:
${Internal.<variable>
}
where <variable>
can be Agent Name
, Agent IP Address
, or so on.
The variables are substituted with the appropriate value before the command runs. For example, the command Telnet ${Internal.Agent Name}
runs as Telnet kimyou
if the command runs for agent kimyou
from the Agent page.