[rules-users] Ignoring PatternSyntaxException in decison tables

Wolfgang Laun wolfgang.laun at gmail.com
Fri Oct 18 07:47:52 EDT 2013


Can you provide an example that does not pass Pattern.compile() and
does not cause a runtime exception?
-W

On 18/10/2013, DOLECEK Ales <Ales.Dolecek at nextiraone.eu> wrote:
> Hello,
>   we have provided users with option to edit some of the rules in Excel
> table. One of the CONDITIONs uses "matches" operator and the pattern is in
> the spreadsheet. Users have entered wrong regular expression which, when
> compiled using Pattern.compile(), throws PatternSyntaxException.
>
> The rules defined in the Excel table are however loaded and merged into the
> knowledgebase without problems. At runtime during evaluation no error is
> thrown.
>
> My question is: Is there a way to find out wrong regular expression on the
> RHS of matches operator during knowledgebase creation?
>
> Ales
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list