Use of the same reference in multipe rules
by Rajesh.Sachin10
I asserted 3 class (Class1, Class2, Class3) in the working memory. I make an
reference for the class (Class1) in the first rule. Is it possible to use
the same reference in the 2nd rule?
Eg:
[when] class : Class1() eval(class.getVarName1() == "{value1}");
[then] .........do something.......
[when] eval(class.getVarName2() == "{value2}");
[then] ...........do something........
My requirement is to use the same class (Class1) in all the rules. I don't
want to iterate other two classes (Class2 & Class3) in rule 2.
--
View this message in context: http://www.nabble.com/Use-of-the-same-reference-in-multipe-rules-tf387163...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 5 months
Decision tables
by kranthikumar dalai
Hi To every one,
I understood the pricing example. But problem is that i
have to give the table to my HR-People that they can modify and update the
rules. That's the question i am asking.
Thanx & Regards:
Kranthi Dalai
17 years, 5 months
"or" operator with only one condition??
by Bruno Miguel Duarte
Hi Guys,
Although doesn't make sense, is there any problem if I write the next
rules?
XML:
<rule name="OR with one condition">
<lhs>
<or>
<column object-type="RAFact">
<literal evaluator="==" field-name="type"
value="groupId" />
<literal evaluator="==" field-name="value"
value="6" />
</column>
</or>
</lhs>
<rhs>
System.out.println("Something...");
</rhs>
</rule>
DRL:
rule "OR with one condition"
when
or RAFact( type == "groupId" , value == 6 )
then
System.out.println("Something...");
end
In my tests, it seems the XML version is accepted (and correct) because
the parser ignores the 'or'!
Thanks in advance,
Bruno Duarte
17 years, 5 months
RE: [rules-users] decision tables
by Hehl, Thomas
You're not getting answers because you're not asking specific enough
questions. Like, for example, what is not in the policy example provided
that you need further help with.
_____
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of kranthikumar dalai
Sent: Tuesday, June 05, 2007 7:39 AM
To: rules-users(a)lists.jboss.org
Subject: [rules-users] decision tables
Hi to every one,
Can i examples of drools with decision tables. I gone
through documentation. But can i have some other examples.
Regards:
Kranthi Dalai ( I posted so many querries regarding this,,,,, but no one
answered..)
17 years, 5 months
DRL to Decision tables
by suma
Hi,
Is there anyway to convert a DRL file into a Decision table.
This means that what ever changes are made to the DRL file should be
reflected to the decision table.
Or is there any other way in which the customer should be able to make
changes to decision tables through DRL file.
Please help me as early as possible
--
View this message in context: http://www.nabble.com/DRL-to-Decision-tables-tf3871031.html#a10967278
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 5 months
"and" operator not working in xml drools
by Ashwini Joshi
Hi,
"and" not working in xml drools. If I execute the following rule it works
<or>
<column object-type="Message">
<literal field-name="message" evaluator="==" value="Hello"/>
</column>
<column object-type="Message">
<literal field-name="status" evaluator="==" value="0"/>
</column>
</or>
But when I replace <or> by <and> it does not execute the rhs. Both the
conditions are true.
Can anyone help me with this?
Thanks,
Ashwini
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
17 years, 5 months
new patch
by Krishnan
Hi,
I am using the 4.0 M2 branch currently and it prints out any function that I
write in the rule file during
loading of the rule. I need to add this into production code, will I be able
to get a new patch so that
I can check in right set of jars.
thanks,
Krishnan.
--
Sivaramakrishna Iyer Krishnan (Anand)
Never assume the obvious is true.
- William Safire
17 years, 5 months
Accessing an object in multiple rule
by Rajesh.Sachin10
Hi,
I asserted 4 objects of a class with class name “DemoClass” in to
working memory. In rule one I am creating a reference for the DemoClass and
implementing the logic.
In rule2,… I am creating another reference of the DemoClass .so that time it
is accessing the next asserted object present in the workingmemory. But my
requirement is to access the same object which is accessed in rule 1. I
don't need to access other 3 objects in working memory.
It is possible to access the same object in rule 2, which I accessed in
rule 1?
--
View this message in context: http://www.nabble.com/Accessing-an-object-in-multiple-rule-tf3866060.html...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 5 months