[rules-users] Writing rules using java..
Mark Proctor
mproctor at codehaus.org
Fri Mar 2 20:48:59 EST 2007
Just generate a drl from your model using a template langauge such
velocity, freemarker or stringtemplate. you can generate and load the
drl at runtime, this is what the decision table does. You can program
agains the API yourself, but its quite complex, and certainly not
recommended for a noobie.
Mark
Kolla, Sandeep wrote:
>
> Hi Rahul,
>
> Its not about storing the whole file into the database.
>
> I would have a Table representing the parameteres required to
> construct a rule.
>
> For example.
>
> Tables:
>
> *RuleSetTable:*
> Ruleset_id
> Ruleset_name
>
> *RuleTable:*
> Rule_id
> Rule_name
> Rule_saliance
> Rule_condition
> Rule_consequence
> Ruleset_id
>
> Now while loading the rules the application basically should read from
> the DB, and construct the rules, as everything required to construct
> the rules is avaliable in the tables.
>
> This requirement had come up because as the rules keep changing quite
> frequently, we don't want to bring down the application to load a new
> DRL file.
>
> Hope you understood what I want to achieve.
>
> Thanks much,
> Sandeep.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20070303/bc752247/attachment.html
More information about the rules-users
mailing list