[rules-users] Inter-fact comparison

David Sinclair dsinclair at chariotsolutions.com
Tue Jun 22 15:47:36 EDT 2010


Hi Earnie,

What you are explaining seems pretty straight forward and would more likely
than not be overkill to use a rule engine. Are there other aspects of the
system you are leaving out that warrant the use of Drools?

dave

2010/6/22 Earnest Dyke <earniedyke at yahoo.com>

> Greetings all,
>
> I have a requirement to compare a set of facts against each other,
> calculate a value that indicates the amount of difference (Levenshtein
> distance) between a single attribute on each fact. So I load all of my facts
> into working memory then what? Do I execute a rule first that creates a new
> set of facts which is a Cartesian product of the original set of facts, each
> new fact containing a reference to two original facts and the diff between
> them? Looked at using a custom accumulate function but I don't think that's
> going to do what I need since it is intended to go through a set of facts
> and return a single value.
>
> Any and all related help is appreciated.
>
> Earnie!
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100622/18f68374/attachment.html 


More information about the rules-users mailing list