How can I overwrite a global variable value from command line?

How can I overwrite a global variable value from command line?

book

Article ID: KB0090062

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
You can achieve the target by passing global variables in BW command line arguments. After deploying a BW project, a .cmd file is created. And in this file, there are command like this:
-"C:/tibco/bw/5.3/bin/bwengine.exe" --run --propFile "…tra"
You can add some properties in it, like this:
"C:/tibco/bw/5.3/bin/bwengine.exe" -tibco.clientVar.dbpassword tibco -tibco.clientVar.dbuser tibco --run --propFile "….tra"
Where “dbpassword” and “dbuser” are global variables used in the BW project as JDBC connection‘s password and user name.

Please also note that there is another way to do this. IF you add the GV's in the bwengine.xml then you can
modify these values during deployment.

Keywords :- command line, global variables, properties file, bwengine.xml

Issue/Introduction

How can I overwrite a global variable value from command line?