Pipeline Demonstrating the Binary Router Snap

This pipeline demonstrates the Binary Router Snap.



Download this Pipeline
The first Snap reads a JSON document that contains three filenames. The JSON Splitter Snap turns it into three documents and the filename is passed as a parameter to the File Reader Snap. That Snap reads the first file, passes it to the Binary Router Snap where it is evaluated, a new file is written and then the next file is read and the process is repeated.


The evaluation in the Binary Router looks at the content-length and sends it to a different output view depending on size based on the following criteria:
  • $["content-length"] <= 10
  • $["content-length"] >= 11 && $["content-length"] <= 1023
  • $["content-length"] > 1024
To successfully reuse pipelines:
  1. Download and import the pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide pipeline parameters as applicable.