Skip to main content

Function Alias rules

Suggest edit
Updated on March 16, 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.

Did you find this content helpful? YesNo

0% found this useful

Have a question? Get answers now.

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

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