Filtering Configuration

This section allows you to define rules to filter and transform crawled objects based on specified selectors and transformation rules.

By combining logical selectors, type-based selection, and match-based filtering, you can precisely define your processing requirements.

The crawl process performs the filtering as early as possible and always before transformations to avoid loading data. Configuration is based on the database view of the objects. This configuration also provides an option to manage how to load history for each record.

The filtering configuration file is $CLOUD_CONNECTOR_INSTALL_DIR/$ARCH/er-crawler/config/er-crawler-service_processing.json.

This page discusses:

Limitations

Use this configuration to filter out and remove confidential information on crawled data. It does not support other usages (for example, translation).

Official and Beta Releases

Official support releases BETA releases
from 2025x.FD03 2025x.FD02
from 2024x.FD09 2024x.FD08
from 2023x.FP2541 2023x.FP2523
from 2022x.FP2540 2022x.FP2521

Examples

Filter Out a List of Business Object Types

{
  "filters": [
    {
      "id": "filter-bo-types",
      "selectors": [
        {
          "kind": "BUSINESS_OBJECT",
          "typeNames": [
            "Event",
            "Affinity",
            "Affinity2",
            "eService Trigger Program Parameters",
            "DSXCom_DeleteArchive",
            "eService Number Generator",
            "eService Object Generator",
            "DSXGen_HTTPLogRecord"
          ]
        }
      ]
    }
  ]
}

Filter Out a List of Physical IDs

{
  "filters": [
    {
      "id": "filter-by-physical-id",
      "selectors": [
        {
          "select": "physicalid",
          "in": [
            "275FBB569D63000068E7D759519F0000",
            "5141B3561D0B00005E5490563ED50D00",
            "5141B3561D0B00005B5490565E0B0200",
            "5141B35682660000B4BA9B5392EF0900",
            "5141B35682660000B5BA9B531BAE0100",
            "7D5CB0564313000060021AB800011216"
          ]
        }
      ]
    }
  ]
}

Filter Out Business Objects with a Specific Attribute Value

{
  "filters": [
    {
      "id": "filter-bo-by-v-name",
      "selectors": [
        {
          "op": "AND",
          "selectors": [
            {
              "kind": "BUSINESS_OBJECT"
            },
            {
              "select": "attribute[PLMEntity.V_Name]",
              "equals": [
                "filter-me"
              ]
            }
          ]
        }
      ]
    }
  ]
}

Empty a Specific Attribute Value for a Specific Business Object Type

{
  "transformations": [
    {
      "id": "remove_dsxdel_scmhistory",
      "selectors": [
        {
          "kind": "BUSINESS_OBJECT",
          "typeName": "DSXDel_AdeleInfo"
        }
      ],
      "transformers": [
        {
          "select": "attribute[DSXDel_SCMHistory]",
          "replaceWith": [
            ""
          ]
        }
      ]
    }
  ]
}

Filter Out Objects Implementing Some Interfaces

{
  "filters": [
    {
      "id": "filter-interfaces",
      "selectors": [
        {
          "interfaceNames": [
            "Interface1",
            "Interface2",
            "Interface3"
          ]
        }
      ]
    }
  ]
}

Disable History Loading

{
  "history": {
    "disable": true
  }
}

History Block Lists

{
  "history": {
    "adminBlockList": {
      "identifiers": [
        "j2a"
      ]
    },
    "businessObjectBlockList": {
      "identifiers": [
        "275FBB569D63000068E7D759519F0000",
        "5141B3561D0B00005B5490565E0B0200"
      ],
      "typeNames": [
        "VPMReference"
      ]
    },
    "connectionBlockList": {
      "identifiers": [
        "7D5CB0564313000060021AB800011216",
        "5141B35682660000B5BA9B531BAE0100"
      ],
      "typeNames": [
        "VPMInstance",
        "VPMRepInstance"
      ]
    }
  }
}

Multiple Filters (Transformation and History Block Lists)

