Why no rule will be fired if class name and attribute name is same?

Following is my drl file content:
package test

declare input
input : String
end

declare output
taskname : String
end

rule "Rule A"
dialect "mvel"
salience 0
no-loop
when
$input:input(input == "a")
$output:output()
then
modify ($output) {taskname = "Hello"};
end

But if I created a fact object of input and set attribute input to "a", it
did not fire any rules.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Why-no-rule-will-be-fired-if-class-name-and-attribute-name-is-same-tp4026466.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to