Hitachi Vantara Pentaho Community Forums
Results 1 to 8 of 8

Thread: Switch/Case JOB!

  1. #1

    Default Switch/Case JOB!

    Does anybody know some job, which could act like switch/case. I wanna call different sub-jobs on given condition, but output of every job is TRUE or FALSE.

    P.S.
    1.One solution is to parametrize the sub-job name, but this is a not very good solution.
    2.Cascading Simple Eval. also works.
    Last edited by veskojl; 02-28-2011 at 05:01 AM.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,771

    Default

    Hi.
    I used Simple Evaluation step and it worked fine.
    But I had only 2 possible paths.
    Maybe a Javascrip of some sort?

    Mick

  3. #3
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    I'm not against it per-se. However, what is the use-case for such a job entry?

  4. #4
    Join Date
    Apr 2008
    Posts
    1,771

    Default

    Hi Matt.
    I can reply regarding my case.
    Every week I have to download data from an ftp site and apply some data transformations to it.
    Since every week the source folder is different, I use a Script to get the system date, then depending on the result I use the data flow with the appropriate GetFiles from FTP step in it.

    Mick

  5. #5
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    Sounds more like a use-case for using a ${SOURCE_FOLDER} variable.

  6. #6

    Default

    Matt, similar case here. I have job that implements different download logic based on source type , SSH, mail etc. and every row is redirected to the appropriate sub-job.

  7. #7
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    And what would you switch on? The content of a variable?

  8. #8

    Default

    hi,
    even i want the solution for the same problem. i have a field to switch and depending on the field value i have to execute sub transformations. how can i implement this. I am a fresher. i need some idea in implementing this.

    thanks in advance.
    lakshmi.

Tags for this Thread

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.