This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

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

Version 1 Next »



Creating a Relationship Between Two Resources

A relationship (for example, dependency) can be created between two resources using the following line of code:

registry.addAssociation("c1/c2/r3", "c1/c2/r4", "depends on"); // in this case r3 depends on r4

Removing a Relationship Between Two Resources

A relationship can be removed between two resources using the following line of code:

registry.removeAssociation("c1/c2/r3", "c1/c2/r4", "depends on"); // in this case r3 depends on r4

Retrieving Relationships From a Resource

Relationships of a resource between two resources can be retrieved using the following line of code:

registry.getAllAssociations("c1/c2/r3"); // all associations of r3

registry.getAssociations("c1/c2/r3", "depends on"); // "depends on" associations of r3

See also Managing Dependencies and Associations to learn how to manage relationships of a resource in the Governance Registry Management Console.

  • No labels