<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
drools newbie wrote:
<blockquote cite="mid:19868744.post@talk.nabble.com" type="cite">
<pre wrap="">Hello,
Actually I want to do the same way Sandeep has described.
1. Can someone please post some example to generate the drl from template?
</pre>
</blockquote>
Drools 5.0, which you can see in the M2 release, has drools-templates.
You'll need to look at the unit tests on how it works, but it's very
simple.<br>
<blockquote cite="mid:19868744.post@talk.nabble.com" type="cite">
<pre wrap="">
2.This thread is more than a 1 1/2 year old. Does drools have in-built
template concept now instead of using a template langauge such
velocity, freemarker or stringtemplate ? if so,please pinpoint on the topic
name.
</pre>
</blockquote>
yes drools-templates, which is built on MVEL.<br>
<blockquote cite="mid:19868744.post@talk.nabble.com" type="cite">
<pre wrap="">
Thanks
Mark Proctor wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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:
</pre>
<blockquote type="cite">
<pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>