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
    Posts
    1

    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 http://forums.pentaho.com/archive/in...p/t-59621.html 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:
    Code:
    var inputFileLoc = parent_job.getVariable("appIds_file_loc");java;
    var d = Packages.TestingKettle.main(inputFileLoc);
    true;
    "appIds_file_loc" is defined in the Set Variables entry.

    I see following error when I execute the job.

    Code:
    JavaScript - ERROR (version 5.1.0.0, 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.

    Thanks
    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.