[rules-users] RE: How to set the static variable

Anstis, Michael (M.) manstis1 at ford.com
Thu Oct 4 10:08:42 EDT 2007


read about "globals" in the documentation.


  _____  

From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Sikkandar Nawabjan
Sent: 04 October 2007 14:58
To: rules-users at lists.jboss.org
Subject: RE: How to set the static variable


 
Hi,
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.
How to do that.
Basha
 

  _____  

From: rules-users-bounces at lists.jboss.org on behalf of
rules-users-request at lists.jboss.org
Sent: Thu 10/4/2007 6:46 PM
To: rules-users at lists.jboss.org
Subject: rules-users Digest, Vol 11, Issue 31



Send rules-users mailing list submissions to
        rules-users at lists.jboss.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
        rules-users-request at lists.jboss.org

You can reach the person managing the list at
        rules-users-owner at lists.jboss.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."


Today's Topics:

   1. RE: RE: RE: Regarding Package .Pkg (Drool_Beginner)
   2. RE: RE: RE: RE: Regarding Package .Pkg (Anstis, Michael (M.))
   3. Fucntion call in rule (prateek.katiyar at wipro.com)


----------------------------------------------------------------------

Message: 1
Date: Thu, 4 Oct 2007 05:30:16 -0700 (PDT)
From: Drool_Beginner <4cont8 at gmail.com>
Subject: [rules-users] RE: RE: RE: Regarding Package .Pkg
To: rules-users at lists.jboss.org
Message-ID: <13038788.post at talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi Michael,

Can you please provide some code sample for building rule with API.

Regrads,
Abhi...


Anstis, Michael (M.) wrote:
>
> I recall reading other users building rules with the API.
>
> But it is not something I have any experience of.
>
> Sorry.
>
> -----Original Message-----
> From: rules-users-bounces at lists.jboss.org
> [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Drool_Beginner
> Sent: 03 October 2007 11:25
> To: rules-users at lists.jboss.org
> Subject: [rules-users] RE: RE: Regarding Package .Pkg
>
>
> 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 & with Regards
> Abhi..
>
>
> Anstis, Michael (M.) wrote:
>>
>> Do you mean, once you've loaded a DRL file into a Package object you want
>> to
>> modify rule definitions?
>>
>> -----Original Message-----
>> From: rules-users-bounces at lists.jboss.org
>> [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Drool_Beginner
>> Sent: 03 October 2007 09:58
>> To: rules-users at lists.jboss.org
>> 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 & Regards,
>> Abhi..
>>
>> Anstis, Michael (M.) wrote:
>>>
>>> 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: rules-users-bounces at lists.jboss.org
>>> [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Drool_Beginner
>>> Sent: 03 October 2007 08:53
>>> To: rules-users at lists.jboss.org
>>> 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
>>> <http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13014401>
>>> Package .Pkg
>>> Sent from the drools - user mailing
>>> <http://www.nabble.com/drools---user-f11823.html> list archive at
>>> Nabble.com.
>>>
>>>
>>>
>>> 
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015081
>> Sent from the drools - user mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>> 
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015841
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>

--
View this message in context:
http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13038788
Sent from the drools - user mailing list archive at Nabble.com.



------------------------------

Message: 2
Date: Thu, 4 Oct 2007 13:51:05 +0100
From: "Anstis, Michael \(M.\)" <manstis1 at ford.com>
Subject: RE: [rules-users] RE: RE: RE: Regarding Package .Pkg
To: "Rules Users List" <rules-users at lists.jboss.org>
Message-ID:
        <6CE83AFC8500B641AE00AC1674A3B4AC037EF825 at eu1wam08.warley.ford.com>
Content-Type: text/plain; charset="us-ascii"

"...it is not something I have any experience of."

Sorry, perhaps somebody else can aid.

-----Original Message-----
From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Drool_Beginner
Sent: 04 October 2007 13:30
To: rules-users at lists.jboss.org
Subject: [rules-users] RE: RE: RE: Regarding Package .Pkg


Hi Michael,

Can you please provide some code sample for building rule with API.

Regrads,
Abhi...


Anstis, Michael (M.) wrote:
>
> I recall reading other users building rules with the API.
>
> But it is not something I have any experience of.
>
> Sorry.
>
> -----Original Message-----
> From: rules-users-bounces at lists.jboss.org
> [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Drool_Beginner
> Sent: 03 October 2007 11:25
> To: rules-users at lists.jboss.org
> Subject: [rules-users] RE: RE: Regarding Package .Pkg
>
>
> 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 & with Regards
> Abhi..
>
>
> Anstis, Michael (M.) wrote:
>>
>> Do you mean, once you've loaded a DRL file into a Package object you want
>> to
>> modify rule definitions?
>>
>> -----Original Message-----
>> From: rules-users-bounces at lists.jboss.org
>> [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Drool_Beginner
>> Sent: 03 October 2007 09:58
>> To: rules-users at lists.jboss.org
>> 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 & Regards,
>> Abhi..
>>
>> Anstis, Michael (M.) wrote:
>>>
>>> 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: rules-users-bounces at lists.jboss.org
>>> [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Drool_Beginner
>>> Sent: 03 October 2007 08:53
>>> To: rules-users at lists.jboss.org
>>> 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
>>> <http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13014401>
>>> Package .Pkg
>>> Sent from the drools - user mailing
>>> <http://www.nabble.com/drools---user-f11823.html> list archive at
>>> Nabble.com.
>>>
>>>
>>>
>>> 
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015081
>> Sent from the drools - user mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>> 
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015841
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>

--
View this message in context:
http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13038788
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4159 bytes
Desc: not available
Url :
http://lists.jboss.org/pipermail/rules-users/attachments/20071004/90322891/s
mime-0001.bin

------------------------------

Message: 3
Date: Thu, 4 Oct 2007 18:46:10 +0530
From: <prateek.katiyar at wipro.com>
Subject: [rules-users] Fucntion call in rule
To: <rules-users at lists.jboss.org>
Message-ID:
        <A94AD757879CE142B7CEBC3E6FF5D3EC02C6A9E6 at BLR-EC-MBX02.wipro.com>
Content-Type: text/plain; charset="iso-8859-1"

Skipped content of type multipart/alternative-------------- next part
--------------
A non-text attachment was scrubbed...
Name: src.zip
Type: application/x-zip-compressed
Size: 3282 bytes
Desc: src.zip
Url :
http://lists.jboss.org/pipermail/rules-users/attachments/20071004/d5c72eda/s
rc.bin

------------------------------

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


End of rules-users Digest, Vol 11, Issue 31
*******************************************


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071004/0e7e001b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4159 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20071004/0e7e001b/attachment.bin 


More information about the rules-users mailing list