Solutions

Configure the server to either resolve Set and Switch step expressions or pass them as-is



ID:    S141763
Published:    10 June 2016
Updated:    25 May 2018

Operating System(s)

  • All Unix
  • All Windows

Product(s)

  • Deployment Automation 6.1.2
  • Deployment Automation 6.1.3
  • Deployment Automation 6.1.4
  • Deployment Automation 6.1.5
  • Deployment Automation 6.2
 

Description

By default, Deployment Automation resolves expressions in Set and Switch steps, but you can configure the server so that it doesn't. 

 
For Example:
If you have an expression in a Switch step as follows:
${p:myVar1} + 1
and
${p:myVar1} equals to 2

If the resolver is turned on (set to true):           

The result will be 3

If the resolver is turned off (set to false):

It will remain ${p:myVar1} + 1

Resolution

To configure the Set and Switch step expression evaluation:

1. Navigate to the Deployment Automation Tomcat WEB-INF\classes directory. Depending on your version of Deployment Automation, the default directory structure is one of the following:
    ..\common\Tomcat 8.5\webapps\da\WEB-INF\classes
    ..\common\Tomcat 8.0\webapps\da\WEB-INF\classes
    ..\common\Tomcat 8.0\webapps\serena_ra\WEB-INF\classes
2. Edit the Deployment Automation configuration file. Depending on your version of Deployment Automation, you'll see one of the following files:
   da_config.xml
   serena_ra_config.xml
3. Set the propertiesResolverConfig entry to true or false.
In the following example, the value is set to false, which means it will NOT resolve the expression as part of the step. The default value is true.
 <propertiesResolverConfig>
     <resolveExpressions>false</resolveExpressions>
 </propertiesResolverConfig>

Rate this Solution

Find Answers

Type a question or describe what you are looking for below

My Recent Searches

Welcome kb sso

Additional Assistance

  • Submit a Case Online
  • FAQs