All Java implementation are disappeared, we used irl language, this is the solution :
We defined the scope and we select the rules dynamically
scope= {exe.R05,exe.R04,exe.R03}
body = dynamicselect() {
return selectedFunction(context.getRuleset().allRules);
}