Java Code Examples for org.pentaho.di.trans.TransMeta#setInternalKettleVariables()

The following examples show how to use org.pentaho.di.trans.TransMeta#setInternalKettleVariables() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractKettleTransformationProducer.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
private Trans prepareTransformation( final DataRow parameters,
                                     final DataFactoryContext context,
                                     final TransMeta transMeta )
  throws EvaluationException, ParseException, KettleException {
  final FormulaContext formulaContext = new WrappingFormulaContext( context.getFormulaContext(), parameters );
  final String[] params = fillArguments( formulaContext );

  final Trans trans = new Trans( transMeta );
  trans.setArguments( params );
  updateTransformationParameter( formulaContext, trans );
  transMeta.setInternalKettleVariables();
  trans.prepareExecution( params );
  return trans;
}