[rules-users] externalization of input constraints in a rule

bharath87 craze.stuff at gmail.com
Wed Oct 19 17:35:37 EDT 2011


Hi Michael,
              Thanks for your reply... consider the situation where there
are lot of rules each of which might or might not have unique input
contraints.. 

for e.g.

rule "Rule1"
 
     when
            Person ( ssn == "input1" )
     then
            .....

end

rule "Rule2"
 
    when
           Person ( ssn == "input2" and citizenship == "inputCountry" )
    then
          ..... 
end

In the above scenario the ssn input for Rule1 differs from the ssn input for
Rule2, if i use SSN() facts i will have the rules fire for each ssn facts
present in the working memory.

what do i do?

--
View this message in context: http://drools.46999.n3.nabble.com/externalization-of-input-constraints-in-a-rule-tp3435495p3435834.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list