[rules-users] Is there any way to get the original eval expression through AfterActivationFiredEvent event?

manrai.java manrai.java at gmail.com
Wed Mar 5 00:04:55 EST 2008


Hi,

I am using JBoss rules 3.0.6 to externalize all business rules. We have a
requirement were in we want to create a audit report after rules have been
executed. For each rule, we need to track Desired Condition Value(as
specified in when part), Actual Condition Value(value in asserted object)
and so on.

I looked into Event Model API's and was able to successfully fetch required
data from call back methods provided by  DefaultAgendaEventListener for most
of the rules.

However, In my application there are some rules which use EvalCondition(I
know that using eval is not a good idea but it will remain like this for
quite some time). I am not able to fetch required data from EvalExpression.

On introspecting Eval Expression i am getting something like (proxy object):

TestIt.Rule_FirstRuleToTest_0Eval0Invoker at feefa5e0

What i am expecting is something like below:
**
*eval*( Income.getGrossIncome().doubleValue() == 10001)

Is there any way to get the original eval expression through
AfterActivationFiredEvent event?


Regards,
Mohit Manrai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080305/bdd5a144/attachment.html 


More information about the rules-users mailing list