title: Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run
body: <p>I am trying to programmatically get the details of a specific execution of a transformation </p>
  
  <p><strong>What I have tried so far</strong></p>
  
  <p>I get the status of the Kettle Slave Server/Carte at </p>
  
  <pre><code>http://localhost:8282/kettle/status/
  </code></pre>
  
  <p>From this page, I can click on the desired transformation and I am taken to another page that shows the details and also has a link to the XML output to the current status of a specific execution of a transformation. The link is something like this:</p>
  
  <pre><code>http://localhost:8282/kettle/transStatus/?name=trans_name&amp;id=Carte_Ob_ID&amp;xml=y
  </code></pre>
  
  <p><strong>The problem</strong></p>
  
  <p>I have a transformation that has been run multiple times recently. I don't have the Carte_Obj_ID for a specific run of the transformation. So, I can't provide it in the URI. If I try the following URI instead:</p>
  
  <pre><code>http://localhost:8282/kettle/transStatus/?name=trans_name&amp;xml=y
  </code></pre>
  
  <p>then I get the status of a random execution. Not the latest one or any specific one. </p>
  
  <p><strong>The Goal</strong></p>
  
  <p>I am writing a .net GUI where I have this code. </p>
  
  <pre><code>HttpWebRequest req = (HttpWebRequest)WebRequest.
                          Create(@"http://localhost:8282/kettle/transStatus/?
                                  name=Trans_Name
                                  &amp;id=Carte_Obj_ID
                                  &amp;xml=y");
  req.Method = "GET";
  req.Credentials = new NetworkCredential("cluster", "cluster");                
  resp = req.GetResponse();
  xmlResultStream = resp.GetResponseStream();
  StreamReader readStream = new StreamReader(xmlResultStream, Encoding.UTF8);
  String a = readStream.ReadToEnd();
  </code></pre>
  
  <p>I intend to get the status XML of a specific execution of a transformation and allow a non-Pentaho admin user to run transformations at a  click of a button. </p>
  
  <p>Thanks for any help in advance. I have taken inspiration from <a href="http://www.ibridge.be/?p=199" rel="nofollow">this article</a>.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I saw <a href="http://jira.pentaho.com/browse/PDI-7227" rel="nofollow">this old JIRA entry</a> where this bug is said to be fixed. I have PDI 5.0 trial version, not sure if this fix is actually there. </p>
  
  <p><strong>Update 2:</strong></p>
  
  <p>Based on the suggestion below I am trying to run a transformation and fetch the carte object ID for that specific execution (so that I can then run other operations (like transStatus etc) based on that specific object ID). </p>
  
  <p>I tried the following URI but I get an unexpected error:</p>
  
  <pre><code>http://localhost:8282/kettle/runTrans/?trans=
  C:%2FProgram%20Files%2Fpentaho%2Fdesign-tools%2Fdata-integration%2Fsamples%2Ftransformations%2FCSV%20Input%20-%20Reading%20customer%20data%20v2.ktr
  &amp;FileName=C:%2FProgram%20Files%2Fpentaho%2Fdesign-tools%2Fdata-integration%2Fsamples%2Ftransformations%2Fcust.txt
  &amp;level=DebugLevel
  &amp;xml=y
  </code></pre>
  
  <p>What could possibly be wrong with this URI? </p>
  
  <p>Note that the following works fine for me. However it doesn't give me the carte obj ID in the result:</p>
  
  <pre><code>http://localhost:8282/kettle/executeTrans/?trans=
  C:%2FProgram%20Files%2Fpentaho%2Fdesign-tools%2Fdata-integration%2Fsamples%2Ftransformations%2FCSV%20Input%20-%20Reading%20customer%20data%20v2.ktr
  &amp;FileName=C:%2FProgram%20Files%2Fpentaho%2Fdesign-tools%2Fdata-integration%2Fsamples%2Ftransformations%2Fcust.txt
  </code></pre>