Frage

In my KTR, I have a MongoDBInput. I need to invoke it through Java class.. I need to set the value of Query Expression variable through java. I am not able to find MongoDBInput Step in org.pentaho.di.trans.steps.* . Can anyone guide me how to set the value of Query Expression variable from java?

War es hilfreich?

Lösung

Job job = new Job(null, jobMeta);       
job.shareVariablesWith(jobMeta);
jobMeta.setParameterValue("nameVar", "toset");
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top