Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: Passing values to JavaScript Job entry to invoke a java process

  1. #1
    Join Date
    Nov 2014

    Default Passing values to JavaScript Job entry to invoke a java process

    Hi I am a newbiew to Pentaho DI Kettle hence excuse me for silly question and Thanks in advance for help.

    I need a job that has a transformation that creates a text file. I need to pass this text file as a input to other Java Process.

    I followed this post to successfully invoke the Java Process from java script but is unable to pass the values to a java script job entry to invoke the java process.

    Please see the image of job attached.

    The JavaScript entry has this code:
    var inputFileLoc = parent_job.getVariable("appIds_file_loc");java;
    var d = Packages.TestingKettle.main(inputFileLoc);
    "appIds_file_loc" is defined in the Set Variables entry.

    I see following error when I execute the job.

    JavaScript - ERROR (version, build 1 from 2014-06-19_19-02-57 by buildguy) : Couldn't compile javascript: org.mozilla.javascript.EvaluatorException: Can't find method TestingKettle.main(java.lang.String). (<cmd>#3)
    Any help would be greatly appreciated.

    Attached Images Attached Images  

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.