How to set "deploymentSettable" flag for a module property in design time

How to set "deploymentSettable" flag for a module property in design time

book

Article ID: KB0080316

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks 6.3.x

Description

Shown below is the extract from default.substvar file inside the EAR, where we can see that there are multiple flags namely "deploymentSettable", "serviceSettable" and "isOverride".

==============
  <globalVariable>
   <name>//SharedResources01///Connections/HTTP/Basic/AcceptorThreads</name>
   <value>1</value>
   <deploymentSettable>false</deploymentSettable>
   <serviceSettable>false</serviceSettable>
   <type>Integer</type>
   <isOverride>false</isOverride>
  </globalVariable>
​==============

Issue/Introduction

How to set "deploymentSettable" flag for a module property in design time

Environment

O/S: All Database:All

Resolution

If you uncheck the "Public Access" checkbox for the module property in studio, it will not be visible/settable at deployment time in TEA.
 
Please note that unchecking the public access checkbox  would not have any impact on the generated default.substvar file. The value would still be false(<deploymentSettable>false</deploymentSettable>). The values in the profile file do not matter, You should look at module.bwm file under META-INF folder. Here is an extract from the file with one public & one private module property 
 
<sca:property xmi:id="_rh2a4EiKEeSTfvLt9h2MXQ" name="Input_File" type="XMLSchema:string" scalable="true"/>
  <sca:property xmi:id="_uR7V0EiKEeSTfvLt9h2MXQ" name="Output_File_1" type="XMLSchema:string" publicAccess="true" scalable="true"/>
 
This file is being used at deployment to display the property for editing in TEA if it is public

Additional Information

Public Access deploymentSettable false