JavaScript Fields

This section describes the fields used to configure JavaScript programs.

New Javascript

  • Name of the JavaScript program.
  • Value—Text string
  • Default—No value

Javascript

  • A function body in JavaScript.
  • Value—Path name. To refer to the event attributes being processed, include the attribute name delimited by angle brackets (<and>). The JavaScript can verify whether the event has the referred attribute. If a referred attribute does not exist in the event, the attribute’s value is null. The JavaScript must return a value.
  • Default—No value

Parameter

  • Parameters required by the script. When invoking the script from an action, the action must supply values for these parameters.
  • Value—Comma-separated list of parameters
  • Default—No value
  • Example—fullLoginName

Return Attribute

  • Attribute that provides the return value of the script as a valid Java identifier that subsequent actions and event handlers can refer to.
  • Value—Attribute name
  • Guidelines—JavaScripts must return an attribute value. The name of a return attribute cannot start with an underscore (_), because these event attributes are reserved for internal use.
  • Default—No value

Return Type

  • Java type of the return attribute.
  • Value
    • Integer
    • Long
    • Float
    • Double
    • String
    • Boolean