Question

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?

Was it helpful?

Solution

Job job = new Job(null, jobMeta);       
job.shareVariablesWith(jobMeta);
jobMeta.setParameterValue("nameVar", "toset");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top