Yes, storing the rules in a database or storing them in a repository as
guvnor will allow you to configure the rules any time you want.
It would be nice to know about your object model to be able to describe the
better approach for writing rules against it.
Greetings.
2011/3/25 Michael Anstis <michael.anstis(a)gmail.com>
The easiest suggestion would be to store DRL in your database ;)
These is a (dieing) BRL XML format but I believe its use is discouraged (as
it's essentially an XStream output of a object model).
You could also look at writing a persistence layer over FactModel which is
the foregoing object model; to re-hydrate direct from structured database
tables with an ORM.
Looking however at your example rules; I believe the simplest approach
would be to write your own parser that generates DRL.
Have you considered Guvnor which would suit your needs ideally?
With kind regards,
Mike
2011/3/25 bilasini sahoo <s.bilasini(a)gmail.com>
> Hi All,
> I am new to this Drool rule ingine use.
> Normal drl is working for me.
> But mu requirement is i need to configure all the rules in Data base and
> from there i need to inject to the Rule engine.This is beacuse Rules can be
> configured any point of time.
>
> Please let me know if is there any special foemat of rule configuration is
> required so that creating rule file would be easier
>
> currently i have configured as
>
> (Company=CCC && Organisation=OOO and Dept=HR) OR (Country=UK)
> (Company=CCC && Organisation=OOO )and (Dept=HR OR Country=UK)
>
>
> please advice. I am stuck with this proble since 2days
>
>
> Thanks,
> Bilasini
>
>
> _______________________________________________
> 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
--
- CTO @
http://www.plugtree.com
- MyJourney @
http://salaboy.wordpress.com
- Co-Founder @
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -