クラス OutputTextFileRule

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

public class OutputTextFileRule extends AbstractServer

入力レコードに設定されたデータをテキストファイルへ出力する


InRecordには出力する項目を設定します
OutRecord(0)に実行結果を格納します。 0:正常終了
1:異常終了
Parameterに出力モードを指定します。
指定なし:outout mode
APPEND:append mode


[I/O RECORD]

InputRecord OutputRecord
  1. ファイルへ出力する項目を指定する(複数指定)
  1. 実行結果を格納する項目を指定する

[RULE PARAMETER]

Parameter 出力モードを指定します
バージョン:
1.0
  • フィールド詳細

    • stepParameter

      Hashtable<String,String> stepParameter
    • filename

      String filename
    • outputfile

      jp.ne.mki.wedge.run.batch.library.XM_OutputFile outputfile
    • ruleparam

      String ruleparam
    • inpData

      String inpData
    • result

      jp.ne.mki.wedge.run.interfaces.DataInterface result
    • msg

      String msg
  • コンストラクタの詳細

    • OutputTextFileRule

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

    • execute

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

      public int loopInRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface inItem, int index)
      入力項目の数値を足し算します。
      InRecordの行数分繰り返し処理を行われます。
      オーバーライド:
      loopInRecordSub クラス内 AbstractBase
      パラメータ:
      index -
      戻り値:
       int BusinessRuleの戻り値を参照
    • getIOParameter

      public int getIOParameter()
      処理に必要なITEMをI/ORecordより取得。execute の前に実行される。
      戻り値:
      int OK=処理続行、ERROR=異常終了、CANCEL=処理を中断(正常終了)
    • exit

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