Task - Entity Subset

The entity subset must be defined for any task that extracts entities from the source environment or that gets the pre-extracted/pre-generated entities from the Test Data Store. The subset defines the entities selection method.

The following selection methods are available:

Data source option

Source – Policy for Fetching data

Available entity selection methods

Entities & referential data

All policies except Selected snapshot (version)

  • Entity list (default option)
  • Predefined entity list
  • Predefined custom logic
  • Business parameters
  • Random

Entities & referential data

Selected snapshot (version)

  • Load all entities in the select a data version (snapshot)
  • Load an entity list from the selected data version (snapshot)

Synthetic entities Rule-based/AI-based generation

Use generated data in the Test Data Store

  • Load all generated entities of a selected data generation execution
  • Load a partial entity subset:
    • Predefined custom logic
    • Business parameters
    • Random

Entity List

Populate the list of entities for the task. The populated entities should be separated with a comma.

Predefined Entity List

Run the SQL query or the Broadway flow defined in the MigrateList MTable object for the task's Business Entity. This option is available only for Admin and Environment owner users.

Predefined Custom Logic

Select a predefined Broadway flow in order to extract an entity list for the task. Set the maximum number of entities to be retrieved by the flow. Populate the input parameters for the selected flow if needed.

Business Parameters

Select entities from a predefined list of parameters. Set the parameters and their values and the number of entities for the task.

Select one or several parameters. Additionally, you can add the same parameter multiple times with different values.

parameters

Notes:

  • The list of parameters should be predefined for each LU in the task BE in the Fabric project.
  • The parameters and their values must be populated in the TDM DB. It is recommended to run a task to extract a large subset of entities from the source environment in order to populate the TDM DB parameters' tables and enable creating TDM tasks with business parameters. The Retention period for the initial extract task can be set to Do not retain if there is no need to store the extracted subset in the TDM Test Data Store.

Use Parameters with Random Selection Checkbox

The Parameters selection has 2 modes:

  • When checked (default), TDM randomly selects - from the list of all entities - entities that match the selected parameters. Each task execution gets different lists of entities that match the selected parameters. The Selection Method displayed in the Tasks List window is Parameters - selection based on parameters with random selection.

    Example:

    • Creating a task to load 5 customers using selected parameters. There are 800 customers that match the selected parameters. The task execution gets a random list of 5 customers from the list of 800 customers that match the selected parameters.
  • When unchecked, it gets the first entities that match the selected parameters. Each task execution gets the same list of entities that match the selected parameters. The Selection Method displayed in the Tasks List window is Parameters - selection based only on Parameters.

    Example:

    • Create a task to load 5 customers with selected parameters. There are 800 customers that match the selected parameters. The task execution gets the first 5 customers that match the selected parameters.

Filter out Reserved Entities Checkbox

The Filter out Reserved Entities checkbox indicates whether entities that are reserved for other users in the target environment, must be filtered out from the task's entity list. If checked, these entities are filtered out from the task's entity list and from the Number of entities matched setting. Note that this checkbox can be checked only after the selection of the task's target environment in the Target component.

For example:

  • There are 500 customers with VIP Status 'Gold' and 10 of them are reserved for other users on the task's target environments.
  • If the Filter out Reserved Entities checkbox is checked, the Entities Matched result is 490.
  • If the Filter out Reserved Entities checkbox is unchecked, the Entities Matched result is 500.

How Do I Add a Condition?

To add a parameter:

  • Click Add Condition.
  • Select the parameter and the operator from the drop-down lists and populate their values. Note that from TDM 8.1 onwards it is possible to select the IN or NOT IN operators on combo parameters and on text parameters.
  • Set the value on the parameter. You can set multiple values on a parameter if the selected operator is either IN or NOT IN:
    • Combo parameters - click on the value field to select a required value from the drop-down list; this can be done multiple times as more than one value can be selected in this field.
    • Free text parameters - populate the values with a separating comma. For example: NY, CA.
  • Add the AND/OR operator to connect the parameter to the previous parameters or group. The TDM Portal displays the SQL query, which is built based on the selected parameters.

How Do I Populate a Parameter's Value?

There are several types of parameters:

  • Combo - parameters with a limited number of values. The Task window displays a drop-down list of the parameters' values; select one of them.

    Click for more information about setting a parameter as a combo parameter.

  • Number - the TDM Portal displays the minimum and maximum values of this parameter. If the populated values exceed a parameter's range, an error message is displayed.

  • Date - populate the value using the following format: YYYY-MM-DD.

    • Notes:

    • The date format is defined in DATETIME_FORMAT parameter of the config.ini Fabric file. The default format is 'yyyy-MM-dd HH:mm:ss.SSS'.

    • The parameter's search may be based on either a Date (removing the time from the Date format) or a Datetime.

      Examples:

      • 2023-12-28
      • 2024-04-03 10:00:00
    • The date value is set without quotation marks.

  • Text - populate the value using a free text.

