This content has been marked as final.
Show 1 reply
-
1. Re: [Form-modeler] What's the correct way to use Functions in formmodeler
wguo Sep 24, 2014 1:25 AM (in response to wguo)And the Regular Expression looks not work too . When i set ([\\S])* in the pattern field , it always report error .
When i checked the code : https://github.com/droolsjbpm/jbpm-form-modeler/blob/6.1.x/jbpm-form-modeler-core/jbpm-form-modeler-service/jbpm-form-modeler-ui/src/main/java/org/jbpm/formModeler/core/processing/fieldHandlers/InputTextFieldHandler.java
should be this part : if (!"".equals(paramValue[0]) && expr != null && !"".equals(expr) && !paramValue[0].matches(expr))
But when i test my regex in java code , it runs ok :
"testspec ialchar".matches("([\\S])*") false
"testspecialchar".matches("([\\S])*") true