Re: [rules-users] Conversion from Normal Decision Tables to Web-Based Tables and vice-versa

2009-10-05 Thread Vikrant Yagnick
Hi Barry,

Sorry for replying pretty late to this e-mail, there was something wrong with 
my subscription to the list.
We did not pursue this further as we got our clients to agree on using the 
Excel based decision tables(In fact they wanted Excel, but with more 
validations to ensure that someone does not make a mistake while entering 
rules!!).

Overall, it looked like all we needed to do was to somehow convert our excel 
columns into the XML of the decision table and put it in via WebDAV.

If you had made progress on this, please share it with the list for future 
reference.
Cheers,
Vikrant

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Barry K
Sent: Friday, August 14, 2009 1:48 AM
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Conversion from Normal Decision Tables to Web-Based 
Tables and vice-versa


Have you made any progress on this migration.  I am currently estimating the
migration path for our Excel based rules to web based decision tables.  Can
you describe the steps you were required to take?

Anyone else, please feel free to comment on your Excel to Web Decision Table
migrations.


Thanks
Barry


Vikrant Yagnick wrote:

 Hi All,

 I am wondering if anyone has had a requirement where they would need to
 convert their normal decision tables into web-based decision tables(or
 vice-versa).

 If someone has already done this, can they share either some code or
 pointers to how this can be done? (I guess it will involving parsing the
 Excel and creating the XML for the decision table).

 Will this be a useful feature to have?

 Cheers,
 Vikrant

 MASTEK LTD.
 Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
 In the US, we're called MAJESCOMASTEK

 ~~
 Opinions expressed in this e-mail are those of the individual and not that
 of Mastek Limited, unless specifically indicated to that effect. Mastek
 Limited does not accept any responsibility or liability for it. This
 e-mail and attachments (if any) transmitted with it are confidential
 and/or privileged and solely for the use of the intended person or entity
 to which it is addressed. Any review, re-transmission, dissemination or
 other use of or taking of any action in reliance upon this information by
 persons or entities other than the intended recipient is prohibited. This
 e-mail and its attachments have been scanned for the presence of computer
 viruses. It is the responsibility of the recipient to run the virus check
 on e-mails and attachments before opening them. If you have received this
 e-mail in error, kindly delete this e-mail from desktop and server.
 ~~

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



--
View this message in context: 
http://www.nabble.com/Conversion-from-Normal-Decision-Tables-to-Web-Based-Tables-and-vice-versa-tp22098053p24958056.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Multiple worksheet decision tables

2009-10-01 Thread Vikrant Yagnick
Hi,

I had  written some code for this a while ago. But, basically Drools uses jxl 
for compiling decision tables.
You can also use JXL. It has an API that gives you all the worksheet names, 
which you can then pass to the compiler one by one to compile all your decision 
tables.

From memory it went something like this (Import jxl***.jar)

Worksheet w=new WorkSheer(new File(filepath.xls));

w.getSheets();

This should get you a list of sheets.

Cheers,
Vikrant

From: rules-users-boun...@lists.jboss.org [rules-users-boun...@lists.jboss.org] 
On Behalf Of Swindells, Thomas [tswinde...@nds.com]
Sent: Thursday, October 01, 2009 5:33 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] Multiple worksheet decision tables

Is it possible to get Drools to load all the rules table within an excel 
spreadsheet if they are spread across multiple worksheets?
From the documentation I have read it appears drools will only load the rules 
from the first/a specified worksheet.
The only way I have found to do it is to load the worksheet multiple times and 
explicitly state each of the worksheet names in turn.  Is this the only way?
If so is there any easy way to get the names of all the worksheets in the file? 
The application won't know the worksheet names ahead of time.

Many thanks,

Thomas


**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Identify Rule on Attributes

2009-03-13 Thread Vikrant Yagnick
Hi Nikhil,

Drools implements the RETE algorithm. The average rules user does not need to 
bother or even care about it. All you need to do is use the rule engine(for 
which you do not need to design or write your own algorithm) and it will 
automatically do the work for you.

Cheers,
Vikrant

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Nikhil_dev
Sent: Friday, March 13, 2009 11:35 AM
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Identify Rule on Attributes



from the doc i got what is Rete algo ... but not getting the way to
implement it using drools


Nikhil_dev wrote:


 if this is the doc
 http://downloads.jboss.com/drools/docs/4.0.4.17825.GA/html_single/index.html
 u are talking about then i coudl'nt  find much help.
 It will be very helpful if u can give me a kick start on the same...
 since i am just an average rule engine user.some helpful doc on the
 same



 Greg Barton wrote:


 Yes, if you use a rules engine that implements rete the functionality you
 need is available.

 Read the Drools docs.

 Carefully.

 GreG

 On Mar 12, 2009, at 23:40, Nikhil_dev k.nik...@verchaska.com wrote:


 thank u Scott and Greg for u'r reply..

 by the way Greg is it possible for me to use this rete algo through rule
 engine as this functionality already available in the core of Rule Enigne
 or
 should i implement this out side rule engine.


 Greg Barton wrote:


 That's the core functionality of a rule engine.  The rete algorithm does
 this, and drools implements rete.

 --- On Thu, 3/12/09, Nikhil_dev k.nik...@verchaska.com wrote:

 so now is there
 any way with the help of drools we can identify which rule
 to execute with
 out executing all of them one after the another



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




 -
 Regards,
 :working:Nikhil
 --
 View this message in context:
 http://www.nabble.com/Identify-Rule-on-Attributes-tp22471473p22490126.html
 Sent from the drools - user mailing list archive at Nabble.com.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users






-
Regards,
:working:Nikhil
--
View this message in context: 
http://www.nabble.com/Identify-Rule-on-Attributes-tp22471473p22490776.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Help on using Drools with embedded objects

2009-02-23 Thread Vikrant Yagnick
There were a couple of ways mentioned in the Drools documentation for 4.0.7.


1)  Eval is the Quick  way to get this done. This does have a performance 
penalty though

2)  Read up on using the - operator that allowed you to go deeper into the 
object hierarchy.

3)  A third way which I used was to write setter and getter methods for 
fields I needed in the rules condition in the root class itself. Since Drools 
introspects on setters and getters this seemed to work.

To take an example, if I have a class as follows:-

Class B{
int a;
public int geta() {};
public int seta() {};
}

Class A {

B b;

public int getA()
{
Return this.b.geta();
}

Public void seta(int b)
{
this.b.seta(b);
}


}




From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Divya Rajendranath
Sent: Monday, February 23, 2009 2:57 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] Help on using Drools with embedded objects


Hi,

I am planning to use Drools - JBoss Rules Engine. My requirement is to disburse 
mails from my application to different groups based on various criteria. I want 
to use Drools here.

My object structure is as follows:

class A{

String B = ;

B b;

C c;
}

Hence Obj A has embedded objects within it, and obj B and C further has 
embedded objects.

class B {

String X;

Z z;

}

class Z{

String t;

String s;

}

The decision on sending the mails based on the fields in embedded objects of A. 
I pass instance of A to Drools

Format of drl file:

package...;

import ..;

rule Test

when $a:A(B(Z(s == testvalue)))

then

$a.setSomething();

update($a);

end

I wanted to know if this (accessing fields in embedded/child object) is 
feasible with Drools.

I get an error saying UNable to compile myfile.drl when i try to fo this.

Could some one look into this issue and let me know the reason for this ?



Thanks

-D



MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Conversion from Normal Decision Tables to Web-Based Tables and vice-versa

2009-02-19 Thread Vikrant Yagnick
Hi All,

I am wondering if anyone has had a requirement where they would need to convert 
their normal decision tables into web-based decision tables(or vice-versa).

If someone has already done this, can they share either some code or pointers 
to how this can be done? (I guess it will involving parsing the Excel and 
creating the XML for the decision table).

Will this be a useful feature to have?

Cheers,
Vikrant

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Rule Templates and Guvnor

2009-02-18 Thread Vikrant Yagnick
Hi All,

