Description
Generator Tags override the Data Warehouse's default Generator Assignment. They define rules for automatically assigning a Generator to new Attributes based on a specified tag value and match type. Generator Tags can be created at the:
- Project level - Tags apply to all Project Versions created within that Project
- Organization level - Tags apply to Project Versions of all Projects within the Organization.
For example, each Project Version in a Project will contain a firstName and lastName Attribute. Based on usage statistics, the Data Warehouse will assign the NameGen as the default Generator for these Attributes. However, the first and last names must be Canadian in each Project Version. Generator Tags can be created at the Project level to ensure that the CanadaNameGen is assigned to those Attributes when a new Project Version is created in that Project.
Note: If this needs to apply to every Project within the Organization, you can create an Organization level tag or promote a Project level tag to the Organization level.
In This Article
- Generator Tags Video Tutorial
- How do Generator Tags Work?
- How to View Generator Usage Statistics
- How to Create Generator Tags at the Project Level
- How to Create Generator Tags at the Organization Level
- How to Promote Tags from the Project to the Organization Level
Generator Tags Video Tutorial
The following video provides additional information about Generator Tags:
How do Generator Tags Work?
- A user creates Generator Tags at the Project or Organization level.
- Each Generator Tag has a value and a match type, which are used to determine if the Generator should be assigned to a new Attribute.
- Value - Must be in the Attribute name.
- Match - How the value should match the Attribute name (e.g., Starts With, Ends With, Matches, or Contains).
- If Generator Tags exist, GenRocket will check the Attribute's name for specified tag values when creating a new Attribute.
- If a match is found, the Generator Tag will automatically assign the Generator to the new Attribute.
- Otherwise, the data warehouse will assign a default Generator based on usage statistics (or) assign the SimplePatternGen as a placeholder.
How to View Generator Usage Statistics
You can view the Generator usage statistics for an Attribute from the Domain Dashboard by clicking on the highlighted icon in the image below:
The highest percentage rank is the Generator that gets assigned by default. You can use the tag icon to assign one of the other Generators (override it) to the Attribute.
How to Create Generator Tags at the Project Level
Tags created at the Project level apply to all Project Versions within that Project. They are accessed and managed through the Generator Tags tab within the Project Dashboard. You can create Project level tags in one of two ways.
Method 1 - Generator Tags Tab in Project Dashboard
- Select the Project and Project Version.
- Select the Generator Tags tab in the Management pane.
- Select New Generator Tag.
- Enter a Name and a Value. The value must exist within the Attribute name.
- Select a Match option from the drop-down menu (Starts With, Ends With, Contains, and Matches).
- (Optional) Check the Ignore Case checkbox if you want the case to be ignored.
- Note: When Ignore Case is not checked, the Attribute Name case must match the Tag Value case.
- Enter the Generator name and select it within the drop-down menu.
- Click Save once finished.
- Optional) You can use the dialog window to make changes to the Parameter configuration for the Generator.
- In this example, the nameType has been changed to firstName.
- Click the Save button to save your changes.
- Click the Close button once finished to close the dialog window.
Method 2 - Project Tag in the Attribute Dashboard
This option creates the tag based on the currently assigned Generator for the Attribute. It can be accessed by viewing the Attribute Generator in the Attribute Dashboard.
- Make sure the appropriate Generator has been assigned to the Attribute.
- Configure the Generator Parameters and save the changes.
- Select the Project Tag option.
- Click Yes in the dialog window to confirm.
- Click OK in the dialog window.
- The tag can be viewed from the Project Dashboard by selecting the Generator Tags tab in the Management pane.
Note: The Match Type will default to "Matches when Project level Generator Tags are created this way.
How to Create Generator Tags at the Organization Level
- Expand the Organization Menu and select Generator Tags.
- Select New Organization Generator Tag.
- Enter a Name and Value for the Generator Tag.
- Select a Match type from the drop-down menu (e.g., Starts With, Ends With, Contains, or Matches).
- (Optional) Check the Ignore Case check box if the case should be ignored.
- Enter part of or the full name of the Generator and select it within the menu.
- Once finished, click the Save button.
- (Optional) In the dialog window, you can change the Generator's Parameter configuration.
- Remember to click Save if changes are made. Click Close to exit the dialog window.
How to Promote Tags from the Project to the Organization Level
Please note that once a Project level tag has been promoted, it will no longer exist at the project level and may need to be recreated if needed again. Complete these steps:
- Select the Project Version within the Project Dashboard.
- Select the Generator Tags Tab.
- Click on the Move to Organization Generator icon in the Actions column.
- Click Yes in the dialog window to confirm.
- Click OK to close the dialog window.
- Expand the Organization menu and select Generator Tags to view the promoted tag.