Full Version: [solve] Business Map x Workflow
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If I need standardisation, for example, name, last name, account name, always formatted with same way

Is better created a workflow with a function uppercase/lowercase or use a business map, with a regex?

Any perfomance impact or something like that?
I'd say that the performance would be very similar but the user experience is very different. On one side, the BMap will validate the input and give the user direct feedback so he won't be surprised when the name is changed after he saves. Since the validation is done when he clicks the time is spent at that moment, not when the screen has blocked and he is waiting for all the work to be done. On the other side, the user will have to manually fix the name while the workflow does that work for you.
Interesting point, but not exists a function to uppercase, or upwords, for use in BP, only if I create thru regex, right?

My question is, when I tried to do that, I see is not too easy, with regex ...

solve, for Brazilian names

<restriction>''(?=^.{2,60}$)^[A-ZÀÁÂĖÈÉÊÌÍÒÓÔÕÙÚÛÇ][a-zàáâãèéêìíóôõùúç]+(?:[ ](?:das?|dos?|de|e|[A-Z][a-z]+))*$'</restriction>
Correct, BMap can only validate not modify (yet....)

this regex, valid first letters uppercase, but considering a brazilian names ... not transform, only check, ok?
yes, correct, validation maps do not transform, they only validate
Description in wrong. This RegEx test with first letter is uppercase, and all words is a valid Brazilian name ( with length, number of words and characters