You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

What is it for?

Reusable expressions are used to avoid duplicate work, when particular expressions occur (or are expected to occur) multiple times within an application.

For the design guide on how to model logic see Decision Management guide.

For more information on what you can use in an Expression, please refer to the Reference Guide for Expression function reference.

What is it?

A reusable expression is a piece of logic that is reused throughout your application. We speak of a reusable expression to indicate that the purpose of it is to be reused.

What does it do?

With reusable expressions you can substitute parts of your logic with that reusable expression, which shortens your logic and makes it more understandable as well as maintainable.

Properties

PropertyDescription
ExpressionThe actual expression is filled in here. 

Using a reusable expression

Once you have created reusable expressions, you can use them in any expression, bracketed by curly braces: {ReusableExpressionName}.

The reusable expression has to be a valid expression by itself. It is evaluated before the main expression, and the result is used by the main expression. It is not a form of string-replacing.

For performance reasons we advise to limit the use of reusable expressions to a minimum.

  • No labels