◷ Reading Time: 2 minutes
In FlexRule, you can create a reusable library for your expressions and rule entry by using the following:
- Glossary of terms: Business glossary of terms allows you to provide values, options and expressions for both Decision table and Natural language rules entry
- Boxed expressions: Defining boxed expressions allows you to build reusable expressions
- Value expressions
- Formula expressions
Logic documents can call each other in two ways:
- Direct referencing
- Call as a function
Refer to the table below for reusability and sharing rules and logic between different components.
The horizontal row is the callee, and the vertical row is the caller in the table below. For example, if you want to call a Validation rule inside a flow, you should chose Flow from vertical and Validation from horizontal. The cell would be your result (i.e., Validator).
|Callee (horizontal)Caller (vertical)||Validationor Decision||Flow||DMN||Procedure||Decision Table|
|Validationor Decision||Logic,Validator||Function||Function||Alias,CallMethod CallProc||CallDecisionTable|
In FlexRule you can register any logic document as a function. For more details, check here.
The good news is that extending the functionality is very simple: