Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1857

Improvements to Flatpack DataFormat

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0-M1
    • None
    • camel-flatpack
    • None

    Description

      There are some small improvements that would improve the Flatpack DataFormat. Basically because the header and trailer are fixed names, and are not exposed via the DataSetList, there are some cases where we need to write our own code instead of using the FlatPack DataFormat.

      Firstly, it would be good if instead of two special cases "header" and "trailer", if you could designate your own set of special record ids to be checked e.g. "header", "footer1", "footer2". This would allow us to reuse our existing flatpack config files, especially where we have most than one footer.

      Secondly, since the FlatpackConverter already detects the record id as part of its processing, it would be nice if it included this as a synthetic key value in the DataSetList e.g. "record_type" -> "trailer".

      n.b. I have raised a feature request with FlatPack, so that they expose the current record type, but I doubt there is any point waiting for it. If they did implement it, then you would not need to have any special record types e.g. "header and "trailer"

      https://sourceforge.net/tracker/?func=detail&aid=2827654&group_id=127761&atid=709369

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuri Yuri Schimke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: