I have a drl file with contents
Sample.drl
------------------
package DecisionTable;
import bre.Number;
rule "DecisionTable #1: (Number.number <'4.3')"
salience 0
when
number:Number(
number< 4.3)
then
number.setText(number.getNumber().toString()+" < 4.3");
end
rule "DecisionTable #2: (Number.number >'10.0')"
salience 0
when
number:Number(
number> 10.0)
then
number.setText(number.getNumber().toString()+" > 10.0");
end
rule "DecisionTable #3: (Number.number 'between 4.3 and 10.0')"
salience 0
when
number:Number(
number>=4.3 ,
number<=10.0)
then
number.setText(number.getNumber().toString()+" is between 4.3 and 10.0");
end
Number.java
-------------------
package bre;
public class Number {
public Double number;
public Double getNumber() {
return number;
}
public void setNumber(Double number) {
this.number = number;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String text;
}
If I use Windows XP ( Regional Language settings in Control Panel to
English(United States)) rules are firing correctly
Input Output
4.6 4.6 between 4.3 and 10.0
3.3 3.3 < 4.3
7.5 7.5 between 4.3 and 10.0
11.2 11.2 > 10.0
But If use German Windows XP (Regional Language settings in Control Panel to
German(Germany) rules are not firing correctly
Input Output
4.6 4.6 < 4.3
3.3 3.3 < 4.3
7.5 7.5 < 4.3
11.2 11.2 < 4.3
I am using Drools 5.0.1 version. Any specific configuration settings
required for German Windows XP to get correct output?
Please reply back. it is urgent.
Thanks in advance
Nagaraj
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Incorrect-output-for-...
Sent from the Drools - User mailing list archive at
Nabble.com.