我正在尝试从tibco businessworks 6引用模块属性。
各位大侠有例子getModuleProperty("")
吗?
我应该使用什么样的输入?
我应该使用整个路径还是只使用属性的名称?
首先,您需要在项目中包含一些依赖项。(记录在这里)
然后写一些代码访问属性
@ModuleProperties
public void loadProperties(HashMap<String, String> moduleProperties){
this.myClassProperty = moduleProperties.get("/DB/Property"); // Case Sensitive Path
System.out.println("Completed loading module properties.");
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句