I was wondering if there is any support for Rule Templates directly in Guvnor.  
I haven't been able to find anything in the official documentation or by 
playing around Guvnor.
Does someone have any ideas as to how one would store templates in Guvnor?


Cheers,
Vikrant Yagnick
Software Designer - CLICO

MajescoMastek Ltd | Mastek Millennium Center,Millennium Business Park, Mahape, 
Navi  Mumbai 400-710   |
(T) 91 22 6695 Extn - 5230 | Mobile: +919833490598 | www.mastek.com

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Rule Templates and Guvnor

2009-02-18 Thread Vikrant Yagnick
Hi Tony,

We were actually looking to use Templates because our clients objected to 
having code or pseudo-code in an Excel along with the data.
Templates, seem an excellent feature where the code bits can be separated from 
the data bits.

One thought I had was to store the templates in the other assets part of 
Guvnor and the data as well and somehow write something that can pull these out 
at run-time and create and compile the rules. However, we do loose all the 
other functionality that Guvnor provides.(Like rule analysis etc).

Any idea, if Guvnor is going to support templates in a future release?

Cheers,
Vikrant

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Toni Rikkola
Sent: Wednesday, February 18, 2009 5:02 PM
To: Rules Users List
Subject: Re: [rules-users] Rule Templates and Guvnor

Hi,

You can't use templates at the moment.

But you can use the copy function in the rule editor. Create a rule that
is used as a base, disable it and copy this rule when creating new ones.

Toni Rikkola

Vikrant Yagnick wrote:

 Hi All,

 I was wondering if there is any support for Rule Templates directly in
 Guvnor. I haven't been able to find anything in the official
 documentation or by playing around Guvnor.

 Does someone have any ideas as to how one would store templates in
 Guvnor?

 *Cheers,*

 *Vikrant Yagnick*

 Software Designer - CLICO

 MajescoMastek Ltd | Mastek Millennium Center,Millennium Business Park,
 Mahape, Navi Mumbai 400-710 |

 (T) 91 22 6695 Extn - 5230 | Mobile: +919833490598 | _www.mastek.com_




 MASTEK LTD.
 Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
 In the US, we're called MAJESCOMASTEK

 ~~
 Opinions expressed in this e-mail are those of the individual and not
 that of Mastek Limited, unless specifically indicated to that effect.
 Mastek Limited does not accept any responsibility or liability for it.
 This e-mail and attachments (if any) transmitted with it are
 confidential and/or privileged and solely for the use of the intended
 person or entity to which it is addressed. Any review,
 re-transmission, dissemination or other use of or taking of any action
 in reliance upon this information by persons or entities other than
 the intended recipient is prohibited. This e-mail and its attachments
 have been scanned for the presence of computer viruses. It is the
 responsibility of the recipient to run the virus check on e-mails and
 attachments before opening them. If you have received this e-mail in
 error, kindly delete this e-mail from desktop and server.
 ~~

 

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Guvnor Enumerations in Web-Based Decision tables

2009-02-12 Thread Vikrant Yagnick
Hi All,

I was wondering if it is possible to use Enumerations for a column in the  
Web-Based decision tables?

Currently, the column configuration uses  a static list of values, but it would 
be really cool if we could specify an Enumeration name there and the 
enumeration could itself come from the database thus making the columns  show a 
list of values dynamically.


Cheers,
Vikrant Yagnick
Software Designer - CLICO

MajescoMastek Ltd | Mastek Millennium Center,Millennium Business Park, Mahape, 
Navi  Mumbai 400-710   |
(T) 91 22 6695 Extn - 5230 | Mobile: +919833490598 | www.mastek.com

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] RE: Guvnor Enumerations in Web-Based Decision tables

2009-02-12 Thread Vikrant Yagnick
Sorry,
Found the answer to this one. I should have played around a little more.

Just in case anyone is interested if a column is defined as an enumeration it 
automatically appears as a drop down list in Guvnor Web Based Tables.

Cheers,
Vikrant

From: Vikrant Yagnick
Sent: Thursday, February 12, 2009 3:03 PM
To: Rules Users List
Subject: Guvnor Enumerations in Web-Based Decision tables

Hi All,

I was wondering if it is possible to use Enumerations for a column in the  
Web-Based decision tables?

Currently, the column configuration uses  a static list of values, but it would 
be really cool if we could specify an Enumeration name there and the 
enumeration could itself come from the database thus making the columns  show a 
list of values dynamically.


Cheers,
Vikrant Yagnick
Software Designer - CLICO

MajescoMastek Ltd | Mastek Millennium Center,Millennium Business Park, Mahape, 
Navi  Mumbai 400-710   |
(T) 91 22 6695 Extn - 5230 | Mobile: +919833490598 | www.mastek.com

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Drools Performance

2009-02-12 Thread Vikrant Yagnick
I can only add one thing to the answer.  I don't have performance metrics 
available, though I did some QD tests with 15000 rules and the speeds I got 
for the kind of processing I did (1-3 seconds) were really good.

The downside was the Permgen memory space usage which was pretty high and we 
are still grappling with that problem.  Mark had suggested that I use MVEL 
instead of the Java Dialect(which we could not do due to a time constraint) to 
reduce this usage besides we are now migrating to Drools 5 where we hope this 
has improved.

The performance will very well depend on how you design the rules(single 
rulebase, multiple rulebase) etc

Cheers,
Vikrant

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ashish Soni
Sent: Thursday, February 12, 2009 9:37 PM
To: Rules Users List
Subject: Re: [rules-users] Drools Performance

Any more response will be appreciated as i am in the final phase of drools 
evaluation and need this urgently.

regards,
Ashish
On Wed, Feb 11, 2009 at 3:21 PM, Steve Núñez 
steve.nu...@illation.com.aumailto:steve.nu...@illation.com.au wrote:
Ashish,

There are a lot of variables involved in performance benchmarking. Your 
scenario is common in many industries, such as insurance, that utilise large 
decision tables.

We have previously published benchmarks comparing various rules engines at 
http://illation.com.au/benchmarks, however they don't specifically address the 
use case of large rulesets, but instead stress various aspects of the rules 
engines.

We are working to put together a new set of benchmarks that will better test 
typical use cases, and we'd welcome your comments and participation. We are 
very early in this process, and should have a publically available 'blog to 
discuss the topic.

Regards,
- Steve Nunez



On 11/02/09 11:37 AM, Ashish Soni 
learnspr...@gmail.comhttp://learnspr...@gmail.com wrote:
Hi All ,

I am not sure if this question is asked previously but it would be great if any 
one can put some lights on this ..

If i have 10,000 rules with same priority or equal priority then how drools 
engine evaluate them or what is the path it chooses.

Also if there any performance metrics available ,please point to the links.


Thanks and Regards,
Ashish soni

___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Rules with from always loops (Drools 4.0.7)

2009-02-10 Thread Vikrant Yagnick
I have to quickly recheck the documentation by I think you have to write 
no-loop true. Just writing no-loop defaults to false I guess.

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Przemyslaw Rózycki
Sent: Tuesday, February 10, 2009 3:24 PM
To: Rules Users List
Subject: [rules-users] Rules with from always loops (Drools 4.0.7)

Hello,

why does such a rule always loop? Even if no-loop is used?

rule Hello World
no-loop
when
$fact1 : MyFactBean1(  )
$fact2 : MyFactBean2(  ) from $fact1
then
System.out.println(Fired!!!);
update($fact1);
end

The full code of my test application and drl is attached.

Best regards,
--
Przemysław Różycki
AMG.net, A Bull Group Company
ul. Łąkowa 29
90-554 Łódź
www.amg.net.pl


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Guvnor Web Based Decision Tables

2009-02-10 Thread Vikrant Yagnick
Hi all,

I had a question with regards to the Web Based Decision Tables functionality in 
Guvnor M5.
Is there a way to pre-load these tables using a java class or populating some 
JCR tables/files?

We are doing a drools implementation with quite a few decision tables which we 
think can be best served by using the web-based tables. However, we need to 
migrate data/masters from an older system and would need some kind of utility 
to populate the web based tables initially and then let the users do the 
modifications/changes.

