How can I update a hierarchy

Problem

The customer is asking to update the hierarchy

Solution

  • Get the L3 configuration of the Tenant

Note: required ROLE_TENANT_ADMIN to update the L3 configuration

  • Please check whether the relation types are defined are not, if not find the requirements from the customer and define the relations in L3 configuration and update the L3 configuration

For example, if the customer wants to configure hierarchies like the below

Market->ProductGroup-Brand->Product then we should configure the hierarchies like the below.

        {
            "uri": "configuration/relationTypes/ProdGroupToMarket",
            "label": "Product Group to Market",
            "description": "",
            "typeColor": "#28945B",
            "startObject": {
                "uri": "configuration/relationTypes/ProdGroupToMarket/startObject",
                "directionalContext": [
                    {
                        "uri": "configuration/relationTypes/ProdGroupToMarket/startObject/directionalContext",
                        "labelPattern": "includes Product Group"
                    }
                ],
                "objectTypeURI": "configuration/entityTypes/ProductGroup"
            },
            "endObject": {
                "uri": "configuration/relationTypes/ProdGroupToMarket/endObject",
                "directionalContext": [
                    {
                        "uri": "configuration/relationTypes/ProdGroupToMarket/endObject/directionalContext",
                        "labelPattern": "is part of market"
                    }
                ],
                "objectTypeURI": "configuration/entityTypes/Market"
            },
            "implicit": false,
            "direction": "directed"
        }
        {
            "uri": "configuration/relationTypes/BrandToProductGroup",
            "label": "Brand to Product Group",
            "typeColor": "#E78A15",
            "startObject": {
                "uri": "configuration/relationTypes/BrandToProductGroup/startObject",
                "directionalContext": [
                    {
                        "uri": "configuration/relationTypes/BrandToProductGroup/startObject/directionalContext",
                        "labelPattern": "is a part of Product Group"
                    }
                ],
                "objectTypeURI": "configuration/entityTypes/Brand"
            },
            "endObject": {
                "uri": "configuration/relationTypes/BrandToProductGroup/endObject",
                "directionalContext": [
                    {
                        "uri": "configuration/relationTypes/BrandToProductGroup/endObject/directionalContext",
                        "labelPattern": "consists of Brand"
                    }
                ],
                "objectTypeURI": "configuration/entityTypes/ProductGroup"
            },
            "implicit": false,
            "direction": "bidirectional"
        }
{
            "uri": "configuration/relationTypes/ProductToBrand",
            "label": "Has Product Group",
            "typeColor": "#E78A15",
            "startObject": {
                "uri": "configuration/relationTypes/ProductToBrand/startObject",
                "directionalContext": [
                    {
                        "uri": "configuration/relationTypes/ProductToBrand/startObject/directionalContext",
                        "labelPattern": "is a product of Brand"
                    }
                ],
                "objectTypeURI": "configuration/entityTypes/Product"
            },
            "endObject": {
                "uri": "configuration/relationTypes/ProductToBrand/endObject",
                "directionalContext": [
                    {
                        "uri": "configuration/relationTypes/ProductToBrand/endObject/directionalContext",
                        "labelPattern": "has a product"
                    }
                ],
                "objectTypeURI": "configuration/entityTypes/Brand"
            },
            "implicit": false,
            "direction": "directed"
        }

For example, if the customer wants to configure the hierarchy in reverse direction then update the relations accordingly.

Market<-ProductGroup-Brand<-Product

Tickets

https://reltio.zendesk.com/agent/tickets/28077

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.