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.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082196#4082196

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082196
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to