Cheers,
Vikrant
MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Not looping the rule when more then 1 valid match is found

2009-01-30 Thread Vikrant Yagnick
I wonder if you can use a Global (or  a static variable) to do the same without 
really changing your rule.
Something like this.


Global Integer ruleFired;

rule try not to loop
when
$a : A($code : code)
$b : B(parentCode == $code)
then
   if(ruleFired != 1)
{
addResult($a, $b);
Drools.getWorkingMemory().setGlobal(“ruleFired”,1);
}
end


From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Maxim Veksler
Sent: Monday, January 26, 2009 5:52 PM
To: Rules Users List
Subject: [rules-users] Not looping the rule when more then 1 valid match is 
found

Hello group,

Assuming I have the rule:

rule try not to loop
when
$a : A($code : code)
$b : B(parentCode == $code)
then
addResult($a, $b);
end


and the classes:

public class A {
int code;
}

public class B {
int parentCode;
}



I insert into the WM 4 objects :
A(code = 1), A(code = 2);
B(parentCode=1), B(parentCode = 2);

I would like that after calling fireAllRules() only 1 match will be returned. I 
have no preference regarding which one, in the current situation 2 matches are 
returned.

Anyone could suggest a method to enforce this ?


Thank you,
Maxim.



MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] How to use Salience in a decision table

2008-12-17 Thread Vikrant Yagnick
Use the Keyword Priority in a decision table. It is the same as salience.

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Knapp, Barry
Sent: Wednesday, December 17, 2008 6:42 PM
To: Rules Users List
Subject: RE: [rules-users] How to use Salience in a decision table

Yes, add the following to the header after your import statement.

sequential

true


Barry


From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ravi Krishnamurthy
Sent: Tuesday, December 16, 2008 7:48 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] How to use Salience in a decision table

Hello:
Can Salience be used in a decision table.

Thanks,
Ravi



MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Guvnor and old BRMS clash?? (newbie)

2008-12-07 Thread Vikrant Yagnick
Hi Mike,

Yes they both can use the same repository. I had been running both applications 
on the same repository for demo purposes. So changes in one, would reflect in 
the other.
If you need to keep them separate, you should separate their JCR repositories.

Cheers,
Vikrant

From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of J Michael Dean [EMAIL 
PROTECTED]
Sent: Saturday, December 06, 2008 10:14 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] Guvnor and old BRMS clash?? (newbie)

Do Guvnor and 4.07 BRMS store their data in the same location in
JBoss?  I naively placed both war files into JBoss, thinking I could
experiment with Guvnor while using BRMS, and it appears that Guvnor
reads and writes to the same repository.  Do I need to keep these apps
in separate JBoss instances?

- Mike
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] BRMS in a WAS cluster

2008-11-17 Thread Vikrant Yagnick
Hi Seema,

I am attaching the repository.xml we had used. Yes, it could be possible that 
JackRabbit would need to be configured for clustering.(I guess we missed that 
one).  (You will need to change repository.xml in that case as specified).

The main reason we cannot use the BRMS for our current project is that our 
deadlines do not allow us to wait till the GA of Release 5 (when we can get 
enterprise support for it) and we cannot use 4.0.7 as it does not have some 
features important to us(like Security etc).

Release 5 of the BRMS is really good and if you can use it, you should go for 
it.

Cheers,
Vikrant

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seema Manivannan
Sent: Saturday, November 15, 2008 7:36 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS in a WAS cluster

Vikrant,

Thanks for the prompt reply. It would be surely helpful if you can post the 
samples which worked for you. What are the license and support issues that made 
you decide against BRMS? My understanding is that we need to enable JackRabbit 
clustering when we have JackRabbit running in all nodes of the app server 
cluster. Oracle RAD would handle only clustering at the DB level. Please 
correct me if I'm wrong.

Thanks,
Seema
On Thu, Nov 13, 2008 at 1:18 PM, Vikrant Yagnick [EMAIL 
PROTECTED]mailto:[EMAIL PROTECTED] wrote:

Hi Seema,



We had initially tried using the BRMS for rules using WAS 6.1 and Oracle in 
clustered modes.

While, we are not going for the BRMS right now due to license and support 
issues, from that experience I can answer some of the questions, below.



From: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] [mailto:[EMAIL 
PROTECTED]mailto:[EMAIL PROTECTED]] On Behalf Of Seema Manivannan
Sent: Thursday, November 13, 2008 6:15 AM
To: rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
Subject: Re: [rules-users] BRMS in a WAS cluster



hi,

I would appreciate any replies at least confirming that my approach below is 
right.

Thanks,
Seema

On Sun, Nov 9, 2008 at 11:16 PM, seemamani [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

We use Drools 4.0.7 in our application which is deployed on a WAS 6.1 cluster
and it is working fine. Now we want to deploy the Drools BRMS also in the
WAS cluster. I went through the Drools and Jackrabbit mailing lists and
documentation. Please confirm if my understanding of how this can be
implemented is correct.

1. By default, JackRabbit uses Apache Derby in-memory database which does
not support clustering



That is correct



2. We need to configure a persistence manager in JackRabbit that stores data
in a RDBMS like Oracle





Yes. If you need a sample, I can send it to you. (Though, I am sure there is a 
lot of material on this on the web).

3. I need to follow the instructions for JackRabbit clustering given here
http://wiki.apache.org/jackrabbit/Clustering



I am not sure, why you need Jack Rabbit clustering. If the tables are stored in 
the database, then I am assuming RAC should handle clustering at the DB level.  
Though, do correct me if I am wrong.



4.  Also, the Drools documentation says that The BRMS will create the
tables the first time it is started up if it is running against a fresh
(empty) RDBMS - so its important to note that the user credentials supplied
have permissions to create tables (at least initially, on first run, after
that they could be locked down).
Is it not possible to create the Oracle tables before running the BRMS (we
have permission issues in creating the tables from the application)? I
assume that the DDL for creating the tables is available with the JackRabbit
distribution.



One QD way may be to just create the tables in a test database and then make 
the schema into DDL scripts for use before installation.



5. Is there anything else I'm missing? Will BRMS work fine in the cluster
with the above setup?



My assumption is that the BRMS is just a web-app using the database as it's 
back-end and hence do not know of any issues it could face.

Thanks,
Seema
--
View this message in context: 
http://www.nabble.com/BRMS-in-a-WAS-cluster-tp20408825p20408825.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users







MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity

RE: [rules-users] BRMS in a WAS cluster

2008-11-12 Thread Vikrant Yagnick
Hi Seema,

We had initially tried using the BRMS for rules using WAS 6.1 and Oracle in 
clustered modes.
While, we are not going for the BRMS right now due to license and support 
issues, from that experience I can answer some of the questions, below.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seema Manivannan
Sent: Thursday, November 13, 2008 6:15 AM
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] BRMS in a WAS cluster

hi,

I would appreciate any replies at least confirming that my approach below is 
right.