{
  "history": {
    "adminBlockList": {
      "identifiers": [
        "j2a"
      ]
    },
    "businessObjectBlockList": {
      "identifiers": [
        "275FBB569D63000068E7D759519F0000",
        "5141B3561D0B00005B5490565E0B0200"
      ],
      "typeNames": [
        "VPMReference"
      ]
    },
    "connectionBlockList": {
      "identifiers": [
        "7D5CB0564313000060021AB800011216",
        "5141B35682660000B5BA9B531BAE0100"
      ],
      "typeNames": [
        "VPMInstance",
        "VPMRepInstance"
      ]
    }
  },
  "filters": [
    {
      "id": "filter-bo-types",
      "selectors": [
        {
          "kind": "BUSINESS_OBJECT",
          "typeNames": [
            "Event",
            "Affinity",
            "Affinity2",
            "eService Trigger Program Parameters",
            "DSXCom_DeleteArchive",
            "eService Number Generator",
            "eService Object Generator",
            "DSXGen_HTTPLogRecord"
          ]
        }
      ]
    },
    {
      "id": "filter-by-physical-ids",
      "selectors": [
        {
          "select": "physicalid",
          "in": [
            "275FBB569D63000068E7D759519F0000",
            "5141B3561D0B00005E5490563ED50D00",
            "5141B3561D0B00005B5490565E0B0200",
            "5141B35682660000B4BA9B5392EF0900",
            "5141B35682660000B5BA9B531BAE0100",
            "7D5CB0564313000060021AB800011216"
          ]
        }
      ]
    }
  ],
  "transformations": [
    {
      "id": "remove-dsxdel-scmhistory",
      "selectors": [
        {
          "kind": "BUSINESS_OBJECT",
          "typeName": "DSXDel_AdeleInfo"
        }
      ],
      "transformers": [
        {
          "select": "attribute[DSXDel_SCMHistory]",
          "replaceWith": [
            ""
          ]
        }
      ]
    }
  ]
}

Configuration Components

ProcessingConfiguration

The ProcessingConfiguration serves as top-level container for filters and transformations applied to crawled objects.

Parameter Description
filters A disjunctive list of FilterProcessorConfiguration objects, identified by a unique id.
transformations A list of TransformationProcessorConfiguration objects, also identified by a unique id.
history An HistoryConfiguration, defining whether the history is loaded and on which objects.

FilterProcessorConfiguration

Defines a filtering process applied to crawled objects.

Parameter Description
id Unique identifier for the filter (must not be empty).
selectors A disjunctive list of SelectorConfiguration used to determine the crawled objects to filter.

TransformationProcessorConfiguration

Defines the transformation process to apply on crawled objects.

Parameter Description
id Unique identifier for the transformation (must not be empty).
selectors A disjunctive list of SelectorConfiguration used to determine the crawled objects to transform.
transformers A list of TransformerConfiguration specifying how to perform the transformation.

HistoryConfiguration

Specifies if the history must be loaded and on which crawled objects.

Parameter Description
disable Boolean flag to disable (true) the crawl of history.
businessObjectBlockList A TypedHistoryBlockListConfiguration, used to specify the business objects for which you do not want to load the history.
connectionBlockList A TypedHistoryBlockListConfiguration, used to specify the connections for which you do not want to load the history.
adminBlockList An HistoryBlockListConfiguration, used to specify the admin objects for which you do not want to load the history.

Selectors

Selectors define rules to identify crawled elements that you must filter or transform.

SelectableKind

Defines various types of selectable elements in the system. Available values are:

  • BUSINESS_OBJECT
  • CONNECTION
  • PATH
  • INTERFACE
  • LINK
  • ACCESS_LIST
  • PERSON
  • ROLE GROUP
  • ASSOCIATION
  • POLICY
  • POLICY_STATE
  • POLICY_STATE_USER_ACCESS
  • BUSINESS_OBJECT_TYPE
  • CONNECTION_TYPE
  • INTERFACE_TYPE
  • PATH_TYPE
  • LINK_TYPE
  • ATTRIBUTE
  • FORMAT
  • DIMENSION
  • UNIT
  • PROPERTY
  • PACKAGE
  • FILE
  • SEARCHINDEX_CONFIG
  • MODULE
  • BRANCH
  • BRANCH_ITERATION
  • BUSINESS_OBJECT_CONTENT
  • CONNECTION_CONTENT
  • PATH_CONTENT

Selector Configuration Types

NaryLogicalSelectorConfiguration

Parameter Description
op Logical operator (AND, OR).
selectors At least two selectors to combine logically.
{
  "op": "AND",
  "selectors": [
    {
      "kind": "BUSINESS_OBJECT"
    },
    {
      "select": "attribute[PLMEntity.V_Name]",
      "equals": [
        "filter-me"
      ]
    }
  ]
}

UnaryLogicalSelectorConfiguration

Parameter Description
op Logical operator (NOT).
selector A single selector.
{
  "op": "NOT",
  "selector": {
    "select": "attribute[PLMEntity.V_Name]"
  }
}

KindSelectorConfiguration

Parameter Description
kind A value from SelectableKind defining the type of elements to select.
{
  "kind": "CONNECTION"
}

TypeSelectorConfiguration

Parameter Description
kind Inherits from KindSelectorConfiguration.
typeName Specifies the type name (must not be empty).
{
  "kind": "BUSINESS_OBJECT",
  "typeName": "VPMTask"
}

