Search code examples
tibcotibco-business-works

Using environment parameters in profile file Tibco BW6


In BW6 profile files(.substvar) we need to use substitution parameter which will be replaced by CI-CD platform just before deploy to any environment,

for example if we have three environment : dev, test, production, for those environments we have a sftp access, will have three profile files for each environment, developper will need to put values like this in profiles so the CI-CD platform replace them as needed for each environment :

enter image description here

My problem is with non string property, for example integer or password, how to deal with them because for example can't use #port# in an integer field using business studio, when we open as xml it works normally but in business studio can't set it.

Any best practice to deal with this ?


Solution

  • If you click on the value, you should see a "config" icon. Click on Container Configuration: enter image description here

    Once you click on it, the field will convert to "String" and you can enter the name of the variable: After the change