rafi
September 23, 2021, 2:00pm
1
Hello!
I have encountered a non-functioning regular expression validation. I am working on a form in the modeler. When I fill in some regex validation of a text field, it appears in the raw JSON under regularExpressionPattern . However, this is not reflected , when the form is then displayed in Tasklist.
When I replace regularExpressionPattern by pattern in the JSON of the form, the validation works fine in the Tasklist. Are the versions of my platform and modeler incompatible? Where can I find some information on the compatibility?
I use:
camunda-bpm-run-7.15.0
camunda-modeler-4.10.0-linux-x64
Thanks!
rafi
October 15, 2021, 7:25am
2
now I encounter the same for:
camunda-bpm-run-7.16.0
camunda-modeler-4.11.0-linux-x64
cpbpm
October 15, 2021, 4:07pm
3
Would you mind sharing the form and how to reproduce the steps. I would recommend try it out in windows modeler version too.
I’d second this.
My regexp actually is :
^[A-z0-9._%±]+@[A-z0-9.-]+.[A-z]{2,}$
But it doesn’t work even with the singlest of regexps : ([a-zA-Z]+)
same here. win10, camunda 7.16, modeller 4.11.1.
replacing regularExpressionPattern by pattern in the JSON file as suggested by Rafi fixed it.
To reproduce simply follow Niall’s tutorial video: Camunda Platform Tutorial: Building a Process and Adding Forms in Camunda Run - YouTube
rondie
April 13, 2022, 7:13am
6
issue still exists in modeler 5.0.0, logged an issue on github:
opened 07:11AM - 13 Apr 22 UTC
bug
__Describe the Bug__
'regularExpressionPattern' should be 'pattern' in form … JSON, others descibe the same in https://forum.camunda.io/t/regular-expression-pattern-not-working/30215
__Steps to Reproduce__
Adding a 'Regular Expression Pattern' validation to a text field in a form will show up as 'regularExpressionPattern' in the resulting JSON data
__Expected Behavior__
'regularExpressionPattern' does not work, 'pattern' does, as per form schema (https://github.com/bpmn-io/form-js/blob/master/docs/FORM_SCHEMA.md?plain=1#L32)
changing it manually in the JSON data makes it work after deployment
__Environment__
- OS: [e.g. MacOS 10.2, Windows 10]
- Camunda Modeler Version: 4.11, 5.0.0
- Execution Platform: camunda platform 7.16.0
- Installed plug-ins: none
1 Like