0 Replies Latest reply on Sep 7, 2007 10:50 AM by jonga

    Working with JBOSS rools 4.0.1

      Hi,

      I new to JBOSS rools so i've made a small application that checks the name of a person. When i use the rule below, everything works as it should.

      rule "name routering"
       when
       $form : PersonForm (firstName=="test");
       then
       $form.setFirstName(PersonForm.SHORT_NAME);
       update($form);
      end
      



      Only when i use this rule nothing seams to work. Can somebody tell me what's wrong? Isn't this the way to use regular expressions?


      rule "name check"
       when
       $form : PersonForm(firstName matches "[a-z]*");
       then
       $form.setChecked(false);
       update($form);
      end


      Thanks.