문제

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?

도움이 되었습니까?

해결책

Job job = new Job(null, jobMeta);       
job.shareVariablesWith(jobMeta);
jobMeta.setParameterValue("nameVar", "toset");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top