I am uploading three drl files with three functions in each drl. Can I get the list that contains all the 9 functions that are loaded in my KieBase.
Asked
Active
Viewed 55 times
1 Answers
0
Yes you can.
From the KieBase
you can get the list of KiePackages
and for each of them you can get the name of the functions defined in them.
This simple code will list all the functions in a KieBase
:
KieBase kbase = ...
List<String> functions = kbase.getKiePackages().stream()
.flatMap(p -> p.getFunctionNames().stream())
.collect(toList());
Hope it helps,

Esteban Aliverti
- 6,259
- 2
- 19
- 31
-
With this, I could get the function names, but is there any way where i can get the function along with its definition?. – Sathish Kumar Nov 22 '18 at 08:04