Thanks,
Seema
On Sun, Nov 9, 2008 at 11:16 PM, seemamani [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

We use Drools 4.0.7 in our application which is deployed on a WAS 6.1 cluster
and it is working fine. Now we want to deploy the Drools BRMS also in the
WAS cluster. I went through the Drools and Jackrabbit mailing lists and
documentation. Please confirm if my understanding of how this can be
implemented is correct.

1. By default, JackRabbit uses Apache Derby in-memory database which does
not support clustering

That is correct


2. We need to configure a persistence manager in JackRabbit that stores data
in a RDBMS like Oracle


Yes. If you need a sample, I can send it to you. (Though, I am sure there is a 
lot of material on this on the web).

3. I need to follow the instructions for JackRabbit clustering given here
http://wiki.apache.org/jackrabbit/Clustering

I am not sure, why you need Jack Rabbit clustering. If the tables are stored in 
the database, then I am assuming RAC should handle clustering at the DB level.  
Though, do correct me if I am wrong.


4.  Also, the Drools documentation says that The BRMS will create the
tables the first time it is started up if it is running against a fresh
(empty) RDBMS - so its important to note that the user credentials supplied
have permissions to create tables (at least initially, on first run, after
that they could be locked down).
Is it not possible to create the Oracle tables before running the BRMS (we
have permission issues in creating the tables from the application)? I
assume that the DDL for creating the tables is available with the JackRabbit
distribution.

One QD way may be to just create the tables in a test database and then make 
the schema into DDL scripts for use before installation.


5. Is there anything else I'm missing? Will BRMS work fine in the cluster
with the above setup?

My assumption is that the BRMS is just a web-app using the database as it's 
back-end and hence do not know of any issues it could face.

Thanks,
Seema
--
View this message in context: 
http://www.nabble.com/BRMS-in-a-WAS-cluster-tp20408825p20408825.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] sequencial rules

2008-11-11 Thread Vikrant Yagnick
Check out the lock-on-active flag. That may be of help here.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kapila Silwathge
Sent: Tuesday, November 11, 2008 11:14 AM
To: Rules Users List
Subject: [rules-users] sequencial rules

Dear All,



I need to run about 10 rules sequentially.

When  it comes up to 4th rule it modifies the fact. But it should only
re-activate only the 5th rule onwards. Already ran rules(1,2 and 3[anyway
4th wont run when you set no-loop to true]) should be intact.



How can I do this?



Pls HELP


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] NoClassDefFoundError while invoking a consequence

2008-10-30 Thread Vikrant Yagnick
Hi All,

I am getting a rather strange error. When, I am invoking certain rules I get 
the following error as shown below(NoClassDefFoundError). I am using a 
stand-alone client (not an application server). The rulebase I am using is 
loaded in memory, so can't see why I should be getting this error.

When I print  the rules available in the RuleBase it correctly lists all the 
rules, yet I get the error below.

I am using Drools 4.0.7 and merging different files into the same package. If I 
do not merge the files, it works.
Anyone have any idea what this is? Is it somehow related to the following:- 
https://jira.jboss.org/jira/browse/JBRULES-1684.

Cheers,
Vikrant

java.lang.NoClassDefFoundError: CapBenefit/Rule_CapEarnings_10_0
 at 
CapBenefit.Rule_CapEarnings_10_0ConsequenceInvoker.evaluate(Rule_CapEarnings_10_0ConsequenceInvoker.java:22)
 at 
org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:554)
 at 
org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:518)
 at 
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:475)
 at 
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:449)
 at 
org.drools.reteoo.ReteooStatelessSession.execute(ReteooStatelessSession.java:162)
 at 
com.mastek.elixir.system.ref.drools.DroolsBaseRuleSet.executeRuleSet(DroolsBaseRuleSet.java:121)
 at 
com.mastek.elixir.system.ref.drools.DroolsBaseRuleSet.executeRuleSet(DroolsBaseRuleSet.java:151)
 at 
com.benefitcalculation.tests.BenefitCalculation.ExecuteTest(BenefitCalculation.java:262)
 at 
com.benefitcalculation.tests.BenefitCalculation.testEarningsCap2374(BenefitCalculation.java:67)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at 
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
 at 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
 at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
 at 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
 at 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
 at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
 at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
 at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
 at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
 at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
 at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
 at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
 at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
 at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
 at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
 at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.

[rules-users] Use of Timers in Rule Agent

2008-10-20 Thread Vikrant Yagnick
Hi All,

I am  integrating Rules into a  J2EE Application. I notice the Rule Agent class 
uses a java timer for polling a directory or a URL.
Is this appropriate to use in a Managed Environment like an Application Server?

I only have theoretical knowledge of timers, but is it not recommended to use 
Timer EJB's rather than Timer Tasks in a Managed environment so that the 
container can manage the timers ?


Cheers,
Vikrant
MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Changing the default character for delimiter in decision tables

2008-10-10 Thread Vikrant Yagnick
Hi All,

I wanted to throw to discussion a feature that might be good in Drools. I am 
basically trying to model a formula evaluator in a decision table. The idea 
being that a business user directly defines formulas(without having to use 
Guided Editors in the BRMS or Eclipse, as business users love Excel more than 
anything else..;)).

The thing I am trying to do is the following:

Condition  Action
T:FormulaFact
formulaNameint salary=t.getSalary();
   t.setBenefit($1);


Formula1  salary * 100
Formula2salary * 1000

Everything runs great as Excel simply substitutes the entered string into the 
function. The problem I face is when I write something like this:

Formula3min(salary,100)


The ,  here is treated as the delimited of a parameter. So the compiled DRL 
does not set the string correctly. It would make a rule like
Rule FormulaTable_123
When
T: FormulaFact(formulaName=Formula1)
Then
int salary=t.getSalary();
t.setBenefit(min(salary); //Since the  words after the , become part of $2 
which is not defined.
End


Is there any-way to declaratively change the Decision Table Parser to not use , 
for delimiting between parameters and use some other character.

I could always write the DT using my character, then compile the DT into DRL 
and replace my character with ,(I am thinking of using Colon), but would it 
be a good idea to have an Excel or  a Property File that can be read by the 
SpreadSheetCompiler to change the delimited character used by the Parser.

Cheers,
Vikrant







MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] RE: fact base storage?

2008-10-09 Thread Vikrant Yagnick
Hi Jess,

I am facing the same problem right now. While, I do not know of any OOTB ways 
to do this, I initially implemented an all rule solution.
In my case, I had a lookup table that based on a age or gender got a rate or 
some value.

Using some Excel Trickery, I got the 2 dimensional table into  one dimensional 
columns of the type:
Age Gender   Value
Age and Gender became conditions and Value became the Action.

In your case, you could form a column with a dummy LHS(1=1) and keep all the 
columns as Action Columns.
In each Action Column you could build up your Fact.

For Example you could do the following:

Fact{ int a; int b;
}
ConditionActionAction
F: Fact
f.set($1);f.set($1)
Eval(true)Col A  Col B
Dummy Value values for avalues for b

If you generate a rule base out of this, it should load your tables straight as 
facts.

However, do note, that I did some rather QD benchmarks for this and soon 
realized that the rulebase size and memory usage was getting really large. 
(Especially the PermGen Size).

You may want to have a look at the memory usage, in case you need to load a 
large number of tables. Due, to the above(and other reasons), I just wrote a 
custom parser using JXL (The same Excel Library Drools uses for Parsing 
Excels). It is really neat and would make a simple solution.


In, case you get another solution do post it to the list.

Cheers,
Vikrant







From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Evans, Jess
Sent: Thursday, October 09, 2008 11:54 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] fact base storage?

I'm trying to come up to speed on the drools capabilities.  I see that drools 
supports loading rules from a decision table in a spreadsheet.  I have a set of 
conversion tables that I'd like to represent as facts asserted when the rule 
base has been loaded, but before processing user requests.  I could always 
model lookup tables in a database, but I'd rather not have to build the CRUD 
interface to manage them.  I'd rather represent them so that each row in a 
spreadsheet represents a fact (based upon a predefined java bean).  Of course, 
I could custom implement this functionality.  However, I was wondering if 
drools supports some OOTB means of loading facts from Excel or other resource?

thanks,

-Jess



MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] newbie - dynamic rules in java and db design

2008-10-09 Thread Vikrant Yagnick
Drools can be written in XML as well as normal DRL. The XML method of writing 
Drools is friendlier for GUI's.
My suggestion, was that instead of creating your own XML language for storing 
Rules, you could maybe re-use the existing XML language provided by Drools and 
use the default rule parsing API's.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of drools newbie
Sent: Friday, October 10, 2008 8:17 AM
To: rules-users@lists.jboss.org
Subject: RE: [rules-users] newbie - dynamic rules in java and db design


Hello Vikrant,
Sometime ago, you replied to my question as given below. I don't get this
statement. For the GUI, you could use XML rather than create your own
language and let drools compile things automatically. .
can you please elaborate?

4. I think rules can be written in  java or drools native language. In my
case, When I read the rules from db which is in GUI friendly format,Will it
be easy to convert that to java rules or drools native language?

[Vikrant] Drools can be written in XML or English. For the GUI, you could
use XML rather than create your own language and let drools compile things
automatically. 



