Description

This article outlines GenRocket's workflow and criteria for assigning Generators to Attributes within a created Domain. Its purpose is to provide a top-level view of the process.

GenRocket checks for any matching Generator Tags. If there are no matches, GenRocket attempts to assign a Generator to the Attribute intelligently. Automatic assignment is based on multiple factors, including Domain Name, Attribute Name, Industry Type, and usage patterns.

When a Generator cannot be intelligently assigned, the default assignment is the SimplePatternGen Generator, which generates unique values by appending the referenced Attribute Name to the Domain's id Attribute value. For example, if the referenced Attribute Name is "name" and the id values are 1, 2, and 3, the output would be: name1, name2, name3.


In This Article


Generator Assignment Workflow

For each new or imported Domain Attribute, GenRocket follows these steps, in order, to assign a Generator:

Step 1: Check for a matching Project Generator Tag.

Step 2: Check for a matching Organization Generator Tag.

Step 3: Intelligent Generator assignment based on Domain Name, Attribute Name, Industry Type, and usage patterns.

Step 4: If Enforce Type/Limit is enabled, consider the data type and size. This setting can be applied to a Project Version or per Generator and is enabled by default for DDL and XTS Imports. For more information, please click here

  • Example: If the data type is "date" or "time", assign FlexibleDateRangeGen.
  • Example: If the data type is "uniqueidentifier", assign UUIDGen.

Default - SimplePatternGen Generator


Generator Assignment Diagram

The diagram below provides a visual summary of the workflow steps for automatically assigning a Generator to an Attribute. 



Generator Assignment Example

GenRocket learns from your usage patterns. Let’s say users across the platform consistently have a Customer Domain with firstName and a lastName Attributes. A NameGen Generator is often assigned to any Attribute that contains “name” as part of its name.

If users consistently assign a different Generator, such as the BelgiumNameGen Generator, to Name Attributes, GenRocket will begin to assign it to them automatically. Alternatively, a Project or Organization Generator Tag can be set up to ensure that the BelgiumNameGen Generator is assigned any time an Attribute has “name” in its title.


Generator Assignment FAQs

The following section answers common questions about automatic Generator Assignment in GenRocket.

Question 1 - What happens if multiple Generator Tags match an Attribute? 

Generator Tags can have the same value, and in this case, the decision will come down to whether it starts with, ends with, contains, or matches that value.

For example, let's say two Project Generator Tags exist. Both have the same value but a different match type.

  • First Tag – The value is “name” with the match selection “MATCHES” and assigns the BelgiumNameGen. If the Attribute name is “name," the BelgiumNameGen will be assigned.

  • Second Tag – The value is “name” with the match selection “ENDS_WITH” and assigns the CanadaNameGen. If the Attribute name is “firstName,” then the CanadaNameGen will be assigned. 



Question 2 - Where do I select the Industry Type? 

You can select the Industry Type when creating or editing your Project. Doing so helps GenRocket assign Generators more accurately.



Question 3 - Can I assign a different Generator? 

Yes, you can replace the assigned Generator or make changes to its parameters. The basic steps are outlined below:

  1. Select the Attribute.
  2. Use the Remove or Replace option.
  3. Select a new Generator in the pop-up window.
  4. Make any needed Parameter changes.
  5. Remember to save your changes!

Question 4 - What if I want to Bulk Assign Generators to Attributes? 

You can assign a Generator to more than one Attribute. To assign the same Generator to multiple Attributes, use the Cogwheel icon in the Domain Dashboard. 

  1. Select the Attributes in the pop-up window.
  2. Select the Domain from the drop-down menu.
  3. Click on Set Generator.

    A screenshot of a computer

AI-generated content may be incorrect.

  4. Use the Generator Tuning Wizard to edit all assigned Generators at once.


Helpful Article Links

  1. How to Create a Test Data Project
  2. How to assign a Generator to a single Attribute
  3. How to assign a Generator to multiple Attributes
  4. How to enable and use the Enforce Type/Limit Option
  5. Generator Tags - How to override Generator Assignment