我为 pentaho 创建了一个步骤插件,它提供了一些输出字段。它从前面的步骤中获取 2 个输入字段,添加一些元数据和输出字段。虽然输出被发送到下一步,但是当我右键单击并单击输出字段时,它只显示来自先前步骤的字段和值,而不是我创建的步骤插件。下面是 Meta 类的 Java 代码。import org.eclipse.swt.widgets.Shell;import org.pentaho.di.core.annotations.Step;import org.pentaho.di.core.exception.KettleStepException;import org.pentaho.di.core.row.RowMeta;import org.pentaho.di.core.row.RowMetaInterface;import org.pentaho.di.core.row.ValueMeta;import org.pentaho.di.core.row.ValueMetaInterface;import org.pentaho.di.core.variables.VariableSpace;import org.pentaho.di.repository.Repository;import org.pentaho.di.trans.Trans;import org.pentaho.di.trans.TransMeta;import org.pentaho.di.trans.step.*;import org.pentaho.metastore.api.IMetaStore;@Step( id = "FlatJson", image = "com/cxps/flatjson/steps/resources/demo.svg", i18nPackageName = "com.cxps.flatjson", name = "FlatJson.name", description = "FlatJson.description", categoryDescription = "i18n:org.pentaho.di.trans.step:BaseStep.Category.Transform")public class FlatJsonMeta extends BaseStepMeta implements StepMetaInterface { public FlatJsonMeta() { super(); } @Override public void setDefault() { } @Override public StepInterface getStep(StepMeta stepMeta, StepDataInterface sdi, int i, TransMeta transMeta, Trans trans) { return new FlatJson(stepMeta, sdi, i, transMeta, trans); } @Override public StepDataInterface getStepData() { return new FlatJsonData(); } public StepDialogInterface getDialog(Shell shell, StepMetaInterface smi, TransMeta transMeta, String name) { return new FlatJsonDialog(shell, smi, transMeta, name); }这是我的插件的 Spoon 视图,它不显示输出字段。
添加回答
举报
0/150
提交
取消