Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: 'Evaluation' job entry under a 'Execute for every input row'

  1. #1
    Join Date
    Jul 2007
    Posts
    2,498

    Question 'Evaluation' job entry under a 'Execute for every input row'

    Hello.

    I found that Evaluation does not work as I expected.

    I have a job that processes lots of files from a dir, with the first step being a transformation that reads all file names and a job that processes each.

    Under that job I have a condition like the one in the tutorial:


    The problem is that as soon as I have a 'false' entry, no more rows are processed, and this job stops. Is this the way this should work? How can I prevent this from stopping and keep processing the next rows?

    Thanks
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    jobs are about control flow, not about rows. So what you see is the expected behavior.
    The solution depends on what you really want.

    Regards,
    Sven

  3. #3
    Join Date
    Jul 2007
    Posts
    2,498

    Default

    What I want on that job, evaluated for every line is:

    Code:
    Process lines ----> Did I get any lines? -----> Process header
                                        |
                                        | (no)
                                        v
                            Process next input line
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  4. #4
    Join Date
    May 2006
    Posts
    4,882

    Default

    Split up in 3 jobs. 1 job calculating your lines and one job executed "once for every row" and doing the bit you do now. Both combined in a master job

    Regards,
    Sven

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.