クラス DateNext

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

public class DateNext extends AbstractCommon

n日後の日付を取得


InRecordに指定された日付より、(Parameterで指定された数)日後の日付を設定します。
InRecordには必ず一つの項目を設定して下さい。
OutRecordには必ず一つの項目を設定して下さい。
Parameterの値が空、もしくは数値以外の値の場合、1日後の日付が設定されます。


[I/O RECORD]

InputRecord OutputRecord
  1. 元の日付を含んだ項目
  1. 算出後の日付を設定したい項目

[RULE PARAMETER]

Parameter 取得したい日数(設定なしでも可)
バージョン:
1.0
  • コンストラクタの詳細

    • DateNext

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

    • getIOParameter

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

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

      protected int loopInOutRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface inItem, jp.ne.mki.wedge.run.interfaces.DataInterface outItem, int index)
      クラスからコピーされた説明: AbstractBase
      loopInOutRecord()から呼び出されるメソッドです。ユーザが任意に記述をします。
      オーバーライド:
      loopInOutRecordSub クラス内 AbstractBase
      パラメータ:
      inItem -
      outItem -
      index -
      戻り値:
      int
    • exit

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