如何从 XPath 引用 tibco-bw6 中的模块 属性
How to reference a module property in tibco-bw6 from XPath
我正在尝试引用来自 tibco business works 6.
的模块 属性
你们有关于 getModuleProperty("")
的例子吗?
我应该使用什么样的输入?
我应该使用整个路径还是只使用 属性?
的名称
您需要先添加一个进程 属性 到您的进程(如果您在主进程区域之外单击,它位于属性下)。在那里你可以引用一个模块属性。然后,您可以在 XPath 中使用进程 属性。
首先,您需要在项目中包含一些依赖项。 (Documented here)
然后写一些代码访问属性
@ModuleProperties
public void loadProperties(HashMap<String, String> moduleProperties){
this.myClassProperty = moduleProperties.get("/DB/Property"); // Case Sensitive Path
System.out.println("Completed loading module properties.");
}
您必须使用 属性 的整个路径。您可以从 META-INF/default.substvar
文件中获取它。
我正在尝试引用来自 tibco business works 6.
的模块 属性你们有关于 getModuleProperty("")
的例子吗?
我应该使用什么样的输入?
我应该使用整个路径还是只使用 属性?
您需要先添加一个进程 属性 到您的进程(如果您在主进程区域之外单击,它位于属性下)。在那里你可以引用一个模块属性。然后,您可以在 XPath 中使用进程 属性。
首先,您需要在项目中包含一些依赖项。 (Documented here)
然后写一些代码访问属性
@ModuleProperties
public void loadProperties(HashMap<String, String> moduleProperties){
this.myClassProperty = moduleProperties.get("/DB/Property"); // Case Sensitive Path
System.out.println("Completed loading module properties.");
}
您必须使用 属性 的整个路径。您可以从 META-INF/default.substvar
文件中获取它。