8 Replies Latest reply on Sep 4, 2008 2:47 PM by Ronald van Kuijk

    drools

    vidyaraj sarma Newbie

      I have one question on JBOSS drools. If I want to compare , same class with two different objects, how can I compare those two objects in drl file.



      Let say if I added those two objects in Java file like :

      Trade t1=new Trade();
      t1.setName("test");
      Trade t2=new Trade();
      t2.setName("varma");

      memory.add(t1);
      memory.add(t2);
      session.execute(memory);



      How can I compare those two objects in drl file to check whether name is different or not ?