Vikrant Yagnick wrote:



 I'm very new to drools world.. so please bear with me my beginner
 question..


 I've following requirements in

 *store the rules in database and load them dynamically.

 *.provide the editor to the business user where they can add/edt the
 rules.

 I think for this requirement, either i can go with BRMS or implement it my
 own.

 IF I use BRMS, Then my understanding is that it will have its set of
 tables(no explicit db design is required) and we can manage the rules
 using
 web editor.

 1. Will it easy for business user to manager rules on their own without
 interruption of developers?

 [Vikrant] Well it depends on the kind of rules. You can always use DSL to
 make them look like English language and hence be easy for them to use.
 There is also a guided editor in the BRMS but it will take a bit of work
 depending on the kind of rules you have to make it work for every business
 scenario.


 2. Can we run BRMS 4.x in tomcat 5.5 version?

 [Vikrant] It worked for me.

 If I dont use BRMS, then i have to come up with own way of managing rules.

 In this case, I'm planning to store the rules in GUI friendly format (I've
 not decided on the format..)in the database(and provide my own GUI to
 manage
 the rules) . Then Application will convert those rules into drools
 specific
 language and load dynamically.
 3. Is this right approach? if not, please give your suggestion.

 [Vikrant] One project I know off, is taking this approach and developing
 their own BRMS. The idea being to keep the BRMS and the rules language
 independent of any specific rule engine. This is a good approach if that
 is your aim, however it will need a lot of work.

 4. I think rules can be written in  java or drools native language. In my
 case, When I read the rules from db which is in GUI friendly format,Will
 it
 be easy to convert that to java rules or drools native language?

 [Vikrant] Drools can be written in XML or English. For the GUI, you could
 use XML rather than create your own language and let drools compile things
 automatically.


 Thanks in advance for your help.
 --
 View this message in context:
 http://www.nabble.com/newbie---dynamic-rules-in-java-and-db-design-tp19742823p19742823.html
 Sent from the drools - user mailing list archive at Nabble.com.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


 MASTEK LTD.
 Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
 In the US, we're called MAJESCOMASTEK

 ~~
 Opinions expressed in this e-mail are those of the individual and not that
 of Mastek Limited, unless specifically indicated to that effect. Mastek
 Limited does not accept any responsibility or liability for it. This
 e-mail and attachments (if any) transmitted with it are confidential
 and/or privileged and solely for the use of the intended person or entity
 to which it is addressed. Any review, re-transmission, dissemination or
 other use of or taking of any action in reliance upon this information by
 persons or entities other than the intended recipient is prohibited. This
 e-mail and its attachments have been scanned for the presence of computer
 viruses. It is the responsibility of the recipient to run the virus check
 on e-mails and attachments before opening them. If you have received this
 e-mail in error, kindly delete this e-mail from desktop and server.
 ~~


 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https

RE: RV: [rules-users] Checking an xml field

2008-10-07 Thread Vikrant Yagnick
Hi Zaola,

I may not be right, but I can think of one solution :

 when
OASISTSO10($e: EVENT)
EVENT($g: GEO)
OASISTSO10(eval($e.GEO.size 0), )
Then
Assert something

When
$e.GEO[0].POSITION.LOCID matches  40.*)
Then
.do something else

Not sure if you can combine it all in one statement


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Otaduy del Paso, 
Zaloa
Sent: Tuesday, October 07, 2008 8:53 PM
To: Rules Users List
Subject: RE: RV: [rules-users] Checking an xml field

Hi David,

Thanks for your helpful response. The problem was that the element GEO can 
appear 0 or many times so what I needed to write was this

when
OASISTSO10($e: EVENT)
OASISTSO10($e.GEO[0].POSITION.LOCID == 40005)
Then
Action

instead of
when
OASISTSO10($e: EVENT)
OASISTSO10($e.GEO.POSITION.LOCID == 40005)
Then
Action

Now I'm facing another problem. I need to check if the element GEO exists 
before checking the POSITION, otherwise it throws an outofbound exception.
I tried with:

 when
OASISTSO10($e: EVENT)
EVENT($g: GEO)
OASISTSO10($e.GEO[0].POSITION.LOCID matches  40.*)

But it doesn't work. Any hints on this?

Thanks in advance,
Zaloa Otaduy del Paso

De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de David Sinclair
Enviado el: martes, 07 de octubre de 2008 15:58
Para: Rules Users List
Asunto: Re: RV: [rules-users] Checking an xml field

Read the manual man. Your rules don't make any sense

http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/
On Tue, Oct 7, 2008 at 9:49 AM, Scott Reed [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:
What is the problem you are seeing? Do the rules compile ok?

Otaduy del Paso, Zaloa [10/6/2008 12:08 PM] wrote:

Does anybody know the answer to my question? I'm not able to solve this issue 
and don't find any clarifying tutorial either



Hi,



I'm new in drools and I'm having some problems accessing an xml field. I'm 
using drools with jaxb to treat xml files that follow an specific xsd. I have 
the following xml (this is just a piece of the xml):



OASIS_TSO_1_0

  EVENT

EVENT_IDEVENT_ID_03/10/2008 10:22:36/EVENT_ID

NODE_ID00/NODE_ID

OTHER_EVENT_IDIncidente UME/OTHER_EVENT_ID

EVENT_TYPEPOL/EVENT_TYPE

SOURCEHUMDED/SOURCE

SEVERITYEXTREM/SEVERITY

CERTAINTY88/CERTAINTY

DECL_DATIME2008-10-03T10:20:47.000+02:00/DECL_DATIME

GEO

DESCRIPTION/

POSITION

LOC_ID14021/LOC_ID

COORD

LAT37.9811636567434/LAT

LON-4.85417587343286/LON

HEIGHT0/HEIGHT

/COORD

/POSITION

/GEO

 /EVENT

/OASIS_TSO_1_0





I already have a couple of rules working, but they are simple rules, like this 
one:



rule Rule1

salience 10

when

OASISTSO10($e: EVENT)

OASISTSO10($e.SEVERITY == EXTREM) or OASISTSO10($e.SEVERITY == SEVERE)

then

action



The problem appears when I have to check the LOC_ID field and I don't know how 
to access to it. I have tried several things but none of them work



1.

when

OASISTSO10($e: EVENT)

OASISTSO10($e.GEO.POSITION.LOCID == 40005)

then

2.

when

OASISTSO10($e: EVENT)

OASISTSO10($g: $e.GEO)

OASISTSO10($p: $g.POSITION)

OASISTSO10($p.LOCID  == 40005)

Then



I have also tried with ($e.GEO.POSITION.DESCRIPTION, just in case the _ 
character was the problem. But the same results... I have searched also for 
examples with xmls but I haven't had luck.

Any help would be appreciated. Thanks in advance,



Zaloa





















___

rules-users mailing list

rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, 

RE: [rules-users] 'Guvnor' on WebSphere 6.1 Success

2008-10-03 Thread Vikrant Yagnick
Hi,

I have one question. I am not very familiar with how Maven works, but after the 
changes are done in pom.xml, by re-build- does it mean that I need to have the 
source code checked out and then build again or will changing pom.xml in the 
.war file work.

If we do have to re-build, is there anyway a built .war file can be put on the 
download site, given that similar changes are needed for both Tomcat and 
Web-sphere.  I am unable to check the SVN out at my end due to some weird SVN 
errors.

Cheers,
Vikrant

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Neale
Sent: Friday, October 03, 2008 10:32 AM
To: Rules Users List
Subject: Re: [rules-users] 'Guvnor' on WebSphere 6.1 Success

Thanks Steve. I have put that on the wiki.
On Thu, Oct 2, 2008 at 2:54 PM, Steve Nunez [EMAIL PROTECTED] wrote:
 These directions worked for WebSphere 6.1.0.15. Fundamentally the problem is
 the lack of JAR files in the default WebSphere CLASSPATH, or the wrong
 versions. Two things are neccessary to correct this problem:

 Adjust WebSphere application server settings
 Adjust Guvnor settings in WebSphere (the application specific settings)
 Modify the Guvnor pom.xml file to include additional classes (these classes
 are not included in WebSphere, so must be included in the WAR file)

 Adjust WebSphere AS Settings
  I'm not certain if these custom websphere application server settings are
 required, but since they are present in the working configuration, I will
 document them here. The custom settings, and directions on how to configure
 them, can be found
 at: http://docs.jboss.org/seam/2.0.1.GA/reference/en/html/websphere.html
 General instructions for setting custom properties are found at:
 http://www-01.ibm.com/support/docview.wss?rss=180uid=swg21284395

 Adjust 'Guvnor' Application Specific Settings

 In order to ensure we get the 'right' application settings, we configure the
 application to load from it's own class loader first. Directions to
 configure this property can be found at
 https://zuxho14:9045/ibm/help/index.jsp?topic=/com.ibm.ws.console.appmanagement/urun_rapp_classload.html.
 Select the Classes loaded with application class loader first Option.

 Modify Guvnor's pom.xml File

 The following lines need to be added to Guvnor's pom.xml before rebuilding
 Guvnor:

 dependency
 groupIdjavax.persistence/groupId
 artifactIdpersistence-api/artifactId
 version1.0/version
 /dependency

 dependency
 groupIdjavax.annotation/groupId
 artifactIdjsr250-api/artifactId
 version1.0/version
 /dependency

  dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-validator/artifactId
 version3.0.0.GA/version
 /dependency

 This was sufficient to get Guvnor running on 2/10/08. I did not install this
 version of WebSphere, and do not know what other changes were made before I
 got here. YMMV.


 
 This message was sent using IMP, the Internet Messaging Program.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users





--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] RE: Category Tree Display Overlaps the box area in Guvnor in Internet Explorer

2008-10-01 Thread Vikrant Yagnick
Actually, this is pretty much a blocker bug for Internet Explorer as I am 
unable to add  a name to a new rule, if my category is in the lower half of the 
list.

Anybody, have any ideas on how this can be worked around or solved?

From: Vikrant Yagnick
Sent: Wednesday, October 01, 2008 1:00 PM
To: 'Rules Users List'
Subject: Category Tree Display Overlaps the box area in Guvnor in Internet 
Explorer

Hi All,

I am not sure, if this has been raised before(could not find an existing JIRA) 
for it.
The display of categories in IE 7 seems to overlap the box area(See attached).

This works correctly with Safari and FireFox.  Sounds like a problem with 
Z-Indexes in IE.


Cheers,
Vikrant


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Compatibility of Rule Flows from 4.0.7 to 5.0.0

2008-09-30 Thread Vikrant Yagnick
Hi All,

I wanted to know if RuleFlows made using the Eclipse 4.0.7 RuleFlow Builder 
will work with 5.0.0.  When, I try to upload a 4.0.7 ruleflow into Guvnor, I 
get a NullPointerException and before that the following:

Cannot find the declaration of element 
'org.drools.ruleflow.core.impl.RuleFlowProcessImpl'.

I checked the 5.0.0M1 jars for drools-core, and this class seems to have been 
removed from there. Also, after installing the 5.0.0 plug-in into Eclipse, my 
rule-flow nodes have all gone.


Also, this may be a minor bug but it says(both in the docs and the BRMS Guvnor 
M1 Release):
Ruleflows allow flow control between rules. The eclipse plugin provides a 
graphical editor. Upload ruleflow .rf files for inclusion in this package.:

Should the .rf say .rfm ?

Cheers,
Vikrant
MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] newbie - dynamic rules in java and db design

