Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Function Alias rules

Updated on August 10, 2022

A function alias rule has one of two types: Java function or SQL expression.

Depending on the alias type, different fields appear on the Reference and Generated Output tabs.

Java functions

Function aliases of this type provide natural-language descriptions and prompting for input parameters to an underlying function rule.

You need to create and test the function before defining a function alias rule that references it.

You cannot define an alias for a function that returns a complex Java type.

SQL expressions

Function aliases of this type provide compact packaging of complex SQL expressions that can be used to query a database. They are defined in the Embed-UserFunction class.

You can use one of the SQL function aliases or configure a new one with the Calculation Builder.

Where referenced

Java alias functions can be used in collections, decision trees, when condition rules, Declare Expression rules, and constraints rules.

SQL alias functions rules support the development of report definitions.

Category

Alias function rules are instances of the Rule-Alias-Function class. They belong to the Technical rule category.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us