<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><TITLE>rules-users Digest, Vol 11, Issue 31</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=024310814-04102007><FONT face=Arial
color=#0000ff size=2>read about "globals" in the
documentation.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>Sikkandar
Nawabjan<BR><B>Sent:</B> 04 October 2007 14:58<BR><B>To:</B>
rules-users@lists.jboss.org<BR><B>Subject:</B> RE: How to set the static
variable<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText39161 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I want to create and set
the static flag(its not part of my object) in working memory and
want to use it across all my drls/dsls.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>How to do that.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Basha</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature78831 dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org on
behalf of rules-users-request@lists.jboss.org<BR><B>Sent:</B> Thu 10/4/2007
6:46 PM<BR><B>To:</B> rules-users@lists.jboss.org<BR><B>Subject:</B>
rules-users Digest, Vol 11, Issue 31<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Send rules-users mailing list submissions
to<BR>
rules-users@lists.jboss.org<BR><BR>To subscribe or unsubscribe via the World
Wide Web, visit<BR> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>or,
via email, send a message with subject or body 'help'
to<BR>
rules-users-request@lists.jboss.org<BR><BR>You can reach the person managing
the list at<BR>
rules-users-owner@lists.jboss.org<BR><BR>When replying, please edit your
Subject line so it is more specific<BR>than "Re: Contents of rules-users
digest..."<BR><BR><BR>Today's Topics:<BR><BR> 1. RE: RE: RE:
Regarding Package .Pkg (Drool_Beginner)<BR> 2. RE: RE: RE: RE:
Regarding Package .Pkg (Anstis, Michael (M.))<BR> 3. Fucntion call
in rule
(prateek.katiyar@wipro.com)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message:
1<BR>Date: Thu, 4 Oct 2007 05:30:16 -0700 (PDT)<BR>From: Drool_Beginner
<4cont8@gmail.com><BR>Subject: [rules-users] RE: RE: RE: Regarding
Package .Pkg<BR>To: rules-users@lists.jboss.org<BR>Message-ID:
<13038788.post@talk.nabble.com><BR>Content-Type: text/plain;
charset=us-ascii<BR><BR><BR>Hi Michael,<BR><BR>Can you please provide some
code sample for building rule with
API.<BR><BR>Regrads,<BR>Abhi...<BR><BR><BR>Anstis, Michael (M.)
wrote:<BR>><BR>> I recall reading other users building rules with the
API.<BR>><BR>> But it is not something I have any experience
of.<BR>><BR>> Sorry.<BR>><BR>> -----Original Message-----<BR>>
From: rules-users-bounces@lists.jboss.org<BR>> [<A
href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</A>]
On Behalf Of Drool_Beginner<BR>> Sent: 03 October 2007 11:25<BR>> To:
rules-users@lists.jboss.org<BR>> Subject: [rules-users] RE: RE: Regarding
Package .Pkg<BR>><BR>><BR>> Yes, instead I don't want to write any
DRL file..... I want to create Rule<BR>> directliy in
PackageBuilder object , instantiate it and run the rule<BR>> through
it.<BR>> If it is not possible then I want to create drl file once and
later on I<BR>> have to modify PackageBuilder from my Java code or program
code.<BR>> is there any information regarding it is available.<BR>>
Thanks & with Regards<BR>> Abhi..<BR>><BR>><BR>> Anstis,
Michael (M.) wrote:<BR>>><BR>>> Do you mean, once you've loaded a
DRL file into a Package object you want<BR>>> to<BR>>> modify rule
definitions?<BR>>><BR>>> -----Original Message-----<BR>>>
From: rules-users-bounces@lists.jboss.org<BR>>> [<A
href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</A>]
On Behalf Of Drool_Beginner<BR>>> Sent: 03 October 2007
09:58<BR>>> To: rules-users@lists.jboss.org<BR>>> Subject:
[rules-users] RE: Regarding Package .Pkg<BR>>><BR>>><BR>>>
Thanks Anstis,<BR>>> for your clarification. Is there a way that I can
directly manipulate<BR>>> directly this "PackageBuilder" from my JAVA
code . Instead of updating<BR>>> drl<BR>>> file.<BR>>>
Thanks & Regards,<BR>>> Abhi..<BR>>><BR>>> Anstis,
Michael (M.) wrote:<BR>>>><BR>>>> I think you might
misunderstand.<BR>>>> <BR>>>> A DRL file contains text
defining rules. Each DRL file is assigned a<BR>>>>
package<BR>>>> name (much like
Java).<BR>>>> <BR>>>> The DRL file is loaded, parsed
(PackageBuilder) and converted into a<BR>>>> Package<BR>>>>
instance. Packages are added to RuleBases from which WorkingMemory
can<BR>>>> be<BR>>>> obtained for rule
execution.<BR>>>> <BR>>>> There is no "pkg" file - the
Java Package can be converted into a stream<BR>>>> using Java's
ObjectOutputStream.<BR>>>> <BR>>>> Have a look at "1.6.
The Drools Rule Engine - 1.6.1. Overview" in the<BR>>>> excellent
documentation.<BR>>>><BR>>>><BR>>>>
_____ <BR>>>><BR>>>> From:
rules-users-bounces@lists.jboss.org<BR>>>> [<A
href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</A>]
On Behalf Of Drool_Beginner<BR>>>> Sent: 03 October 2007
08:53<BR>>>> To: rules-users@lists.jboss.org<BR>>>> Subject:
[rules-users] Regarding Package
.Pkg<BR>>>><BR>>>><BR>>>> Dear All, Where I can get
more information about .pkg, Since I have got<BR>>>> information that
.drl file get converted in to pkg(Package), which is<BR>>>> writing
.drl information into Stream. Please send me some information
as<BR>>>> our<BR>>>> requirement is some what to take
benifit from .pkg. Thanks in Advance<BR>>>> Regards,
Abhishek<BR>>>><BR>>>>
_____ <BR>>>><BR>>>> View this message in context:
Regarding<BR>>>> <<A
href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13014401">http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13014401</A>><BR>>>>
Package .Pkg<BR>>>> Sent from the drools - user
mailing<BR>>>> <<A
href="http://www.nabble.com/drools---user-f11823.html">http://www.nabble.com/drools---user-f11823.html</A>>
list archive at<BR>>>>
Nabble.com.<BR>>>><BR>>>><BR>>>><BR>>>> <BR>>>>
_______________________________________________<BR>>>> rules-users
mailing list<BR>>>> rules-users@lists.jboss.org<BR>>>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>>>><BR>>>><BR>>><BR>>>
--<BR>>> View this message in context:<BR>>> <A
href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015081">http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015081</A><BR>>>
Sent from the drools - user mailing list archive at
Nabble.com.<BR>>><BR>>>
_______________________________________________<BR>>> rules-users
mailing list<BR>>> rules-users@lists.jboss.org<BR>>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>>><BR>>> <BR>>>
_______________________________________________<BR>>> rules-users
mailing list<BR>>> rules-users@lists.jboss.org<BR>>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>>><BR>>><BR>><BR>>
--<BR>> View this message in context:<BR>> <A
href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015841">http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015841</A><BR>>
Sent from the drools - user mailing list archive at
Nabble.com.<BR>><BR>>
_______________________________________________<BR>> rules-users mailing
list<BR>> rules-users@lists.jboss.org<BR>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>><BR>> <BR>>
_______________________________________________<BR>> rules-users mailing
list<BR>> rules-users@lists.jboss.org<BR>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>><BR>><BR><BR>--<BR>View
this message in context: <A
href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13038788">http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13038788</A><BR>Sent
from the drools - user mailing list archive at
Nabble.com.<BR><BR><BR><BR>------------------------------<BR><BR>Message:
2<BR>Date: Thu, 4 Oct 2007 13:51:05 +0100<BR>From: "Anstis, Michael \(M.\)"
<manstis1@ford.com><BR>Subject: RE: [rules-users] RE: RE: RE: Regarding
Package .Pkg<BR>To: "Rules Users List"
<rules-users@lists.jboss.org><BR>Message-ID:<BR>
<6CE83AFC8500B641AE00AC1674A3B4AC037EF825@eu1wam08.warley.ford.com><BR>Content-Type:
text/plain; charset="us-ascii"<BR><BR>"...it is not something I have any
experience of."<BR><BR>Sorry, perhaps somebody else can
aid.<BR><BR>-----Original Message-----<BR>From:
rules-users-bounces@lists.jboss.org<BR>[<A
href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</A>]
On Behalf Of Drool_Beginner<BR>Sent: 04 October 2007 13:30<BR>To:
rules-users@lists.jboss.org<BR>Subject: [rules-users] RE: RE: RE: Regarding
Package .Pkg<BR><BR><BR>Hi Michael,<BR><BR>Can you please provide some code
sample for building rule with
API.<BR><BR>Regrads,<BR>Abhi...<BR><BR><BR>Anstis, Michael (M.)
wrote:<BR>><BR>> I recall reading other users building rules with the
API.<BR>><BR>> But it is not something I have any experience
of.<BR>><BR>> Sorry.<BR>><BR>> -----Original Message-----<BR>>
From: rules-users-bounces@lists.jboss.org<BR>> [<A
href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</A>]
On Behalf Of Drool_Beginner<BR>> Sent: 03 October 2007 11:25<BR>> To:
rules-users@lists.jboss.org<BR>> Subject: [rules-users] RE: RE: Regarding
Package .Pkg<BR>><BR>><BR>> Yes, instead I don't want to write any
DRL file..... I want to create Rule<BR>> directliy in
PackageBuilder object , instantiate it and run the rule<BR>> through
it.<BR>> If it is not possible then I want to create drl file once and
later on I<BR>> have to modify PackageBuilder from my Java code or program
code.<BR>> is there any information regarding it is available.<BR>>
Thanks & with Regards<BR>> Abhi..<BR>><BR>><BR>> Anstis,
Michael (M.) wrote:<BR>>><BR>>> Do you mean, once you've loaded a
DRL file into a Package object you want<BR>>> to<BR>>> modify rule
definitions?<BR>>><BR>>> -----Original Message-----<BR>>>
From: rules-users-bounces@lists.jboss.org<BR>>> [<A
href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</A>]
On Behalf Of Drool_Beginner<BR>>> Sent: 03 October 2007
09:58<BR>>> To: rules-users@lists.jboss.org<BR>>> Subject:
[rules-users] RE: Regarding Package .Pkg<BR>>><BR>>><BR>>>
Thanks Anstis,<BR>>> for your clarification. Is there a way that I can
directly manipulate<BR>>> directly this "PackageBuilder" from my JAVA
code . Instead of updating<BR>>> drl<BR>>> file.<BR>>>
Thanks & Regards,<BR>>> Abhi..<BR>>><BR>>> Anstis,
Michael (M.) wrote:<BR>>>><BR>>>> I think you might
misunderstand.<BR>>>> <BR>>>> A DRL file contains text
defining rules. Each DRL file is assigned a<BR>>>>
package<BR>>>> name (much like
Java).<BR>>>> <BR>>>> The DRL file is loaded, parsed
(PackageBuilder) and converted into a<BR>>>> Package<BR>>>>
instance. Packages are added to RuleBases from which WorkingMemory
can<BR>>>> be<BR>>>> obtained for rule
execution.<BR>>>> <BR>>>> There is no "pkg" file - the
Java Package can be converted into a stream<BR>>>> using Java's
ObjectOutputStream.<BR>>>> <BR>>>> Have a look at "1.6.
The Drools Rule Engine - 1.6.1. Overview" in the<BR>>>> excellent
documentation.<BR>>>><BR>>>><BR>>>>
_____ <BR>>>><BR>>>> From:
rules-users-bounces@lists.jboss.org<BR>>>> [<A
href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</A>]
On Behalf Of Drool_Beginner<BR>>>> Sent: 03 October 2007
08:53<BR>>>> To: rules-users@lists.jboss.org<BR>>>> Subject:
[rules-users] Regarding Package
.Pkg<BR>>>><BR>>>><BR>>>> Dear All, Where I can get
more information about .pkg, Since I have got<BR>>>> information that
.drl file get converted in to pkg(Package), which is<BR>>>> writing
.drl information into Stream. Please send me some information
as<BR>>>> our<BR>>>> requirement is some what to take
benifit from .pkg. Thanks in Advance<BR>>>> Regards,
Abhishek<BR>>>><BR>>>>
_____ <BR>>>><BR>>>> View this message in context:
Regarding<BR>>>> <<A
href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13014401">http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13014401</A>><BR>>>>
Package .Pkg<BR>>>> Sent from the drools - user
mailing<BR>>>> <<A
href="http://www.nabble.com/drools---user-f11823.html">http://www.nabble.com/drools---user-f11823.html</A>>
list archive at<BR>>>>
Nabble.com.<BR>>>><BR>>>><BR>>>><BR>>>> <BR>>>>
_______________________________________________<BR>>>> rules-users
mailing list<BR>>>> rules-users@lists.jboss.org<BR>>>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>>>><BR>>>><BR>>><BR>>>
--<BR>>> View this message in context:<BR>>> <A
href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015081">http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015081</A><BR>>>
Sent from the drools - user mailing list archive at
Nabble.com.<BR>>><BR>>>
_______________________________________________<BR>>> rules-users
mailing list<BR>>> rules-users@lists.jboss.org<BR>>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>>><BR>>> <BR>>>
_______________________________________________<BR>>> rules-users
mailing list<BR>>> rules-users@lists.jboss.org<BR>>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>>><BR>>><BR>><BR>>
--<BR>> View this message in context:<BR>> <A
href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015841">http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015841</A><BR>>
Sent from the drools - user mailing list archive at
Nabble.com.<BR>><BR>>
_______________________________________________<BR>> rules-users mailing
list<BR>> rules-users@lists.jboss.org<BR>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>><BR>> <BR>>
_______________________________________________<BR>> rules-users mailing
list<BR>> rules-users@lists.jboss.org<BR>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>><BR>><BR><BR>--<BR>View
this message in context:<BR><A
href="http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13038788">http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13038788</A><BR>Sent
from the drools - user mailing list archive at
Nabble.com.<BR><BR>_______________________________________________<BR>rules-users
mailing list<BR>rules-users@lists.jboss.org<BR><A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>--------------
next part --------------<BR>A non-text attachment was scrubbed...<BR>Name:
smime.p7s<BR>Type: application/x-pkcs7-signature<BR>Size: 4159 bytes<BR>Desc:
not available<BR>Url : <A
href="http://lists.jboss.org/pipermail/rules-users/attachments/20071004/90322891/smime-0001.bin">http://lists.jboss.org/pipermail/rules-users/attachments/20071004/90322891/smime-0001.bin</A><BR><BR>------------------------------<BR><BR>Message:
3<BR>Date: Thu, 4 Oct 2007 18:46:10 +0530<BR>From:
<prateek.katiyar@wipro.com><BR>Subject: [rules-users] Fucntion call in
rule<BR>To:
<rules-users@lists.jboss.org><BR>Message-ID:<BR>
<A94AD757879CE142B7CEBC3E6FF5D3EC02C6A9E6@BLR-EC-MBX02.wipro.com><BR>Content-Type:
text/plain; charset="iso-8859-1"<BR><BR>Skipped content of type
multipart/alternative-------------- next part --------------<BR>A non-text
attachment was scrubbed...<BR>Name: src.zip<BR>Type:
application/x-zip-compressed<BR>Size: 3282 bytes<BR>Desc: src.zip<BR>Url : <A
href="http://lists.jboss.org/pipermail/rules-users/attachments/20071004/d5c72eda/src.bin">http://lists.jboss.org/pipermail/rules-users/attachments/20071004/d5c72eda/src.bin</A><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>rules-users
mailing list<BR>rules-users@lists.jboss.org<BR><A
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR><BR>End
of rules-users Digest, Vol 11, Issue
31<BR>*******************************************<BR></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>