2008-09-30 Thread Vikrant Yagnick


I'm very new to drools world.. so please bear with me my beginner question..


I've following requirements in

*store the rules in database and load them dynamically.

*.provide the editor to the business user where they can add/edt the rules.

I think for this requirement, either i can go with BRMS or implement it my
own.

IF I use BRMS, Then my understanding is that it will have its set of
tables(no explicit db design is required) and we can manage the rules using
web editor.

1. Will it easy for business user to manager rules on their own without
interruption of developers?

[Vikrant] Well it depends on the kind of rules. You can always use DSL to make 
them look like English language and hence be easy for them to use. There is 
also a guided editor in the BRMS but it will take a bit of work depending on 
the kind of rules you have to make it work for every business scenario.


2. Can we run BRMS 4.x in tomcat 5.5 version?

[Vikrant] It worked for me.

If I dont use BRMS, then i have to come up with own way of managing rules.

In this case, I'm planning to store the rules in GUI friendly format (I've
not decided on the format..)in the database(and provide my own GUI to manage
the rules) . Then Application will convert those rules into drools specific
language and load dynamically.
3. Is this right approach? if not, please give your suggestion.

[Vikrant] One project I know off, is taking this approach and developing their 
own BRMS. The idea being to keep the BRMS and the rules language independent of 
any specific rule engine. This is a good approach if that is your aim, however 
it will need a lot of work.

4. I think rules can be written in  java or drools native language. In my
case, When I read the rules from db which is in GUI friendly format,Will it
be easy to convert that to java rules or drools native language?

[Vikrant] Drools can be written in XML or English. For the GUI, you could use 
XML rather than create your own language and let drools compile things 
automatically.


Thanks in advance for your help.
--
View this message in context: 
http://www.nabble.com/newbie---dynamic-rules-in-java-and-db-design-tp19742823p19742823.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] citation tracking, Jess rule language, export to sourceforge

2008-09-28 Thread Vikrant Yagnick
Hi Mark,

 This sounds like a really nice BRMS feature, to hold additional meta
 data. As nice as it is though, it's unlikely the core team will be able
 to do this at the moment as we have more basic and essential
 functionality to do first, but we will work with anyone that wants to
 build and submit this type of feature.

Actually, this feature is probably much needed. I have a situation with the 
BRMS as well, where I was using it to store pricing tables in insurance. 
Basically, the table was a simple look-up for so and so age and so and so 
gender the price(or rate) would be X.

The issue, I face right now is that I can potentially have quite a few of these 
tables. I did a small test (Not a proper benchmark, but a quick and dirty 
test with all dummy records) on how rules would fare with a small three column 
decision table of 15,000 rows, with 10 concurrent threads.

The performance I found satisfactory given I was firing all 15000 rules for 
each of the threads. On, my PC it gave me 2.5-4 seconds, which was quite decent.

However, the memory footprint of the rule-base created scared me.  It was  over 
300 MB. This to me at least does not scale well on a production environment and 
we would have much more than the simple three column dummy rules I wrote for 
the test. Another problem, obviously was the time it took to load the rule 
base(I serialized it to a file) and also the fact that I had to change the 
Perm-Gen Space settings to get it to work. (Since, every rule becomes a class 
of its own this would surely be a problem in big rule-bases).

Maybe a rules-engine is an overkill for such a simple thing but it is actually 
part of a much more complex underwriting and pricing algorithm. (Putting 
everything is rules is really elegant, but alas does not seem possible as the 
rule-base would become very large!!).

The alternative I have thought of is to store the data like the pricing look-up 
table as a simple excel and then use Rules to extract data from it. The aim 
being to give the users the flexibility to change the look-up table and then to 
change rules. Not, sure if this is the best approach still playing around with 
it.

In any case, I am currently still storing the data as an Excel in the BRMS but 
rather than using it as a rule, would use the REST API to access the Excel and 
process it. It is kind of hack but I am sure business users would not be able 
to make out the difference between a business rule asset decision table sheet 
and an excel sheet with just data in it.

As a side note, I am not quite sure, if I can use the templating mechanism to 
work like this. Instead of creating separate rules for each record, the 
template could just process data.

Hence, it would be great if all we can have is a separate tab under Rules to 
store Meta-Data and be able to access it from rules as needed.

I may do this myself, but since we are taking commercial support from RedHat on 
Rules, I would need to clarify with them first on what the implications on 
support are if we change the BRMS.

Cheers,
Vikrant


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Saturday, September 27, 2008 11:48 PM
To: Rules Users List
Subject: Re: [rules-users] citation tracking, Jess rule language,  export to 
sourceforge