How Do I Add a Group of Parameters?

  • Click Add Group.

  • Note that nested groups of parameters can be added, for example, in order to define an inner group in an outer group:

    task parameters grouping

How Do I Remove a Parameter or a Parameters Group?

  1. Click the trash icon next to the parameter in order to delete it.

  2. Click Remove Group to remove a parameter's group.

Getting the Number of Matching Entities

Click Refresh next to the Number of entities matched in order to calculate the number of entities that match the selected parameters. The Business parameters selection supports the parent-child hierarchy relationship between the LUs of the selected BE. It can cross-check the matching entities of a selected combination of parameters and take into consideration parameters from different LUs in the same BE hierarchy. For example, selecting customers based on their number of open cases, subscriber_type, and vip_status (as seen in the above image).

  • Click refesh to display the number of matching entities according to the parameters’ conditions.

Click for more information about the TDM parameters tables and View created by TDM in the TDM DB to display a hierarchical view of TDM parameters.

Random

Get a random list of entities from the LU Params table created in the TDM DB for the root LU of the task's BE. Entities that are reserved for other users are excluded from the selected entities.

Testers can select this option only if they are permitted to do so in the task's source environment.

Synthetic Entities - Load all Generated Entities of a Selected Data Generation Execution

The Subset form displays all available rule-based/AI-based data generation executions. Select an execution to load its generated entities to the target environment:

load generation

Select and Load Data Snapshot (version) Task

When the Policy for Fetching data in the Source component is set to Selected snapshot (version), you need to select a data snapshot (version) to be loaded to the target environment. The Subset form displays a list of available data snapshots (versions) that can be selected and reloaded to the target environment. By default, the TDM Portal displays a list of the data versions created during the last month. To set a different period, edit the From date and To date settings.

The following options are available:

Select all entities of the selected version

data version

Entity List

Populate the list of entities separated by a comma in the Entities List setting.

K2view's TDM displays all available versions created in the source environment for the task's LUs and the selected entities.

Each update on the entities list may change the list of available versions for the task.

load version with entities

Task - Entity Subset

The entity subset must be defined for any task that extracts entities from the source environment or that gets the pre-extracted/pre-generated entities from the Test Data Store. The subset defines the entities selection method.

The following selection methods are available:

Data source option

Source – Policy for Fetching data

Available entity selection methods

Entities & referential data

All policies except Selected snapshot (version)

  • Entity list (default option)
  • Predefined entity list
  • Predefined custom logic
  • Business parameters
  • Random

Entities & referential data

Selected snapshot (version)

  • Load all entities in the select a data version (snapshot)
  • Load an entity list from the selected data version (snapshot)

Synthetic entities Rule-based/AI-based generation

Use generated data in the Test Data Store

  • Load all generated entities of a selected data generation execution
  • Load a partial entity subset:
    • Predefined custom logic
    • Business parameters
    • Random

Entity List

Populate the list of entities for the task. The populated entities should be separated with a comma.

Predefined Entity List

Run the SQL query or the Broadway flow defined in the MigrateList MTable object for the task's Business Entity. This option is available only for Admin and Environment owner users.

Predefined Custom Logic

Select a predefined Broadway flow in order to extract an entity list for the task. Set the maximum number of entities to be retrieved by the flow. Populate the input parameters for the selected flow if needed.

Business Parameters

Select entities from a predefined list of parameters. Set the parameters and their values and the number of entities for the task.

Select one or several parameters. Additionally, you can add the same parameter multiple times with different values.

parameters

Notes:

  • The list of parameters should be predefined for each LU in the task BE in the Fabric project.
  • The parameters and their values must be populated in the TDM DB. It is recommended to run a task to extract a large subset of entities from the source environment in order to populate the TDM DB parameters' tables and enable creating TDM tasks with business parameters. The Retention period for the initial extract task can be set to Do not retain if there is no need to store the extracted subset in the TDM Test Data Store.

Use Parameters with Random Selection Checkbox

