Table of Contents

Search

  1. Preface
  2. Workflows
  3. Workflow Variables
  4. Workflow Parameters
  5. Cluster Tasks
  6. Command Task
  7. Human Task
  8. Mapping Task
  9. Notification Task
  10. Gateways
  11. Workflow Recovery
  12. Workflow Administration

Developer Workflow Guide

Developer Workflow Guide

Escape Character in Strings

Escape Character in Strings

When you use a workflow parameter name in a string field, you can use an escape character so that the Data Integration Service displays the workflow parameter name in the string instead of resolving the parameter value.
Use the backslash (\) as an escape character before the ${...} syntax for workflow parameter names.
For example, you have a workflow string parameter named myParameter with a value of "test". You enter the following text in the body field for a Notification task:
Parameter \${par:myParameter} has a value of ${par:myParameter}
When you run the workflow, the Data Integration Service displays the following string in the body field of the email:
Parameter ${par:myParameter} has a value of test
If you use a workflow parameter name within a directory path, you can use the escape character before the backslashes in the directory path.
The following table provides examples using the escape character with a parameter name in a directory path:
Syntax in String Field
Output Value
Description
C:\${par:myParameter}
C:${par:myParameter}
The Data Integration Service displays the parameter name as a string.
C:\\${par:myParameter}
C:\test
The Data Integration Service reads the backslash as a regular character and resolves the parameter to its value.
C:\temp\\${par:myParameter}
C:\temp\test
The Data Integration Service reads the backslash as a regular character and resolves the parameter to its value. No escape character is required for the first backslash.
C:\\\${par:myParameter}
C:\${par:myParameter}
The Data Integration Service reads the backslash as a regular character and displays the parameter name as a string.
C:\\\\${par:myParameter}
C:\\test
The Data Integration Service reads two backslashes as regular characters and resolves the variable to its value.

0 COMMENTS

We’d like to hear from you!