"extends" in rules
by Chandana Pingle
Hi,
I found an example on using "extends" to extend a rule from another rule.
Using extends would only include the WHEN side of the rule.
I want to use the variable defined in the parent rule in sub rule
,something like below example,how do i do that?
rule A
when
$a:String( )
eval($a=="abc")
then
do something
end
rule B extends A
when
$b:String( )
$c:SomeClass()
then
$c.someMethod($a,$b) //i am not able to use $a here
end
Any suggestions?
Thanks
Chandana
16 years, 7 months
Problem in deploying drools-guvnor on websphere 6.1
by Nikhil D. Deshpande
Hi,
I am facing following issue :-
I am using Drools Guvnor 5.
I have deployed guvnor on Web Sphere 6.1 it is showing me :-
1. if I specify path like http://localhost:9080/drools-guvnor/.
Then it is giving me :-
Error 500: com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper
2. If I try to specify complete path like http://localhost:9080/drools-guvnor/index.jsp
Then it is giving me :-
Error 500: Filter [Seam Filter]: filter is unavailable.
How to solve this Problem.
Looking forward to Listen from you.
Thanks & Regards,
Nikhil
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 years, 7 months
FW: Problem in deploying drools-guvnor on websphere 6.1
by Nikhil S. Kulkarni
From: Nikhil S. Kulkarni
Sent: Tuesday, September 22, 2009 12:25 PM
To: 'rules-users(a)lists.jboss.org'
Subject: Problem in deploying drools-guvnor on oc4j 10 and websphere 6.1
Hi,
I am facing following issue :-
I am using Drools Guvnor 5.
I have deployed guvnor on Web Sphere 6.1 it is showing me :-
1. if I specify path like http://localhost:9080/drools-guvnor/.
Then it is giving me :-
Error 500: com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper
2. If I try to specify complete path like http://localhost:9080/drools-guvnor/index.jsp
Then it is giving me :-
Error 500: Filter [Seam Filter]: filter is unavailable.
How to solve this Problem.
Looking forward to Listen from you.
Thanks & Regards,
Nikhil S. Kulkarni
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 years, 7 months
Problem in deploying drools-guvnor on oc4j 10 and websphere 6.1
by Nikhil S. Kulkarni
Hi,
I am facing following issue :-
I am using Drools Guvnor 5.
I am trying to deploy guvnor on oc4j 10 but it is giving me subcontext Problem.
Similarly on WebSphere 6.1 it is showing me incompatibility Problem.
How to deploy on any one of those.
Looking forward to Listen from you.
Thanks & Regards,
Nikhil S. Kulkarni
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 years, 7 months
loading rules dynamically
by techy
Hi,
If the rules,conditions,consequences have to loaded from the database. I
can think of following two approach. what would be right approach( I will
have upto 1200 rules in the db)
1. Programmatically inject the rules into rule engine using drools API.
2. Read the rules from the database and create drl or dsl file for them and
inject into rule engine.
Thanks
--
View this message in context: http://www.nabble.com/loading-rules-dynamically-tp20274919p20274919.html
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 7 months
Re: [rules-users] Using work items in the Eclipse ruleflow editor
by Jeremy Ary
For completeness, just a quick note for others who may find themselves here. I spoke with Mike briefly via IRC and the issue appeared to be in getting the files on the classpath correctly. This was ultimately the same thing that I went up against, so iIf you're not sure how to get that wired up, an example follows. I'm certainly far from novice, so any recommendations/improvements are welcome.
Start a new Drools project (you will see two packages already on the classpath - src/main/java & src/main/rules )
Right-click the project name in Package Explorer and select New > Source Folder
Name the new folder "src/main/resources" in the popup
Right-click the new source folder and select New > Folder and call it "META-INF" in the popup
Place your drools.rulebase.conf and custom definitions .conf file into the META-INF folder
Restart Eclipse and open a .rf file - you should now see your custom work items in place
Jeremy
----- Original Message -----
From: "Jeremy Ary" <jary(a)franklinamerican.com>
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Sent: Monday, September 21, 2009 11:46:30 AM GMT -06:00 US/Canada Central
Subject: Re: [rules-users] Using work items in the Eclipse ruleflow editor
Mike,
I ran into a similar issue when I began working with ruleflows a few weeks ago. Some of this may not be necessary and it's certainly not all causal, but this was what I noted when working my issue out:
1) If you're working in JBoss Dev Studio, it's possible that you have a conflict between the code you added as a runtime and what's already there, so try the process with a fresh install of eclipse
2) Ensure that any projects you currently have open do not have build/lib/classpath issues (I had the drools projects checked out and open and build errors caused unnecessary complications for me)
3) Be sure that your project has a META-INF on the classpath and that it's set up correctly
4) Place your drools.rulebase.conf & custom definitions .conf that it looks for are both in your META-INF under resources (src/main/resources/META-INF)
5) Once you're sure this much is correct, give Eclipse a restart - my project did not pick up my custom WI's until I restarted
If you're still having issues, I'll be on the IRC channel for the next 5 hours or so as jary - feel free to reply here or look me up there.
(well, I'm heading to lunch very soon, so back in around an hour)
Jeremy
----- Original Message -----
From: "Mike Gill" <mgill(a)modusoperandi.com>
To: rules-users(a)lists.jboss.org
Sent: Monday, September 21, 2009 11:27:46 AM GMT -06:00 US/Canada Central
Subject: [rules-users] Using work items in the Eclipse ruleflow editor
I am using Eclipse to build my Drools rulefow file. I am trying to add custom work items, but I cannot seem to get anything (other than Email and Log) to show up in my Work Items palette.
Does anyone know how to get the existing work items (such as FileFinder or Exec) to show up on the palette in eclipse?
Eventually I will need to add custom work items to the flow, so this is make-or-break Drools functionality for my team.
In pursuit of a solution to this I have combed the documentation, this mailing list archive, as well as endless Google results to no avail. Any help would be very valuable!
Thanks,
Mike
_______________________________________________ rules-users mailing list rules-users(a)lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________ rules-users mailing list rules-users(a)lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
16 years, 7 months
Using work items in the Eclipse ruleflow editor
by Mike Gill
I am using Eclipse to build my Drools rulefow file. I am trying to add
custom work items, but I cannot seem to get anything (other than Email and
Log) to show up in my Work Items palette.
Does anyone know how to get the existing work items (such as FileFinder or
Exec) to show up on the palette in eclipse?
Eventually I will need to add custom work items to the flow, so this is
make-or-break Drools functionality for my team.
In pursuit of a solution to this I have combed the documentation, this
mailing list archive, as well as endless Google results to no avail. Any
help would be very valuable!
Thanks,
Mike
16 years, 7 months
Eclipse wont compile DRL on save.
by Scott Burrows
Drools 4.0.7.
I have 20 something drools projects in my eclipse 3.5 workspace.
Normal default behavior is when I save a change to a .drl file it attempts
to compile it and shows me any errors.
Somethings changed recently. Eclipse will not do anything if I make a
change to a drl file now.
I can comment out all the imports and it still does not register any errors.
Only thing that I've done recently is share two of the drools projects via
CVS. All the other drools projects are already in CVS.
The one thing that does work is if I right-click on the project and select
"Build Project". That seems to force the drools compiler to do its thing
and it'll show any/all errors.
The SAVE action in eclipse is that part that has changed. Its affected all
drools projects too.
Anybody have any ideas whats happened?
Scott
16 years, 7 months
Returned mail: see transcript for details
by Mail Delivery Subsystem
The original message was received at Mon, 21 Sep 2009 08:34:32 -0400
from 131.161.38.20
----- The following addresses had permanent fatal errors -----
rules-users(a)lists.jboss.org
----- Transcript of session follows -----
... while talking to server 60.209.69.154:
>>> DATA
<<< 400-aturner; %MAIL-E-OPENOUT, error opening !AS as output
<<< 400-aturner; -SYSTEM-F-EXDISKQUOTA, disk quota exceeded
<<< 400
16 years, 7 months