1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
609 views
by (200 points)
I've looked at the other posts regarding output file names, but my mask does not work.

I have tried {PID-3}_{PID-5.2}_{PID-5.3}.hr for my path mask

and the file outputs as __.hr

Confused, as usual.

1 Answer

0 votes
 
Best answer

Good question.  Node tags are slightly different than just a node path, in that they also specify where to apply the node path. The way you have it, the node path is applied to the original source message, which is the default.  If you want to access the modified message, you will need to use the node tags like this:

{m:PID-3}_{m:PID-5.2}_{m:PID-5.3}.hr

I personally like to build the filename in a mapping function and then store it in the message cache.  That way I can troubleshoot the output and verify it looks right.  In the destination node, I then reference the message cache value from the destination node like this: 

{mc:outputFileName}

 

by mike-r-7535 (13.8k points)
selected by
...