クラス ParamAdd

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

public class ParamAdd extends AbstractCommon

パラメータ値を加算する


入力データとパラメータ値を加算し、出力項目にセットする
入力レコードと出力レコードに設定するアイテムの数は等しい必要がある。


[I/O RECORD]

InputRecord OutputRecord
  1. 入力項目を指定する(複数指定可能)
  1. 出力項目を指定する(複数指定可能)

[RULE PARAMETER]

Parameter
  1. 数値を指定する
バージョン:
1.0
  • コンストラクタの詳細

    • ParamAdd

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

    • getIOParameter

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

      public int execute()
      変換処理を実行。In/OutRecordに指定されているもの全てを処理する。
      戻り値:
       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 の後に実行されます。
      正常終了・異常終了などに関わらず必ず実行されます。