The mask Italian Fiscal Code Numbers policy generates a random Italian Fiscal Code number (CF) that includes the first six digits of the source value.
This policy is available with the functions CFMask.randomCF() and CFMask.maskCF().
To generate a random value not based on an input value, use the function: CFMask.randomCF()
To generate a value based on an input value, use the function: CFMask.maskCF(record.getItem('<arg.inputAttribute>'))
For example, to generate a random value based on an input value, use the following:
CFMask.maskCF(record.getItem('/DEMO/CUSTOMERS/NATIONAL_ID'))
To generate a value based on the input value and mask an additional attribute in which all instances of the input value are masked, use the function: CFMask.maskCF(record.getItem('<arg.inputAttribute>'), '<arg.additionalAttribute>')
For example, to generate a value based on the NATIONAL_ID attribute and mask additional instances of the input value found in the CUST_ID attribute, use the following:
CFMask.maskCF(record.getItem('/DEMO/CUSTOMERS/NATIONAL_ID'), '/DEMO/CUSTOMERS/CUST_ID')
Argument | Description |
---|---|
inputAttribute | The attribute containing the input value to mask. |
additionalAttribute | The additional attribute in which all instances of the input value are masked. |