クラス SetNullis0else1

すべての実装されたインタフェース:
CommonInterface, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface

public class SetNullis0else1 extends AbstractCommon

入力項目が空の時0、空以外の時1を出力項目に設定します。


入力項目が空のときは0を出力項目に設定します。
入力項目が殻でないときは1を出力項目に設定します。


[I/O RECORD]

InputRecord OutputRecord
  1. チェックを行う項目(複数指定)
  1. 空判定の結果を設定するアイテム(複数指定)

[RULE PARAMETER]

Parameter
バージョン:
1.0
  • コンストラクタの詳細

    • SetNullis0else1

      public SetNullis0else1()
  • メソッドの詳細

    • execute

      public int execute()
      チェック処理を実行します。
      戻り値:
       int BusinessRuleの戻り値を参照
    • loopInOutRecordSub

      public int loopInOutRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface inItem, jp.ne.mki.wedge.run.interfaces.DataInterface outItem, int index)
      入力項目が空の時0以外の時1を出力項目に、設定します。
      In/OutRecordの行数分繰り返し処理を行われます。
      オーバーライド:
      loopInOutRecordSub クラス内 AbstractBase
      パラメータ:
      inItem -
      outItem -
      index -
      戻り値:
       int BusinessRuleの戻り値を参照
    • getIOParameter

      public int getIOParameter()
      IOパラメータ取得。execute の前に実行される。
      戻り値:
      int OK=処理続行、ERROR=異常終了、CANCEL=処理を中断(正常終了)
    • exit

      public void exit()
      終了処理。保持していた変数などを開放する処理を記述します。
      execute の後に実行されます。
      正常終了・異常終了などに関わらず必ず実行されます。