dynamic rule attribute values

14 views
Skip to first unread message

Venu Madhav

unread,
Nov 26, 2021, 5:47:58 AM11/26/21
to Drools Setup

We need to populate rules attributes from database dynamically. We are invoking static methods in drl files to assign the values. This works for enabled and salience properties but not for agenda-group, date-effective and others. Any inputs on how to dynamically assign values to these attributes?

rule "test"

agenda-group getAgendaGrpNm()

when eval(true) then System.out.println("Success");

end


Thanks

Reply all
Reply to author
Forward
0 new messages