[rules-users] Pass Parameter to drools file dynamically
rjr201
rich.j.riley at gmail.com
Thu Mar 14 07:59:06 EDT 2013
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-dynamically-tp4022820p4022821.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list