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

Parameter Names in Expressions and Strings

Parameter Names in Expressions and Strings

When you use a workflow parameter name in an expression or a string field, you can select the name from the
Inputs
tab or you can type the name using the required syntax.
The following table shows the required syntax for workflow parameter names in expression and string fields:
Field
Syntax
Example
Expression in a conditional sequence flow or in an Assignment task
$par:<parameter_name>
For example, you create the following expression in a conditional sequence flow:
$par:Connection=SourceConnection
The Data Integration Service evaluates the condition and runs the connected task if the parameter value is SourceConnection.
String field for a Command or Notification task
${par:<parameter_name>}
When you enter a parameter name in a string field for a Command or Notification task, you must include brackets around the parameter name. For example, the following command in a Command task uses a workflow parameter named SourceDirectory to define the source directory from which the command copies a file:
copy ${par:SourceDirectory} H:\marketing\
If you do not include
"par:"
in the parameter name, the Data Integration Service uses the name as a parameter. For example, if you enter
$SourceDirectory
or
${SourceDirectory}
, the Data Integration Service uses
$par:SourceDirectory
or
${par:SourceDirectory}
.

0 COMMENTS

We’d like to hear from you!