TIBCO EBX®
Rules Portfolio Add-on Documentation > Scripting Language
Navigation modeRules Portfolio Add-on Documentation > Scripting Language

JavaScript-based language

JavaScript is a lightweight, interpreted and object-oriented language. The Scripting Language is based on JavaScript and has the same syntax and library. Additionally, you can use predefined objects to perform basic EBX®-specific operations. For example, you can query data, create/update/delete records and write to a log. The following image shows a sample.

/1000000000000258000000AAE4D39F4A.png

This document focuses on the predefined objects provided by the Scripting Language. If you need help with JavaScript you can easily find reference information on the World Wide Web that discusses the syntax and other features.

You can use a script to directly return a result. The add-on uses this result as the rule result. For example, the result could be true/false for a business rule, or a specific permission for a permission rule.

/10000000000002580000007862FB5780.png

For example, the result of the following script is 'false' if classes length >10, otherwise this returns 'true'.