How to Populate Dynamic Values in a WSO2 Governance Registry Drop-down Field.

From GReg 5.0.0 onward we introduced the new Governance Center(Publisher/Store) which is more flexible model to interpret SOA Governance artifacts. In this post I would like to show how we can load dynamic content in a GReg rxt option filed. Before starting this post I hope you have some basic idea about RXTs, if not please refer this post.

First of all lets defined the dynamic option filed in rxt like below.



Users just need to add <values class="org.wso2.sample.rxt.WSDLPopulator"/> in the relevant filed. You can download the sample RXT from here

Lets apply the jar file which includes the org.wso2.sample.rxt.WSDLPopulator to <GREG_HOME>/repository/components/lib/ directory. you can find the governance.registry.client-1.0.0.jar from here(GovernancePopulator/target/). The source code is also available there. To build it in you machine please do a mvn clean install within the root directory.

After applying the code to lib directory please restart the server to changes to get effected.

Publisher view,








Management console view,


You can find the git code from hereThats it from here. If you have any questions please create a stackoverflow question and attached it as a comment below.

Comments