-
Language:
English
-
Language:
English
Chapter 10. Functions
10.1. Functions
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.