Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Transformation execution by parameter

  1. #1
    Join Date
    Dec 2016
    Posts
    17

    Unhappy Transformation execution by parameter

    Hello,
    I need solution for below problem.
    I have one folder that contains many transformations like COUNTRY_CODE_XXX1.ktr, COUNTRY_CODE_XXX2.ktr
    one country_code may have one or many transformations.
    From job we will receive country_code as parameter, so all transformation that belongs to this Country_Code should be executed.

    How I can achieve it from same job.

  2. #2
    Join Date
    Nov 2009
    Posts
    688

    Default

    Use the variable country_code to generate a list with all the transformations with that variable in the name of the file. Search with a regex something like ^.*${country_code}.*\.(ktr)$
    With that list you can run all the transformations.
    In the examples directory there is an example job to run all transformations : Run all sample transformations.kjb

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.