Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Switch Case step

  1. #1

    Default Switch Case step

    Hi:

    I´m trying to get data from two different sources based on a parameter´s value.

    So I put a Switch/Case step wich reads my parameter and chooses:

    if 1 => read data from a text file input.
    If 2 => reads data from a binary file (implemented in a process row method of a UDJC).

    Problem is that whatever my parameter´s value is, it reads data from both sources at the same time, instead of one of them.

    Why is this happening? Is there any alternative way to implement that?

    Thank yoy very much. Bye!

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Using a Switch/Case step you can split a "single" input stream into multiple output streams.
    So long, and thanks for all the fish.

  3. #3

    Default

    Thanks Marabu.

    But, if a particular input value never comes, why is executing the non corresponding step?

  4. #4
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    You had no default output step specified with Switch/Case and rows not covered by any test were dispatched to a wrong output step?
    You should build a demo so we all can see, then.
    So long, and thanks for all the fish.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.