Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Carte with named parameter(s)

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    Default Carte with named parameter(s)

    Hi,

    since you can launch transformations and jobs with named parameters in kitchen (there is ample documentation on this), I was wondering whether you can do the same with carte?

    I need to pass a named parameter from a URL to my job, I can launch the job normally in carte's web ui after having executed it once remotely from spoon. However, when I try to run the same job and append the named parameter to it, the job still uses the same default value as in the first remote execution from spoon (I have done this repeatedly...).

    There is a post by Matt Casters on exposing eg. csv as a web service:
    http://wiki.pentaho.com/display/EAI/...r+web+services see "The URL":
    "You can also pass transformation parameters and variables through the URL. Simply add &PARAM=value and the appropriate parameter or variable in the transformation will be set prior to execution."

    However, this seems to be specific to exposing material as a web service. Also, the method executeTrans is different from startExec and startTrans documented in slave server services.

    There is also a discussion on named parameters in kitchen with a similar question and what seems to be an answer:
    http://wiki.pentaho.com/display/EAI/Named+Parameters

    So for simplicitys sake can you use eg.: 127.0.0.1:8181/kettle/startJob/?name=job_name&my_param=my_param_value to pass a parameter value to the named parameter in a job running in carte (without coding Java)?

    In case you can do this, what are the steps involved?

    Regards,
    Henrik

  2. #2

    Default

    hey Henrik, I am also looking for similar approch, did you find anything which you can share to me?
    --------------
    Vishal B.
    Sr. Developer

  3. #3
    Join Date
    Nov 1999
    Posts
    459

    Default

    Just tested this with success with a transformation (PDI 4.2.1). See attachment to http://jira.pentaho.com/browse/PDI-2663
    e.g. with the URL:
    http://localhost:8081/kettle/execute...tr&testvar=abc
    Attached to PDI-2663 is a .ktr sample to test without named parameters. It works also with named parameters.

    Please let us know if there are still issues and file a JIRA case for this.

    Thanks,
    Jens

Tags for this Thread

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.