Search code examples
xpathtibcotibco-business-works

How to reference a module property in tibco-bw6 from XPath


I'm trying to reference a module property from tibco business works 6.

Do you guys have an example about the getModuleProperty("")?
What kind of input should I use?
Should I use the entire path or just the name of the property?


Solution

  • First off, you need to include a few dependencies in your project. (Documented here)

    Then write some code access the properties

        @ModuleProperties
    public void loadProperties(HashMap<String, String> moduleProperties){
        this.myClassProperty = moduleProperties.get("/DB/Property"); // Case Sensitive Path
        System.out.println("Completed loading module properties.");
    }