Activiti Workflow Form Configuration
My team would like to know if it is possible to set the maxLength of the value input of Form Type< Plain Text>, using the expression parameter in the form configuration window (Activiti/Flowable).
When we use RegExpression ^[a-z0-9]{1,2}$ and try to execute the workflow it returns the expression in the value field.
Use case:
The Start user enters in a Tax Category but it must always be 2 characters [a-z][A-Z][0-9] before the form can pass to the next reviewer or be submitted.
Former User
Posted 5 years ago · Edited 1 year ago·Last reply 5 years ago
3 comments
pmahend3
·5 years ago · EditedHi Tatenda,
Collibra Workflow forms don’t allow client-side validations (in their current state). You will have to set that up as a plaintext field itself and validate the input after it’s been submitted in a script task and maybe throw a WorkflowException if the input doesn’t correspond to the required standard.
Former User
OP5 years ago · EditedThanks for your feed back on this Pranay.
Ronald Schaareman
·5 years ago · EditedHi @tc.b.chibota.ey.com,
This indeed seems not possible in the current form. Instead of adding code to the workflow you could also consider writing a validation rule that you can trigger after you have created the resulting asset.
I do of course not know your exact use case and I am also not sure what the workflow exception will do (as suggested by @pranay.mahendra), but running a validation rule might be a more user-friendly way. My experience with a form and exceptions usually means that you have to type everything in all over again
.
Kind regards, Ronald