<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Drool_Beginner wrote:
<blockquote cite="mid:13015841.post@talk.nabble.com" type="cite">
  <pre wrap="">Yes, instead I don't want to write any DRL file..... I want to create Rule
directliy in  PackageBuilder  object , instantiate it and run the rule
through it. 
If it is not possible then I want to create drl file once and later on I
have to modify PackageBuilder from my Java code or program code.
is there any information regarding it is available.
Thanks &amp; with Regards
Abhi..

  </pre>
</blockquote>
You cannot change a rule once its created, but you can add the rule
again which will over-write the old version. If you don't want to use
drl you can build your AST, via the descr objects directly, however
this is not for the faint hearted its considered very experience
developer stuff. Personally I would use a templating language to
generate your drls, based from what ever objects you have that are
codifying your rules.<br>
<blockquote cite="mid:13015841.post@talk.nabble.com" type="cite">
  <pre wrap="">
Anstis, Michael (M.) wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Do you mean, once you've loaded a DRL file into a Package object you want
to
modify rule definitions?

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>
[<a class="moz-txt-link-freetext" href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</a>] On Behalf Of Drool_Beginner
Sent: 03 October 2007 09:58
To: <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
Subject: [rules-users] RE: Regarding Package .Pkg


Thanks Anstis, 
for your clarification. Is there a way that I can directly manipulate
directly this "PackageBuilder" from my JAVA code . Instead of updating drl
file. 
Thanks &amp; Regards,
Abhi..

Anstis, Michael (M.) wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">I think you might misunderstand.
 
A DRL file contains text defining rules. Each DRL file is assigned a
package
name (much like Java).
 
The DRL file is loaded, parsed (PackageBuilder) and converted into a
Package
instance. Packages are added to RuleBases from which WorkingMemory can be
obtained for rule execution.
 
There is no "pkg" file - the Java Package can be converted into a stream
using Java's ObjectOutputStream.
 
Have a look at "1.6. The Drools Rule Engine - 1.6.1. Overview" in the
excellent documentation.


  _____  

From: <a class="moz-txt-link-abbreviated" href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>
[<a class="moz-txt-link-freetext" href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</a>] On Behalf Of Drool_Beginner
Sent: 03 October 2007 08:53
To: <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
Subject: [rules-users] Regarding Package .Pkg


Dear All, Where I can get more information about .pkg, Since I have got
information that .drl file get converted in to pkg(Package), which is
writing .drl information into Stream. Please send me some information as
our
requirement is some what to take benifit from .pkg. Thanks in Advance
Regards, Abhishek 

  _____  

View this message in context: Regarding
<a class="moz-txt-link-rfc2396E" href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13014401">&lt;http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13014401&gt;</a>
Package .Pkg
Sent from the drools - user mailing
<a class="moz-txt-link-rfc2396E" href="http://www.nabble.com/drools---user-f11823.html">&lt;http://www.nabble.com/drools---user-f11823.html&gt;</a> list archive at
Nabble.com.



 
_______________________________________________
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="">-- 
View this message in context:
<a class="moz-txt-link-freetext" href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015081">http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015081</a>
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
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>

 
_______________________________________________
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>