Question
What is the difference between Assign Variables and Mapping?
It seems that both have similar functions.
Please tell me how to choose and use them properly.
Answer
Basically, when you would like to assign a value to a variable, you should use Assign Variables, otherwise Mapping.
One of the advantages of using Assign Variables is that you can get values from all components in a script without drawing data flows.
When you map values from input source to variables with Mapping, the assignment to a variable is made only once in the component.
For example, if you pass source data to [Iterate specified node], the assignment of an item in the iteration to a variable will not be made for each data.
Therefore, it is necessary to be careful where in the process the assignment of a value takes place in Mapping.
On the other hand, if the input is repetitive data, the data of the first record is automatically set in Assign Variables.
Therefore, if you only need to assign variables, it is better to use Assign Variables to handle data in an easy-to-understand manner.
For details on each function, please refer to the following manuals.
Document Mapper corresponds to Mapping, and Variable Mapper corresponds to Assign Variables in this topic.
Document Mapper/Variable Mapper (Basic)
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/mpp_basic.htm
Document Mapper/Variable Mapper (Details)
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/mpp_detail.htm
Comments
0 comments
Article is closed for comments.