You could create a Fact called MessageType that contains a string
representing the type, and insert that into your session. You'd then adjust
your rule like this:
rule"Test"
when
MessageType($messageType : type)
message:Message(type==$messageType)
then
System.out.println("Hello Richa.....");
end
--
View this message in context:
http://drools.46999.n3.nabble.com/Pass-Parameter-to-drools-file-dynamical...
Sent from the Drools: User forum mailing list archive at
Nabble.com.