Writing calculation in .drl
by Joshua Jackson
Dear all,
I've tried writing calculation within function or the rules block but
it seems can not run. I also could not find any examples that has
calculation in .drl file. Would it be possible to have calculation
within .drl, or do we have to write a method within .java file for the
calculation
Thanks in advance
--
YM!: thejavafreak
Blog: http://www.nagasakti.or.id/roller/joshua/
17 years, 7 months
Re:
by suma latha
----- Original Message ----
From: suma latha <suma_shallin(a)yahoo.co.in>
To: rules-users(a)lists.jboss.org
Sent: Monday, 21 May, 2007 8:20:33 PM
Subject:
Hi
I am using Drools 3.0 in our business logic. I need help in the below situation
Right now i am done with writing .drl files.but the problem is that my rules should be read from the Database.
For example i have to write rule for a leave application.I am using Drools 3.0 and writing rules.In case if i want to know the joining date of a particular employee,i should be able to read that from the database.
Not only this case but should be able to connect the .drl file to the database and also should be able to prepare a decision table.
I request u to respond to my query as early as possible.Please understand the situation and do the needful
Thanks,
mary
Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Here's a solution!
Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Click here: http://in.messenger.yahoo.com/webmessengerpromo.php
17 years, 7 months
Re:
by suma latha
----- Original Message ----
From: suma latha <suma_shallin(a)yahoo.co.in>
To: rules-users(a)lists.jboss.org
Sent: Monday, 21 May, 2007 8:20:33 PM
Subject:
Hi
I am using Drools 3.0 in our business logic. I need help in the below situation
Right now i am done with writing .drl files.but the problem is that my rules should be read from the Database.
For example i have to write rule for a leave application.I am using Drools 3.0 and writing rules.In case if i want to know the joining date of a particular employee,i should be able to read that from the database.
Not only this case but should be able to connect the .drl file to the database and also should be able to prepare a decision table.
I request u to respond to my query as early as possible.Please understand the situation and do the needful
Thanks,
mary
Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Here's a solution!
Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Click here: http://in.messenger.yahoo.com/webmessengerpromo.php
17 years, 7 months
Re:
by suma latha
----- Original Message ----
From: suma latha <suma_shallin(a)yahoo.co.in>
To: rules-users(a)lists.jboss.org
Sent: Monday, 21 May, 2007 8:20:33 PM
Subject:
Hi
I am using Drools 3.0 in our business logic. I need help in the below situation
Right now i am done with writing .drl files.but the problem is that my rules should be read from the Database.
For example i have to write rule for a leave application.I am using Drools 3.0 and writing rules.In case if i want to know the joining date of a particular employee,i should be able to read that from the database.
Not only this case but should be able to connect the .drl file to the database and also should be able to prepare a decision table.
I request u to respond to my query as early as possible.Please understand the situation and do the needful
Thanks,
mary
Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Here's a solution!
Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Click here: http://in.messenger.yahoo.com/webmessengerpromo.php
17 years, 7 months
(no subject)
by suma latha
Hi
I am using Drools 3.0 in our business logic. I need help in the below situation
Right now i am done with writing .drl files.but the problem is that my rules should be read from the Database.
For example i have to write rule for a leave application.I am using Drools 3.0 and writing rules.In case if i want to know the joining date of a particular employee,i should be able to read that from the database.
Not only this case but should be able to connect the .drl file to the database and also should be able to prepare a decision table.
I request u to respond to my query as early as possible.Please understand the situation and do the needful
Thanks,
mary
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
17 years, 7 months
(no subject)
by suma latha
Hi
I am using Drools 3.0 in our business logic. I need help in the below situation
Right now i am done with writing .drl files.but the problem is that my rules should be read from the Database.
For example i have to write rule for a leave application.I am using Drools 3.0 and writing rules.In case if i want to know the joining date of a particular employee,i should be able to read that from the database.
Not only this case but should be able to connect the .drl file to the database and also should be able to prepare a decision table.
I request u to respond to my query as early as possible.Please understand the situation and do the needful
Thanks,
mary
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
17 years, 7 months
(no subject)
by suma latha
Hi
I am using Drools 3.0 in our business logic. I need help in the below situation
Right now i am done with writing .drl files.but the problem is that my rules should be read from the Database.
For example i have to write rule for a leave application.I am using Drools 3.0 and writing rules.In case if i want to know the joining date of a particular employee,i should be able to read that from the database.
Not only this case but should be able to connect the .drl file to the database and also should be able to prepare a decision table.
I request u to respond to my query as early as possible.Please understand the situation and do the needful
Thanks,
mary
Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Click here: http://in.messenger.yahoo.com/webmessengerpromo.php
17 years, 7 months
error
by fakhfakh ismail
Hello,
when I EXECUTE my Rule an exception is affiched:
org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for 'lproject'
Rule Compilation error $lproject cannot be resolved
MYrules:
rule "userrole1"
when
$Project : Project($name : name,$lproject : lproject)
then
$lproject.deleteRole("Buyer");
end
et mon Java Bean:
public class Project {
private String Name ;
private ProjectSession lproject;
public Project(String Name, ProjectSession lproject)
{
setProject(Name);
setlProject(lproject);
}
public void setProject(String Name)
{
this.Name=Name;
}
public String getName()
{
return this.Name;
}
public void setlProject(ProjectSession lproject)
{
this.lproject=lproject;
}
public ProjectSession getlProject()
{
return this.lproject;
}
}
Please help me
Best regards
Ismail
---------------------------------
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.
17 years, 7 months
[rule-users]runtime polymorphic support?
by Sikkandar Nawabjan
Edson,
sorry for my confusing question. Yes am asked same question.
Related to this i have one more.
if my ClassA is as abstract will it work?
is there any constraints?
please clarify
Thanks and Regs,
basha
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Hi,
Sorry, I did not understood your question, but I guess you are asking
about facts matching ObjectTypeNodes of super classes. The answer is yes, it
works:
public class A {}
public class B extends A {}
public class C extends A {}
If you have a rule saying
rule XXX
when
A ()
then
// do something
end
The rule will fire for all facts of class A, B and C, as B and C are
subclasses of A. It is like if you did an "instanceof" to know what rules
will fire and what will not.
Hope that is what you were asking.
[]s
Edson
17 years, 7 months
Ruleflow behavior if ruleset node does not fire any rules
by Shahad Ahmed
Not sure if this is a bug, or designed behavior in 4.0MR2. In a ruleflow, if
none of the rules in a ruleset node fire then the ruleflow seems to
terminate immediately. For example, if you have a simple flow consisting of
Ruleset1 followed by Ruleset2, then if none of the rules in Ruleset1 can be
fired then Ruleset2 is never entered and the flow stops. I had expected
Ruleset2 to be entered and activated even if none of the rules in Ruleset1
fired. As always, I realise this is a work in progress and assume it's just
a bug and not a design choice.
Regards
Shahad
17 years, 7 months