David Pautler wrote:
   David Pautler wrote:
   I'm evaluating Drools and other RMSs, looking for one that provides
   the following features:
  
   1) Citation tracking. I need to note what articles or scenarios
   motivated a rule, and be able to provide a short description of how
   the rule supports each. This goes beyond commenting because I need to
   have access to a list of all articles and scenarios used and be able
   to jump to the rules that hang from them.
 
  Mark Proctor:
  Not quite sure what you mean, this is an addition you want to the rule
  language itself? Can you provide more details, maybe we can help you
  work on this.

 I'm not sure if the feature belongs in the rule language or only in a
 RMS.

 Here's a description of how it would be used:

 1) When creating a rule in an IDE, there would be an option to
 indicate the source of the rule. Specifically, there would be a
 pulldown menu of article titles previously used as sources, plus a way
 of indicating the page range within the article.

 2) In addition to specifying the source, the widget would allow
 entering a text description. For example, the description might
 indicate how the syntax of the original ruleset was changed to
 accomodate one's own syntax.

 3) As a ruleset is maintained, and one finds that rules need to be
 altered to fit new-found scenarios, one would want to append a new
 source (article or scenario) to the ones already listed for a rule.
 The history of sources and descriptions would really help avoid
 mistakes such as changing a rule to fit a new case but breaking it for
 older cases.

 4) Whenever one wants to write a publication 

[rules-users] Deploying the BRMS on Web-Sphere 6.1

2008-09-22 Thread Vikrant Yagnick
Hi All,

Has anyone been able to deploy the BRMS War file on Websphere 6.1.  The BRMS 
deploys without problems , but I get the following error when I try to access 
the BRMS:

Error 500: com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor 
incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper.

However, the WebDAV servlet still works.
I dug around a little, and have found that this problem has occurred for other 
web-applications as well who have provided a workaround:

http://wiki.merbivore.com/pages/deploying-a-merb-application-to-a-jee-container-us
 (Read Step 7)

