metafacture / metafacture-flux

Xtext-based tool support for the Metafacture Flux language
Apache License 2.0
0 stars 0 forks source link

Extracting the unmapped fields in separate JSON #1

Closed TobiasNx closed 1 year ago

TobiasNx commented 4 years ago

While there is a fix-function map(_else) to take over all unmapped elements of a dataset, these elements are transferred to the same JSON file as all mapped elements.

Since both mapped and unmapped elements are in the same JSON-file it is difficult to read and to distinguish between them quickly.

A module would be great that creates a separate JSON with all unmapped elements. Instead of a new module an alternative way would be if the fix-function map(_else) already triggers the creation of the separate JSON file.

dr0i commented 4 years ago

You could use a TeePipe to teepipe the input into 2 morph's, one of these morph's would consist of only the '_else' and the other with all the rules but without the '_else'. The output goes into 2 different sinks.

dr0i commented 4 years ago

Addendum: the one morph with the '_else' had to include the other morph ('') of course.

TobiasNx commented 1 year ago

Closing, since not related to the extension