Sidebar

Output file name convention

0 votes
445 views
asked Jan 6, 2015 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}

 

answered Jan 6, 2015 by mike-r-7535 (13,830 points)
selected Jan 6, 2015 by
...