Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

WSO2 Governance Registry is now capable of displaying diagrams to visualize the dependencies of assets. You can view dependencies of an artifact in both Publisher and Store as described below.

Viewing dependencies of artifacts in Publisher

By default, this operation is enabled only in the G-Reg Publisher. Follow the steps below to view the dependencies of a WSDL type asset which you created.

  1. Log in to the Publisher using admin/admin credentials and the following URL: https://<G-REG_HOST>:<G-REG_PORT>/publisher
  2. Click the following icon on the top left corner of the Publisher. main menu of the Publisher
  3. Select the type of the asset as shown below.
    select asset type
  4. Click on the artifact of which you need to view dependencies.
  5. Click the Show Dependency button as shown below.
    show dependency buttonYou view the dependencies of the selected artifact as shown below.
    view dependencies of the selected asset

Viewing dependencies of artifacts in Store

You need to enable this operation in the G-Reg Store since it is not enabled by default. You can enable it for each asset type.

You can enable this for all the asset types you find in the <G-REG_HOME>/repository/deployment/server/jaggeryapps/store/extensions/assets/ directory, by editing the corresponding asset.js file inside the respective directory of each of them as described in the example below.

Enabling the show dependency operation

Follow the steps below to enable it in the Store for a WSDL type asset.

  1. Navigate to the <G-REG_HOME>/repository/deployment/server/jaggeryapps/store/extensions/assets/wsdl/asset.js file.

  2. Add a comma  after the scope of the ui element, and then add the following line in the  asset.configure = function() function as shown below: isDependencyShown: true

    asset.configure = function() {
        return {
            meta: {
                ui: {
                    icon: 'fw fw-wsdl',
                    iconColor: 'green'
                },
    			isDependencyShown: true
            }
        }
    };
  3. Save the file and restart WSO2 Governance Registry to apply the changes. 

Disabling the show dependency operation

Follow the steps below to disable this option.

  1. Delete the content you added above in the corresponding asset.js file, or set the value of the isDependencyShown to false
  2. Save the file and restart the WSO2 G-Reg server.

Viewing the dependencies 

Follow the steps below to view the dependencies of a WSDL type asset which you created.

  1.  Log in to the Store using admin/admin credentials and the following URL: https://<G-REG_HOST>:<G-REG_PORT>/store
  2. Click on the artifact of which you need to view dependencies.
  3. Click the Show Dependency button as shown below.
    show dependency in Store
    You view the dependencies of the selected artifact as shown below.
    view dependency of a selected asset in the Store

 

  • No labels