TypesSelectorConfiguration

Parameter Description
kind Inherits from KindSelectorConfiguration.
typeNames List of type names (must have at least one element).
{
  "kind": "BUSINESS_OBJECT",
  "typeNames": [
    "VPMTask",
    "Variant"
  ]
}

InterfaceSelectorConfiguration

Parameter Description
interfaceName Specifies an interface name (must not be empty).
{
  "interfaceName": "LogicController"
}

InterfacesSelectorConfiguration

Parameter Description
interfaceNames List of interface names (must have at least one element).
{
  "interfaceNames": [
    "LogicController",
    "AgtComponent"
  ]
}

SelectSelectorConfiguration

Checks the existence of a selection.

Parameter Description
select A select expression (must not be empty).
selectMatches Boolean flag to determine if the select is a regular expression. Default value: false.
selectPatternFlags Integer value to apply specific flags if using a regular expression, as defined in java/util/regex/Pattern. Default value: 0.
{
  "select": "attribute\\[PLMEntity.V_(Name|description)\\]",
  "selectMatches": true
}

SelectMatchSelectorConfiguration

Parameter Description
select Inherits from SelectSelectorConfiguration.
selectMatches Inherits from SelectSelectorConfiguration.
selectPatternFlags Inherits from SelectSelectorConfiguration.
matches A regular expression to match selected values.
matchesPatternFlags Integer value to apply specific flags to the regular expression, as defined in java/util/regex/Pattern. Default value: 0.
matchAll Boolean flag indicating whether all selected values must match. Default value: false.
{
  "select": "attribute\\[PLMEntity.V_(Name|description)\\]",
  "selectMatches": true,
  "matches": "^filter-me.+"
}

SelectEqualsSelectorConfiguration

Parameter Description
select Inherits from SelectSelectorConfiguration.
selectMatches Inherits from SelectSelectorConfiguration.
selectPatternFlags Inherits from SelectSelectorConfiguration.
equals List of string values to compare (must contain at least one element).
{
  "select": "attribute[PLMEntity.V_Name]",
  "equals": [
    "filter-me"
  ]
}

SelectPresentInSelectorConfiguration

Parameter Description
select Inherits from SelectSelectorConfiguration.
selectMatches Inherits from SelectSelectorConfiguration.
selectPatternFlags Inherits from SelectSelectorConfiguration.
in List of values to check against (must contain at least one element).
{
  "select": "physicalid",
  "in": [
    "275FBB569D63000068E7D759519F0000",
    "5141B3561D0B00005E5490563ED50D00",
    "5141B3561D0B00005B5490565E0B0200",
    "5141B35682660000B4BA9B5392EF0900",
    "5141B35682660000B5BA9B531BAE0100",
    "7D5CB0564313000060021AB800011216"
  ]
}

Transformer Configuration Types

Transformers define how to modify selected elements.

SelectReplaceTransformerConfiguration

Parameter Description
select A select expression (must not be empty).
selectMatches Boolean flag to determine if the select is a regular expression. Default value: false.
selectPatternFlags Integer value to apply specific flags if using a regular expression, as defined in java/util/regex/Pattern. Default value: 0.
replaceWith List of replacement values for selected values.

{
  "select": "attribute[PLMEntity.V_Name]",
  "replaceWith": [
    "replacement value"
  ]
}

SelectMatchReplaceTransformerConfiguration

Parameter Description
select A select expression (must not be empty).
selectMatches Boolean flag to determine if the select is a regular expression. Default value: false.
selectPatternFlags Integer value to apply specific flags if using a regular expression, as defined in java/util/regex/Pattern. Default value: 0.
matches A regular expression to determine which values to transform.
matchesPatternFlags Integer value to apply specific flags to the matches regular expression, as defined in java/util/regex/Pattern. Default value: 0.
replaceMatchWith Replacement string for each matched value.

{
  "select": "attribute[PLMEntity.V_Name]",
  "matches": "^replace-me$",
  "replaceMatchWith": "replacement value"
}

History Block Lists

History Block Lists allow you to define the elements for which you do not want to load the history.

HistoryBlockListConfiguration

Parameter Description
identifiers List of identifiers (a physicalid for business objects or connections, a name for admin objects).
{
  "identifiers": [
    "j2a"
  ]
}

TypedHistoryBlockListConfiguration

Parameter Description
identifiers List of identifiers (a physicalid for business objects or connections, a name for admin objects).
typeNames List of types. For example, VPMReference.
{
  "identifiers": [
    "275FBB569D63000068E7D759519F0000",
    "5141B3561D0B00005B5490565E0B0200"
  ],
  "typeNames": [
    "VPMReference"
  ]
}