◷ Reading Time: 2 minutes
Reusable library
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
Reuse
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 |
Flow | Validator | Function | CallDrd | Action | CallDecisionTable |
DMN | KnowledgeSource | KnowledgeSource | KnowledgeSource | KnowledgeSource | KnowledgeSource |
Proceudre | Validator | Function | Function | CallProc,Modular Scope | CallDecisionTable |
Decision Table | DMN | DMN | Function | Function | DMN |
In FlexRule you can register any logic document as a function. For more details, check here.
Extending Functionality
The good news is that extending the functionality is very simple: