Esteban,
Thank you very much for that. I will look into it.
Any other ideas, anyone?
_ miguel
2011/8/26 Esteban Aliverti <esteban.aliverti(a)gmail.com>
You can try to use drools-verifier. This project basically lets you
define
rules about your rules.
You can have a look at its tests to see how it works.
You can get more info about drools-verifier here:
http://community.jboss.org/wiki/DroolsVerifier
And here you can see how are we using drools-verifier inside Guvnor:
http://ilesteban.wordpress.com/2010/04/05/guvnors-field-constraints/
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @
http://www.plugtree.com
- Blog @
http://ilesteban.wordpress.com
2011/8/26 miguel machado <mls.machado(a)gmail.com>
> Hi there everybody,
>
> I need to perform rule comparison on a project I'm working on using drools
> expert 5.0. For a specific feature implementation, I have two different
> knowledge bases with several rules which I need to compare, one by one. By
> comparing, I mean "inspect" certain conditions within the LHS.
>
> Currently, I'm able to obtain several attributes from rules
> (org.drools.rule.Rule), such as the agenda-group and the rule name and a few
> others, but I haven't been able to do it all. Going deeper, there is
> LiteralConstraint (for simple conditions) which I can parse and obtain data.
> However, I don't know how to do it for OR-conditions, which I guess
> represents a MultiRestrictionFieldConstraint. Perhaps there is another way?
>
> I know this may seem like a very unorthodox thing to do, but I don't think
> there is a better way of comparing knowledge packages (except for full text
> comparison). Is there?
>
> Thanks in advance,
> _ miguel, PT
>
>
> --
> "To understand what is recursion you must first understand recursion"
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
"To understand what is recursion you must first understand recursion"