Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: ${Internal.Job.Repository.Directory} is empty in 6.0 version

  1. #1
    Join Date
    Sep 2014
    Posts
    11

    Default ${Internal.Job.Repository.Directory} is empty in 6.0 version

    I configure a job in repository with internal variable ${Internal.Job.Repository.Directory} to know current directory

    It works in old version (5.2) but not in 6.0

    Even I use new internal variable ${Internal.Entry.Current.Directory}, it is empty, too.

    Anyone know the issue or how to resolve it ?

    Thanks!

  2. #2
    Join Date
    Oct 2014
    Posts
    15

    Default

    There are some Jira on this, all is not fixed.
    See: http://jira.pentaho.com/browse/PDI-14653 and http://jira.pentaho.com/browse/PDI-14686
    watch and vote fore the ones not fixed.

  3. #3
    Join Date
    Jun 2013
    Posts
    24

    Default

    HI yyuanju,
    I used a Javascript step, with this code, to get the path. Maybe it will help you.

    Code:
    parent_job.addParameterDefinition("itemName", parent_job.getRepositoryDirectory() + "/" + parent_job.getJobname(), "");
    parent_job.activateParameters();
    
    true;

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.