Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 10. Functions
10.1. Functions Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
Functions are a way to put semantic code in a rule source file, as opposed to in normal Java classes. The main advantage of using functions in a rule is that you can keep the logic all in one place. You can change the functions as needed.
Functions are most useful for invoking actions on the consequence (
then) part of a rule, especially if that particular action is used repeatedly.