Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solve] Business Map x Workflow
#1
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?
Ranieri
eCRM Web
Reply
#2
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.
Joe
TSolucio
Reply
#3
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

<map>
<originmodule>
<originname>contacs</originname>
</originmodule>
<fields>
<field>
<fieldname>firstname</fieldname>
<validations>
<validation>
<rule>regex</rule>
<restrictions>
<restriction>''(?=^.{2,60}$)^[A-ZÀÁÂĖÈÉÊÌÍÒÓÔÕÙÚÛÇ][a-zàáâãèéêìíóôõùúç]+(?:[ ](?:das?|dos?|de|e|[A-Z][a-z]+))*$'</restriction>
</restrictions>
</validation>
</validations>
</field>
</fields>
</map>
Ranieri
eCRM Web
Reply
#4
Correct, BMap can only validate not modify (yet....)

Nice!!
Joe
TSolucio
Reply
#5
I added the map to the BMap store:

http://corebos.org/documentation/doku.php?id=en:adminmanual:businessmappings:store:businessmap_validation_capitalletters

thanks!!
Joe
TSolucio
Reply
#6
this regex, valid first letters uppercase, but considering a brazilian names ... not transform, only check, ok?
Ranieri
eCRM Web
Reply
#7
yes, correct, validation maps do not transform, they only validate
Joe
TSolucio
Reply
#8
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
Ranieri
eCRM Web
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)