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.
- Log in to the Publisher using admin/admin credentials and the following URL: https://<G-REG_HOST>:<G-REG_PORT>/publisher
- Click the following icon on the top left corner of the Publisher.
- Select the type of the asset as shown below.
- Click on the artifact of which you need to view dependencies.
- Click the Show Dependency button as shown below.
You view the dependencies of the selected artifact as shown below.
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.
Navigate to the
<G-REG_HOME>/repository/deployment/server/jaggeryapps/store/extensions/assets/wsdl/asset.js
file.Add a comma after the scope of the
ui
element, and then add the following line in theasset.configure = function()
function as shown below:isDependencyShown: true
asset.configure = function() { return { meta: { ui: { icon: 'fw fw-wsdl', iconColor: 'green' }, isDependencyShown: true } } };
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.
- Delete the content you added above in the corresponding
asset.js
file, or set the value of theisDependencyShown
to false. - 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.
- Log in to the Store using admin/admin credentials and the following URL: https://<G-REG_HOST>:<G-REG_PORT>/store
- Click on the artifact of which you need to view dependencies.
- Click the Show Dependency button as shown below.
You view the dependencies of the selected artifact as shown below.
For more information, go to Dependency Visualization with WSO2 Governance Registry.