The Generate number sequence masking activity allows you to generate numbers in a sequence.
|Table of contents|
To use the Generate number sequence 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. Generating a number sequence requires you to enter the number the sequence should start from, as well as the increment that defines the following members of the sequence.
In this example we want to generate street numbers, but we only want even numbers greater than one hundred. First we place the Address masking activity into opened Package.xaml and put the Generate number sequence masking activity within it. Once placed, we select the Number property that we want to mask with generated numbers. We enter
100 as the start of the sequence and
2 as the increment so we only get even numbers, and we leave other properties as they are.
Figure 1: Generating numbers in a sequence
|Property group||Property name||Description||Example|
|Input properties||DataItemProperty||The property to mask.||Write
|Increment||Increment by which each newly generated number will be greater than the previous one.||
|Start||First number to generate.||
|Input: Filter||Filter||Expression used for filtering records - only filtered items will be masked.||
|SkipDefaultValues||If true, default values will be omitted in masking (i.e. null values are not masked).||
|Input: Repeating||RepeaterId||The ID of the repeater that will be used to detect repeating and save results when masking item key repeats.||
|RepeatingKey||Key to use for repeating detection.||Write
|Misc||DisplayName||Display name of the activity in the workflow.||
|Result||Contains the masking definition object. It's a part of the masking infrastructure and should be ignored.||-|