Generate JMBG

The Generate JMBG masking activity allows you to generate JMBG numbers specific to Croatia.

Table of contents
Usage
Example
Properties

Usage

To use the Generate JMBG masking activity, it must be placed inside a table masking activity or a similar activity that iterates over data. Once placed, select the property you want to mask. Next, select the gender (Male, Female, Any) since the generating the JMBG number depends on it.

Example

In this example we want to generate JMBGs in the Customer table, so first we place the Customer masking activity and put the Generate JMBG masking activity within it. Once placed, we select the JMBG property and Gender.

Generate JMBG example Figure 1: Generating JMBGs

Properties

Property group Property name Description Example
Input properties DataItemProperty The property to mask. Write x => x.JMBG or choose property from the dropdown list.
EnforceUnique If true, random selection should select unique values. true or false
Gender Gender used to generate JMBGs. Male or Female or Any
Input: Filter Filter Expression used for filtering records - only filtered items will be masked. x => x.JMBG.EndsWith("000")
SkipDefaultValues If true, default values will be omitted in masking (i.e. null values are not masked). true or false
Input: Repeating RepeaterId The ID of the repeater that will be used to detect repeating and save results when masking item key repeats. JMBGRepeater
RepeatingKey Key to use for repeating detection. Write x => CompositeKey.Create(x.JMBG) or choose properties from the pop-up window
Misc DisplayName Display name of the activity in the workflow. Generate JMBG
Result Contains the masking definition object. It's a part of the masking infrastructure and should be ignored. -