re[rules-users] trieving the RHS of a rule at run-time

Fermion henss at physik.uni-wuppertal.de
Fri Oct 19 09:20:06 EDT 2007


Hi!

I want to display all my current activations in a JTable object. On
selection of one of the hereby created rows (each representing an activated
rule by its name), I want to display additional info on this rule.

It is no problem to retrieve the rule from the RuleBase, as I know the
Package and Rule names. Unfortunately the toString()-output of the
associated Consequence is not really what I want.

What I really want is the RHS of the rule in analogy to the Rule.getLHS()
method. Unfortunately there is no such method for the RHS.

Is there a work-around for this? I would really like to avoid parsing the
rule file just to get the RHS of a rule.

Thanks!
-- 
View this message in context: http://www.nabble.com/retrieving-the-RHS-of-a-rule-at-run-time-tf4653148.html#a13294400
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list