Hi Basha!

Sikkandar Nawabjan wrote:
How to check my property contains only numeric.

for ex

when

address(telphoneno=="??????????") ---- telephone no should be numeric


then

s.o.p("error");

If your "telephoneno" variable is a String, you can use the "matches" operator (cf. Drools manual section 6.5.2.1.1.3.1., "Matches Operator"):

address(telephoneno matches "^\\d+$")

HTH,
Christian
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to