pentaho-labs / pentaho-cpython-plugin

This is a PDI plugin that allows execution of Python code.
Apache License 2.0
33 stars 21 forks source link

How to execute code on the step initialization ? #28

Open kleysonr opened 5 years ago

kleysonr commented 5 years ago

Hi,

Some steps, such as User Defined Java Class and Modified JavaScript value, allow us to execute codes on the step initialization, such as connect to a database.

I need to create a very expensive object and I would like to create it during the step inicialization and access it during the processRow.

How can I do this in the Cpython Script Executor step ?

Best Regards. Kleyson Rios.