The problem seems to be related to Servlet-Filters. These do not seem to work 
correctly with Websphere 6.1.  In the site mentioned they have replaced the 
servlet-filter with a normal server. (The BRMS seems to use a servlet filter 
for /* url mapping).

I have seen posts on other forums regarding the BRMS deployment on Websphere 
6.1 but no answers as to how to make this work.

Any, help would be appreciated.

Cheers,
Vikrant


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] RE: Deploying the BRMS on Web-Sphere 6.1

2008-09-22 Thread Vikrant Yagnick
Well it clearly is a problem with filters as the following works in WebSphere:

http://localhost:9080/drools-guvnor/index.jsp

However just typing

http://localhost:9080/drools-guvnor does not and gives you the Ugly 500.


Cheers,
Vikrant

From: Vikrant Yagnick
Sent: Monday, September 22, 2008 4:38 PM
To: Rules Users List
Subject: Deploying the BRMS on Web-Sphere 6.1

Hi All,

Has anyone been able to deploy the BRMS War file on Websphere 6.1.  The BRMS 
deploys without problems , but I get the following error when I try to access 
the BRMS:

Error 500: com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor 
incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper.

However, the WebDAV servlet still works.
I dug around a little, and have found that this problem has occurred for other 
web-applications as well who have provided a workaround:

http://wiki.merbivore.com/pages/deploying-a-merb-application-to-a-jee-container-us
 (Read Step 7)

The problem seems to be related to Servlet-Filters. These do not seem to work 
correctly with Websphere 6.1.  In the site mentioned they have replaced the 
servlet-filter with a normal server. (The BRMS seems to use a servlet filter 
for /* url mapping).

I have seen posts on other forums regarding the BRMS deployment on Websphere 
6.1 but no answers as to how to make this work.

Any, help would be appreciated.

Cheers,
Vikrant


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] RE: Deploying the BRMS on Web-Sphere 6.1

2008-09-22 Thread Vikrant Yagnick
Well it  is not that serious a problem as I initially thought. As I mentioned 
the URL(adding the index.jsp) works, so there is an easy work-around available.

The main bug seems to be that if a URL is sent to WebSphere which does not have 
a physical file in it the filter which should kick in and re-direct does not do 
so. (http://www-01.ibm.com/support/docview.wss?rs=180uid=swg1PK27620)

This has nothing to do with the BRMS of course and is a problem for all 
Web-Apps in this version of Websphere(We are using 6.1.0.0). Adding the 
index.jsp to the URL seems to work fine for now. I am working on the BRMS to 
see if there are any other side-effects of this.

Maybe, we should update a Wiki or troubleshooting doc on this so that it is 
known to the community.

Digging around IBM Support after my post, I have found quite a few bugs 
mentioned in version 6.1 regarding how Servlet Filters work and of some on 
JSF(Especially JBOSS Seam) problems with the particular version. 
(http://www-01.ibm.com/support/docview.wss?uid=swg1PK47367)

IBM has however provided patches for all of them and I am going to give another 
shot at seeing the behavior after upgrading to a higher release.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Neale
Sent: Tuesday, September 23, 2008 5:25 AM
To: Rules Users List
Subject: Re: [rules-users] RE: Deploying the BRMS on Web-Sphere 6.1

Hi Vikrant.

well the drools-guvnor/ doesn't use a filter so much as it is default
web.xml behaviour - you can specify a welcome page, which it goes to
when the root path is supplied. If Websphere 6.1 can't even do that -
I would say something is seriously wrong (may be a bad install?) - you
could try it with a really simple war that just has 1 jsp and a
web.xml and see if it happens with it? although I think:

As for servlet filters - as we use Seam, it uses servlet filters to
manage lifecycles, so yes, that could be it (if its not the above). It
isn't possible to replace the filters, as they do a very different job
from servlets (although the difference is subtle).

What would be better would be to work out what the problem is with
websphere and filters I think.

On Mon, Sep 22, 2008 at 9:34 PM, Vikrant Yagnick [EMAIL PROTECTED] wrote:
 Well it clearly is a problem with filters as the following works in
 WebSphere:



 http://localhost:9080/drools-guvnor/index.jsp



 However just typing



 http://localhost:9080/drools-guvnor does not and gives you the Ugly 500.





 Cheers,

 Vikrant



 From: Vikrant Yagnick
 Sent: Monday, September 22, 2008 4:38 PM
 To: Rules Users List
 Subject: Deploying the BRMS on Web-Sphere 6.1



 Hi All,



 Has anyone been able to deploy the BRMS War file on Websphere 6.1.  The BRMS
 deploys without problems , but I get the following error when I try to
 access the BRMS:



 Error 500: com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor
 incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper.



 However, the WebDAV servlet still works.

 I dug around a little, and have found that this problem has occurred for
 other web-applications as well who have provided a workaround:



 http://wiki.merbivore.com/pages/deploying-a-merb-application-to-a-jee-container-us
 (Read Step 7)



 The problem seems to be related to Servlet-Filters. These do not seem to
 work correctly with Websphere 6.1.  In the site mentioned they have replaced
 the servlet-filter with a normal server. (The BRMS seems to use a servlet
 filter for /* url mapping).



 I have seen posts on other forums regarding the BRMS deployment on Websphere
 6.1 but no answers as to how to make this work.



 Any, help would be appreciated.



 Cheers,

 Vikrant






 MASTEK LTD.
 Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
 In the US, we're called MAJESCOMASTEK

 ~~
 Opinions expressed in this e-mail are those of the individual and not that of 
 Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
 does not accept any responsibility or liability for it. This e-mail and 
 attachments (if any) transmitted with it are confidential and/or privileged 
 and solely for the use of the intended person or entity to which it is 
 addressed. Any review, re-transmission, dissemination or other use of or 
 taking of any action in reliance upon this information by persons or entities 
 other than the intended recipient is prohibited. This e-mail and its 
 attachments have been scanned for the presence of computer viruses. It is the 
 responsibility of the recipient to run the virus check on e-mails and 
 attachments before opening them. If you have received this e-mail in error, 
 kindly delete this e-mail from desktop and server

[rules-users] Drools BRMS Secrity Features

2008-09-12 Thread Vikrant Yagnick
Hi All,

I have a question on using the BRMS which I am unable to find any answers on 
the internet.

Does the JBOSS Rules BRMS have any security features in terms of Role Based 
Access. For example, is there a way out of the box to specify that user-A can 
access only these rules (or categories or packages ) and User-B can access this 
bit only.
It need not be too sophisticated.

If it is not available at a Rules Level , can it be implemented at a JSP  
level. That is put in Sever specific URL Filters to not allow access to certain 
pages(if a page can correspond to a rule)?

Any, help in this regard will be a tremendous help for me to make some design 
decisions regarding the BRMS.

Cheers,
Vikrant

MASTEK LTD.
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Drools ruturn multiple results based on child objects data length

2008-09-08 Thread Vikrant Yagnick
My feeling after reading this post is that you need to execute a rule, if some 
child object exists.
I suggest using the Exists Feature in Drools for doing something like that.

It would be the same thing if you are writing SQL. If you join a Master Table 
with child tables you will get as many records as there are child records for 
each master record.

However, if you only want one master record if there are child record, you 
would need to use the exists statement.

Example:


rule Multiple results set
when

order: Order
exists ( Invoice from order.invoices)

  then

System.out.println(Rule Example (Multiple results set)+order.getId());
end;


Cheers,
Vikrant

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mohamed Riyaz
Sent: Monday, September 08, 2008 12:05 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] Drools ruturn multiple results based on child objects 
data length


Hi,

In one-to-many relationship object type, Drools generate multiple results based 
on child objects data length. ie. No of child records
belongs to parent object. I wanted the RHS part should be executed only if 
conditions imposed
on child object satisfies.

I have two facts with 1-* relationship defined in object mapping.

class Invoice{}

class Order{

private SetInvoice invoices;

}

I wanted RHS should be executed with only one result  irrespective of child 
records length.

rule Multiple results set
when

order: Order()
invoice : Invoice() from order.invoices


  then

System.out.println(Rule Example (Multiple results set)+order.getId());
end;

Result:
 Rule Example (Multiple results set)1000
 Rule Example (Multiple results set)1000

Please help me in resolving this issue.

Regards,
Riyaz



MASTEK LTD.
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Drools ruturn multiple results based on child objects data length

2008-09-08 Thread Vikrant Yagnick
Hi Mohamed,

The logical 'OR' operator internally will create two different rules and both 
can fire, hence you are getting two different firings.
What you need to use is the following operator , '||'. This should treat it as 
one rule and fire if either of the two conditions are true.

Example:

rule test
when
order: Order

(

   exists ( condition-1 with child objects ||  condition-2 with child objects)
)

then

SOP(order id +order.getId());

result :


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mohamed Riyaz
Sent: Monday, September 08, 2008 6:12 PM
To: Rules Users List
Subject: Re: [rules-users] Drools ruturn multiple results based on child 
objects data length

Thanks Vikrant.

I have one more qurey on 'OR' logical operator for the following scenario:

I want the the boolen result from parent object which satisfies two different 
condition sets with child objects. I made the rule which is generated duplicated

results if both conditions are satisfied.

rule test
when
order: Order

(

   exists ( condition-1 with child objects)

   or

   exists (condition-2 with child objects)

)

then

SOP(order id +order.getId());

result :

 order id 1000

 order id 1000



return the results in twice if both the conditions (cond-1  cond-2) are 
satisfied. It just combine
both results and behaves like 'union all' instead of 'union' function.

Can you help on this?


regards,riyaz

On 9/8/08, Vikrant Yagnick [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote:

My feeling after reading this post is that you need to execute a rule, if some 
child object exists.

I suggest using the Exists Feature in Drools for doing something like that.



It would be the same thing if you are writing SQL. If you join a Master Table 
with child tables you will get as many records as there are child records for 
each master record.



However, if you only want one master record if there are child record, you 
would need to use the exists statement.



Example:



rule Multiple results set
when

order: Order
exists ( Invoice from order.invoices)

  then

System.out.println(Rule Example (Multiple results set)+order.getId());
end;





Cheers,

Vikrant



From: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] [mailto:[EMAIL 
PROTECTED]mailto:[EMAIL PROTECTED]] On Behalf Of Mohamed Riyaz
Sent: Monday, September 08, 2008 12:05 PM
To: rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
Subject: [rules-users] Drools ruturn multiple results based on child objects 
data length





Hi,



In one-to-many relationship object type, Drools generate multiple results based 
on child objects data length. ie. No of child records
belongs to parent object. I wanted the RHS part should be executed only if 
conditions imposed
on child object satisfies.

I have two facts with 1-* relationship defined in object mapping.

class Invoice{}

class Order{

private SetInvoice invoices;

}

I wanted RHS should be executed with only one result  irrespective of child 
records length.

rule Multiple results set
when

order: Order()
invoice : Invoice() from order.invoices


  then

System.out.println(Rule Example (Multiple results set)+order.getId());
end;

Result:
 Rule Example (Multiple results set)1000
 Rule Example (Multiple results set)1000

Please help me in resolving this issue.

Regards,
Riyaz







MASTEK LTD.
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




MASTEK LTD.
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

[rules-users] RE: Help with syntax for detecting when an object exists, none of whose children match a pattern

2008-09-06 Thread Vikrant Yagnick
I am a bit of a newbie myself, but I assume the following would work:

When
 $p: ParentFactObject()
$c: childFactObject(TestMe==false) from $p.ChildFactObjectList
Then
//do something
End

Another way is to simply assert the ChildFactObjectList as separate facts into 
the working memory and then pattern match just them.

Cheers,
Vikrant


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Saturday, September 06, 2008 2:49 AM
To: rules-users@lists.jboss.org
Subject: [rules-users] Help with syntax for detecting when an object exists, 
none of whose children match a pattern


As a newbie to Drools (using v4.0.7), I'm struggling a bit with the right way 
to express the following concept

I have a ParentFactObject with an array of ChildFactObjects.

The ChildFactObjects have a boolean attribute TestMe

I want to pattern match all ParentFactObjects for whom all ChildFactObjects 
have false for TestMe

Here's what I've tried:

rule NoTestChildren

when

$parentFactObject : ParentFactObject // parent exists

(

)

not ChildFactObject // no child exists that has TestMe true

(

TestMe == true

) from $parentFactObject.childFactObjects

then

log(Rule NoTestChildren fired.);

end

I get the following:

org.drools.rule.InvalidRulePackage: [66,4]: unknown:66:4 mismatched token: 
[EMAIL PROTECTED],4469:4472='from',38,66:4]; expecting type THEN

Also tried this:

rule  NoTestChildren 

when

$parentFactObject : Borrower // parent exists

(

)

forall ($childFactObject : ChildFactObject  // no child 
exists that has TestMe true

(

TestMe == true

) )from $parentFactObject. childFactObjects

then

log(Rule NoTestChildren fired.);

end

I've tried a series of variations with similar results.

Can anyone provide any guidance on how to do this?

Thanks in advance.

Tom Murphy

This message may contain confidential and/or privileged information.  If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein.  If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message.  Thank you for 
your cooperation.





MASTEK LTD.
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Jboss Rules web application: how to delete rules or package

2008-09-02 Thread Vikrant Yagnick
Hi Mila,

You can archive assets in Jboss BRMS. Then click on the Archived Assets tab 
and delete them. This would only work, if there are no depemdencies on that 
asset like rules, packages etc.

Cheers,
Vikrant

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miloslav Vlach
Sent: Tuesday, September 02, 2008 6:36 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] Jboss Rules web application: how to delete rules or 
package

Hi,

I have problem with deleting some entities in JBoss Rules Managment Systém. I 
can change the rules, but not delete them. Know soubody where I can delete 
rules ?

Thanks Mila



__ Informace od ESET NOD32 Antivirus, verze databaze 3407 (20080902) 
__

Tuto zpravu proveril ESET NOD32 Antivirus.

http://www.eset.cz



MASTEK LTD.
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users