Accessing password data type Global Variables in TIBCO ActiveMatrix BusinessWorks

For example, if project defined a global variable named 'dbpassword' and its data type is Password ,So then its value displays as * (Asterisk)  only,we can access " * " the value of the global variable with the following Java code:
 String password =   com.tibco.pe.plugin.PluginProperties.getProperty("tibco.clientVar.dbpassword");

Take one business process in designer and drog & drop the Java Code Activity and define a out parameter "Output" in configuration tab and write the below code 

 String password =   com.tibco.pe.plugin.PluginProperties.getProperty("tibco.clientVar.dbpassword");
 Output=password;


and run this process we can get the password value in Output parameter.

We must specify the full path for global variables contained in variable groups to access the variable’s value. Use the slash character (/) to separate each element in the path.
We can use the com.tibco.pe.plugin.PluginProperties.getProperty() method to retrieve any Java system property or global variables defined in a project.
Global variables are contained in Java System properties that are prefixed with tibco.clientVar.

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP