Dynamic File Writer filename after XML Formatter possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 03:57 AM
Hello,
Is there a simple way, to pass filename to File Writer, after XML Formatter was executed?
In the Mapper:
- filename shall be constructed into $filename. XML
- JSON content for saving als XML shall be constructed into $content
XML Formatter makes an XML out of JSON $content
File Writer writes XML $content a file into $filename.
Can SL do such a sophisticated task?
I know that CSV Formatter e.g. can pass variables via header, but XML?
thank you & kind regards
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 07:20 AM
Hi,
This is what i came up with, without using some silly things like child pipelines passing filename as parameter. Splitting the execution, writing a file to some
painintheneck.xml
join paths and moving the file to the appropriate filename.
Extremely annoying, so please if anyone has a shorter solution, post it here please.
kind regards
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 09:01 AM
hope this will help you. configure the pipeline as in the image, in pipeline execute snap define the parameter name and capture it’s value from the mapper and declare the same parameter name in the child pipeline too and reference it in file writer snap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 11:06 PM
Hi, as previously stated, I would like to avoid child pipelines, just because SL is not capable of doing that. Thank you though for your input.
kind regards
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2021 01:59 PM
SL does support child pipelines though, right?
