webMethods 10.2 | Service Development Help | Mapping Data in Flow Services | About Linking Variables | Linking Variables Conditionally
 
Linking Variables Conditionally
 
Linking Multiple Source Variables to a Target Variable
Applying a Condition to a Link
You can place conditions on the links you draw between variables. At run time, Integration Server evaluates the condition and executes the link (copies the value) only if the condition evaluates to true.
A condition consists of one or more expressions that you write using the syntax that Designer provides. An expression can check for the existence of a variable in the pipeline, check for the value of a variable, or compare a variable to another variable. For example, in the following service, you might want to link the BuyersTotal variable in Pipeline In to the OrderTotal variable in Service In only if the BuyersTotal has a value that is not null. After you link two variables, you would edit the properties and add the condition that needs to be true.
A blue link indicates that a condition is applied to the link connecting the variables
Designer uses a blue link in the Pipeline view to indicate that properties (that is, conditions or index values for arrays) have been applied to a link between variables.
Note: You cannot add conditions to the links between implicitly linked variables.
Linking Multiple Source Variables to a Target Variable
Applying a Condition to a Link

Copyright © 2017-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release