如何检索WSO2 Enterprise Store中的Governance.xml中配置的自定义关联

我在governance.xml中为类型’Schema’创建了一个自定义关联,如下所示:

<Association type="schema">             
 <critical reverseAssociation ="isCriticalTo" iconClass="">service</critical>
</Association>

我使用Greg Publisher创建了一些关联.对于特定工件,不会在WSO2存储的默认有效内容中检索自定义关联.

如何自定义WSO2 Enterprise Store View以检索和显示自定义关联详细信息(critical / isCriticalTo)?

最佳答案 您的governance.xml条目看起来很好,但是如果您不使用它,请删除iconClass属性.请找到已修复的governance.xml条目,

<Association type="service">
 <isCriticalTo reverseAssociation ="critical" iconClass="fw-store">schema</critical>
</Association>

注意:我假设您已在管理控制台中部署了service.rxt并使其在发布者和商店中启用(如果您可以查看资产,那么很好.)

添加上面的xml代码后,请找到关联页面看起来像.
《如何检索WSO2 Enterprise Store中的Governance.xml中配置的自定义关联》

请找到这个有用的blog post.这篇博文是关于G-Reg 5.2.0的.但是除了reverseAssociation,iconClass之外,它与G-Reg 5.1.0兼容.

对于WSDL,如果用户想要查看所有“depends”和“usedBy”,用户可以通过根据需要扩展WSDL asset.js文件来查看它们.为了查看WSDL的所有“depends”和“usedBy”关联,请从asset.js文件中找到以下代码片段,

GREG_HOME/repository/deployment/server/jaggeryapps/store/extensions/assets/wsdl/asset.js

if(deps.associationType == "soapservice") {
  associations.push(deps);
}

并注释掉以下代码,

//if(deps.associationType == "soapservice") {
  associations.push(deps);
//}

然后用户可以查看所有“依赖”和“usedBy”关联.

《如何检索WSO2 Enterprise Store中的Governance.xml中配置的自定义关联》
《如何检索WSO2 Enterprise Store中的Governance.xml中配置的自定义关联》

WSO2开发人员已经在他们的git repo中正确修复了这个问题,请找到PR from here.

点赞