Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: How the option - "Copy previous results to args?" works?

  1. #1

    Default How the option - "Copy previous results to args?" works?

    Hi,

    I want to move files based on condition say size, last modified date etc. I create the list using get file name step. I copied it to the result. I followed the KTR with the move file step. But it doesn't work. Any special field name needs to be followed. Kindly clarify.


    Regards,
    Subbu S

  2. #2

    Default

    Are you going to execute the move step only once or for every file?

  3. #3

    Default

    Quote Originally Posted by veskojl View Post
    Are you going to execute the move step only once or for every file?
    Multiple times for each file.

    Regards,
    Subbu S

  4. #4
    Join Date
    Aug 2011
    Posts
    5

    Default HI

    You can try this thing. First "Get Files" step to get the information of all the files you want to process, then filter the filenames according to requirement with "filter rows" step and then you can move the file with simple Java script. I have used add constants options to add the destination file in the record and used that as one of the variables in Java Script. That can be done directly in the scripting also.

    Name:  ktr.jpg
Views: 100
Size:  15.3 KB

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.