Chapter 5. Transforming Your Data with JavaScript Code and the JavaScript Step

Whichever transformation you need to do on your data, you have a big chance of finding that PDI steps are able to do the job. Despite that, it may happen that there are not proper steps that serve your requirements, or that an apparently minor transformation consumes a lot of steps linked in a very confusing arrangement difficult to test or understand. Putting colorful icons here and there is funny and practical, but there are some situations like the ones described above where you inevitably will have to code. This chapter explains how to do it with JavaScript and the special JavaScript step.

In this chapter you will learn how to:

  • Insert and test JavaScript code in your transformations
  • Distinguish situations where coding is the best option, from those where there are better alternatives

Doing simple tasks with the JavaScript step

One of the traditional steps inside PDI is the JavaScript step that allows you to code inside PDI. In this section you will learn how to use it for doing simple tasks.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.230.172