The Parameters selection has 2 modes:

  • When checked (default), TDM randomly selects - from the list of all entities - entities that match the selected parameters. Each task execution gets different lists of entities that match the selected parameters. The Selection Method displayed in the Tasks List window is Parameters - selection based on parameters with random selection.

    Example:

    • Creating a task to load 5 customers using selected parameters. There are 800 customers that match the selected parameters. The task execution gets a random list of 5 customers from the list of 800 customers that match the selected parameters.
  • When unchecked, it gets the first entities that match the selected parameters. Each task execution gets the same list of entities that match the selected parameters. The Selection Method displayed in the Tasks List window is Parameters - selection based only on Parameters.

    Example:

    • Create a task to load 5 customers with selected parameters. There are 800 customers that match the selected parameters. The task execution gets the first 5 customers that match the selected parameters.

Filter out Reserved Entities Checkbox

The Filter out Reserved Entities checkbox indicates whether entities that are reserved for other users in the target environment, must be filtered out from the task's entity list. If checked, these entities are filtered out from the task's entity list and from the Number of entities matched setting. Note that this checkbox can be checked only after the selection of the task's target environment in the Target component.

For example:

  • There are 500 customers with VIP Status 'Gold' and 10 of them are reserved for other users on the task's target environments.
  • If the Filter out Reserved Entities checkbox is checked, the Entities Matched result is 490.
  • If the Filter out Reserved Entities checkbox is unchecked, the Entities Matched result is 500.

How Do I Add a Condition?

To add a parameter:

  • Click Add Condition.
  • Select the parameter and the operator from the drop-down lists and populate their values. Note that from TDM 8.1 onwards it is possible to select the IN or NOT IN operators on combo parameters and on text parameters.
  • Set the value on the parameter. You can set multiple values on a parameter if the selected operator is either IN or NOT IN:
    • Combo parameters - click on the value field to select a required value from the drop-down list; this can be done multiple times as more than one value can be selected in this field.
    • Free text parameters - populate the values with a separating comma. For example: NY, CA.
  • Add the AND/OR operator to connect the parameter to the previous parameters or group. The TDM Portal displays the SQL query, which is built based on the selected parameters.

How Do I Populate a Parameter's Value?

There are several types of parameters:

  • Combo - parameters with a limited number of values. The Task window displays a drop-down list of the parameters' values; select one of them.

    Click for more information about setting a parameter as a combo parameter.

  • Number - the TDM Portal displays the minimum and maximum values of this parameter. If the populated values exceed a parameter's range, an error message is displayed.

  • Date - populate the value using the following format: YYYY-MM-DD.

    • Notes:

    • The date format is defined in DATETIME_FORMAT parameter of the config.ini Fabric file. The default format is 'yyyy-MM-dd HH:mm:ss.SSS'.

    • The parameter's search may be based on either a Date (removing the time from the Date format) or a Datetime.

      Examples:

      • 2023-12-28
      • 2024-04-03 10:00:00
    • The date value is set without quotation marks.

  • Text - populate the value using a free text.

How Do I Add a Group of Parameters?

  • Click Add Group.

  • Note that nested groups of parameters can be added, for example, in order to define an inner group in an outer group:

    task parameters grouping

How Do I Remove a Parameter or a Parameters Group?

  1. Click the trash icon next to the parameter in order to delete it.

  2. Click Remove Group to remove a parameter's group.

Getting the Number of Matching Entities

Click Refresh next to the Number of entities matched in order to calculate the number of entities that match the selected parameters. The Business parameters selection supports the parent-child hierarchy relationship between the LUs of the selected BE. It can cross-check the matching entities of a selected combination of parameters and take into consideration parameters from different LUs in the same BE hierarchy. For example, selecting customers based on their number of open cases, subscriber_type, and vip_status (as seen in the above image).

  • Click refesh to display the number of matching entities according to the parameters’ conditions.

Click for more information about the TDM parameters tables and View created by TDM in the TDM DB to display a hierarchical view of TDM parameters.

Random

Get a random list of entities from the LU Params table created in the TDM DB for the root LU of the task's BE. Entities that are reserved for other users are excluded from the selected entities.

Testers can select this option only if they are permitted to do so in the task's source environment.

Synthetic Entities - Load all Generated Entities of a Selected Data Generation Execution

The Subset form displays all available rule-based/AI-based data generation executions. Select an execution to load its generated entities to the target environment:

load generation

Select and Load Data Snapshot (version) Task

When the Policy for Fetching data in the Source component is set to Selected snapshot (version), you need to select a data snapshot (version) to be loaded to the target environment. The Subset form displays a list of available data snapshots (versions) that can be selected and reloaded to the target environment. By default, the TDM Portal displays a list of the data versions created during the last month. To set a different period, edit the From date and To date settings.

The following options are available:

Select all entities of the selected version

data version

Entity List

Populate the list of entities separated by a comma in the Entities List setting.

K2view's TDM displays all available versions created in the source environment for the task's LUs and the selected entities.

Each update on the entities list may change the list of available versions for the task.

load version with entities