[rules-users] Extracting management information from the content of the rules

Wolfgang Laun wolfgang.laun at gmail.com
Mon Jan 2 04:02:52 EST 2012


Two remarks.

The verifier code does not address the extraction of specific fields or
values; it's primary intent is to discover erroneous constructs such as
"field == A && field == B" and its manyfold variations. You might look at
its source code, how it gets at patterns and constraints and roll your own.
How difficult this is would depend on the complexity of your rules and
patterns.

Mining for this or that in compiled rules might be putting the cart before
the horse. Whenever I encounter a problem where a number of rules emerge,
all according to a single pattern and just with variations in the data, I
begin to think of a way of building the rules from a handy set of data, and
the problem of reporting takes care of itself.

-W





2012/1/2 Esteban Aliverti <esteban.aliverti at gmail.com>

> There is a Drools' module called drools-verifier that can be used to
> achieve what you are looking for. Unfortunately there is no integration
> with Guvnor. So basically you will need to create your own app using
> drools-verifier's API.
>
> Best Regards,
>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
> - Developer @ http://www.plugtree.com
> - Blog @ http://ilesteban.wordpress.com
>
>
> On Mon, Jan 2, 2012 at 7:00 AM, Salina Fung/UFL - ICIL <salina at icil.net>wrote:
>
>> Hi,
>> I have similar requirement, is there any answer for this?
>>
>>
>> Thanks
>> Salina
>>
>>
>> ----- Original Message -----
>> From: Henrique Lira
>> [mailto:henriquedlira at hotmail.com]
>> To: rules-users at lists.jboss.org
>> Sent:
>> Tue, 27 Dec 2011 22:12:14 +0800
>> Subject: [rules-users] Extracting management
>> information from the content of the rules
>>
>>
>> >
>> > Hi,
>> >
>> >  I'm doing an evaluation of Guvnor tool, and one of the requirements
>> that we
>> > wish to be met is the ability to extract management reports from the
>> content
>> > of the rules. Let me explain better: assuming I have several rules that
>> > define discounts for products depending on their characteristics, how
>> can I
>> > get, for example, which products have a discount of X%? I tried using
>> the
>> > search function of the Guvnor, but I found it very simple to more
>> managerial
>> > information like this? Is there any other functionality to generate more
>> > complex queries?
>> >
>> > Thanks in advance,
>> > Henrique
>> >
>> > --
>> > View this message in context:
>> >
>> http://drools.46999.n3.nabble.com/Extracting-management-information-from-the-content-of-the-rules-tp3614399p3614399.html
>> > Sent from the Drools: User forum mailing list archive at Nabble.com.
>> > _______________________________________________
>> > rules-users mailing list
>> > rules-users at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/rules-users
>> >
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
> _______________________________________________
> 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/20120102/2d846b15/attachment.html 


More information about the rules-users mailing list