[rules-users] Rule is not firing

Hemanth kumar hemanth at saha.in
Mon Oct 26 04:57:44 EDT 2009


hi

satyasri.ch wrote:
> 
> Hi ,
> 
> I am doing the sample drools project.
> 
> Below are the sample rule and Fact class.
> 
> when Running from eclipse ide both rules are working fine.
> Where as running the rule outside ide only second rule fired it is not
> showing any errors.
> 
> Suggest me any ideas
> 
> 
> ----------------------------------------------------------
> package test
> import test.Message;
> 
> 
> rule "Your First Rule"
> dialect "mvel" 
> when
> m:Message(  )
> eval(m.getMessage() == "Hello")
> then
> System.out.println("First Rule fired    ");
> end
> 
> rule "Your Second Rule"
> dialect "mvel" 
> when
> eval(true)
> then
> System.out.println("Second Rule fired    ");
> end
> 
> ------------------------
> 
> package test;
> public class Message{
> private String message;
> public String getMessage(){
> return this.message;
> }
> 
> public void setMessage(String message) {
> this.message = message;
> }
> 
> }
> 
> 
> Thanks,
> Satyasri.
> 

-- 
View this message in context: http://www.nabble.com/Rule-is-not-firing-tp26056180p26056239.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list