[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kettle-developers
Subject:    Re: Internal variable resolution - when does it occur?
From:       Matt Casters <mcasters () pentaho ! org>
Date:       2012-09-14 11:04:00
Message-ID: CAM1YkNJVZ1+TH=Qr1X6shrzRTKB5vHuiKD_CkVcFEFOxyHDUqA () mail ! gmail ! com
[Download RAW message or body]

The exportResources() method in TransMeta() and JobMeta() allows you to
export resources.  This includes replacing relative paths.  How this is
done can be handled programmatically with a ResourceNamingInterface.  We
provide a few (Sequence~ and UUIDResourceNamingInterface) but you can
create your own method of naming resources, whatever makes you happy.

Good luck!

Matt


2012/9/13 Mike Krumlauf <mjkrumlauf@gmail.com>

> Independently of Spoon, Pan, or Kitchen I need to programmatically load
> the entire job or transformation into memory and resolve the internal
> Kettle variables, so that I can generate the kjb/ktr XML with variables
> such as ${Internal.Job.Filename.Directory} resolved. Essentially I need to
> resolve as many variables as possible without actually running the kjb/ktr
> so that the internal state of the job or transformation is available.  How
> would I go about doing this?
>
> Thanks,
> Mike Krumlauf
>
> --
> You received this message because you are subscribed to the Google Groups
> "kettle-developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/kettle-developers/-/Q4IISQXvaFAJ.
> To post to this group, send email to kettle-developers@googlegroups.com.
> To unsubscribe from this group, send email to
> kettle-developers+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/kettle-developers?hl=en.
>



-- 
Matt Casters <mcasters@pentaho.org>
Chief Data Integration, Kettle founder, Author of Pentaho Kettle
Solutions<http://www.amazon.com/Pentaho-Kettle-Solutions-Building-Integration/dp/0470635177>
 (Wiley <http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470635177.html>)
Fonteinstraat 70 - 9400 OKEGEM - Belgium - Cell : +32 486 97 29 37
*Pentaho  -  Powerful Analytics Made Easy*

-- 
You received this message because you are subscribed to the Google Groups "kettle-developers" group.
To post to this group, send email to kettle-developers@googlegroups.com.
To unsubscribe from this group, send email to kettle-developers+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/kettle-developers?hl=en.


[Attachment #3 (text/html)]

The exportResources() method in TransMeta() and JobMeta() allows you to export \
resources.  This includes replacing relative paths.  How this is done can be handled \
programmatically with a ResourceNamingInterface.  We provide a few (Sequence~ and \
UUIDResourceNamingInterface) but you can create your own method of naming resources, \
whatever makes you happy.<div> <br></div><div>Good \
luck!</div><div><br>Matt</div><div><br><br><div class="gmail_quote">2012/9/13 Mike \
Krumlauf <span dir="ltr">&lt;<a href="mailto:mjkrumlauf@gmail.com" \
target="_blank">mjkrumlauf@gmail.com</a>&gt;</span><br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Independently of Spoon, Pan, or Kitchen I need to \
programmatically load the entire job or transformation into memory and resolve the \
internal Kettle variables, so that I can generate the kjb/ktr XML with variables such \
as ${Internal.Job.Filename.Directory} resolved. Essentially I need to resolve as many \
variables as possible without actually running the kjb/ktr so that the internal state \
of the job or transformation is available.  How would I go about doing this?  <div> \
<br></div><div>Thanks,</div><div>Mike Krumlauf</div><span class="HOEnZb"><font \
color="#888888">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups \
&quot;kettle-developers&quot; group.<br> To view this discussion on the web visit <a \
href="https://groups.google.com/d/msg/kettle-developers/-/Q4IISQXvaFAJ" \
target="_blank">https://groups.google.com/d/msg/kettle-developers/-/Q4IISQXvaFAJ</a>.<br> \
 To post to this group, send email to <a \
href="mailto:kettle-developers@googlegroups.com" \
target="_blank">kettle-developers@googlegroups.com</a>.<br> To unsubscribe from this \
group, send email to <a \
href="mailto:kettle-developers%2Bunsubscribe@googlegroups.com" \
target="_blank">kettle-developers+unsubscribe@googlegroups.com</a>.<br>

For more options, visit this group at <a \
href="http://groups.google.com/group/kettle-developers?hl=en" \
target="_blank">http://groups.google.com/group/kettle-developers?hl=en</a>.<br>


</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matt \
Casters &lt;<a href="mailto:mcasters@pentaho.org" \
target="_blank">mcasters@pentaho.org</a>&gt;<br>Chief Data Integration, Kettle \
founder, Author of <a \
href="http://www.amazon.com/Pentaho-Kettle-Solutions-Building-Integration/dp/0470635177" \
target="_blank">Pentaho Kettle Solutions</a> (<a \
href="http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470635177.html" \
target="_blank">Wiley</a>)<br> Fonteinstraat 70 - 9400 OKEGEM - Belgium - Cell : +32 \
486 97 29 37<div><b style="background-color:rgb(255,255,255)"><font \
color="#ff6600"><span \
style="font-family:arial,sans-serif;line-height:11px">Pentaho</span>  -  <span \
style="font-family:arial,sans-serif;line-height:11px">Powerful Analytics Made \
Easy</span></font></b></div> <br>
</div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups \
"kettle-developers" group.<br /> To post to this group, send email to \
kettle-developers@googlegroups.com.<br /> To unsubscribe from this group, send email \
to kettle-developers+unsubscribe@googlegroups.com.<br />

For more options, visit this group at \
http://groups.google.com/group/kettle-developers?hl=en.<br />



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic