Kettle 自定义循环 & 更新变量值
布局图
Set variables
JavaScript(循环逻辑)
var min = new Number(parent_job.getVariable("MIN")); var max = new Number(parent_job.getVariable("MAX")); if(max >= min){ true; }else{ false; }
JavaScript(更新循环条件)
var max = new Number(parent_job.getVariable("MAX")); parent_job.setVariable("MAX", max - 1); true;