Variable Substitution for File Name Scheme
Please clarify the following issue.
I have two source field
Transfer Order number - 0000000222
Tranfer Order line item - 0001
Both i map it into one target field
The target field output is - 0000000222#0001
I need a file name which starts with ABC <TranferOrderNumber>.txt.
The problem is, when i try to use payload i get output
(ABC0000000222#0001.txt). The reason is i use the target field which has concatenated.
Please give me a solution where i would get output
Henrique Pinto replied
use Dynamic Configuration of Adapter-Specific Message Attributes to set the file name instead of plain Variable Substitution.
You can do it in the same mapping you use to generate target message.
Check these references on dynamic configuration:
Just make the mapping and then set your receiver file adapter to use the adapter specific attribute instead of the default name field.
In your specific case, the filename string should be something like:
String filename = "ABC" + order_number + ".xml"