-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Config Management
Open the Bussiness Works (BW) studio. Go to file and select the plug-in project from the list. Provide it a suitable name e.g. com.tibco.bwce.profile.sample in this case. After the project is created successfully, right click on the src folder of the project to create a new package e.g. com.tibco.bwce.profile.sample and right click on this package to create a new Java class e.g. CustomConfigManagement with the main method. Import com.tibco.bwce.profile.resolver package in this class and write the custom config management code here with the help of the helper class.
The helper class that is provided in the package com.tibco.bwce.profile.resolver for the users is called ProfileResolverHelper. This class has two methods:
- getKeysForConfig()
- replaceProfileValues()
The first method getKeysForConfig() returns a list of type string to the calling function.
- This list consists of all the keys that are required to be fetched by the user from the custom config management server.
- These keys are fetched from the bw.substvar file.
- The keys in the bw.substvar file are set through the profile created by the user in the properties section of the BW application in the studio.
Use getKeysForConfig() method to get a list of the required keys whose corresponding values are required to be fetched from the custom config management server. Write code for connecting to the custom config management server in the new main class (i.e CustomConfigManagement) and fetch the values for the corresponding keys collected using the method getKeysForConfig().