purlhub

Support Center

codeGenMetaFormat

Last Updated: Dec 27, 2012 08:26AM MST

General Syntax:

{component}(+optionally .L{n}) (+optionally[.SH|.SP|.SU]) (+optionally:(repeat))

This string defines the assembly method used to construct a new (unique) purlCode.  A "Component" can be any property name present in the data set, or one of the pseudo randomization types (alpha, alphabetical, alphanum, alphanumeric, num, numeric, or none).  Components can be optionally followed by a Formatting Rule.  A Formatting Rule must be prefixed by a period ".", can be either an "L" followed by an integer specifying truncation length, or an "S" followed by an "H", "U", or "P" indicating a separator string (SH = hyphen, SU = underscore, SP for period).  

Invalid or non-existent Components are ignored.  Some valid Formatting Rules are:
 
1) An "L" + an integer.
Example: "L5" limits the Component length to 5 chars.

and/or

2) An "S" + one of "H" (hyphen),"P" (period),or "U" (underscore).
Example: "SP" sets the separator to a "."

NOTE: In the absence of any valid components, the purlCode defaults to an 16 character random alpha-numeric string.

Examples:

Example #1: firstName.SP:lastName.SP.L1:numeric.L4
Resulting purlCode: "John.S.1234"
 
Example #2a: firstName.SP:lastName.SP:numeric.L0
Resulting purlCode: "John.Smith"
 
Example #2b: firstName.SP:lastName.SP:none
Resulting purlCode: "John.Smith"
 
Example #3: firstName.SH:lastName.SP:alphanum.L2
Resulting purlCode: "John-Smith.x6"
 
Example #4: firstName:lastName.SP:alphanum.L4
Resulting purlCode: "JohnSmith.x6Rz"
 

 

Contact Us

  • Post a Public Question
  • Ask the Community
  • Email Us

Recent Discussions

Ajax-loader-small