jp.ne.mki.wedge.rule.compat10.batch.textfile
クラス V10xOutputTextFileRule

java.lang.Object
  |
  +--jp.ne.mki.wedge.rule.AbstractBusinessRule
        |
        +--jp.ne.mki.wedge.rule.compat10.batch.textfile.V10xOutputTextFileRule
すべての実装インタフェース:
BusinessRuleInterface, RuleEngineInterface

public class V10xOutputTextFileRule
extends AbstractBusinessRule

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


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


[I/O RECORD]

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

[RULE PARAMETER]

Parameter 出力モードを指定します

バージョン:
1.0
作成者:
mki

フィールドの概要
(パッケージプライベート)  java.lang.String filename
           
(パッケージプライベート)  java.lang.String inpData
           
(パッケージプライベート)  java.lang.String msg
           
(パッケージプライベート)  jp.ne.mki.wedge.run.common.library.XM_OutputFile outputfile
           
(パッケージプライベート)  DataInterface result
           
(パッケージプライベート)  java.lang.String ruleparam
           
(パッケージプライベート)  java.util.Hashtable stepParameter
           
 
クラス jp.ne.mki.wedge.rule.AbstractBusinessRule から継承したフィールド
className, errorMessage, EXECUTE_BOTH, EXECUTE_CLIENT, EXECUTE_HTMLGATEWAY, EXECUTE_SERVER, EXECUTE_SERVERDC, id, inputRecord, logicalName, outputRecord, physicalName, ruleParameter, ruleType, serverParameter, TIMING_AFTER, TIMING_BEFORE, TIMING_LOAD, TIMING_ROW_CLICK, TIMING_ROW_WCLICK, TIMING_UN_LOAD
 
インタフェース jp.ne.mki.wedge.run.interfaces.BusinessRuleInterface から継承したフィールド
CANCEL, ERROR, OK, SKIP, USER_ERROR
 
コンストラクタの概要
V10xOutputTextFileRule()
           
 
メソッドの概要
 int execute()
          処理を実行します
 void exit()
          終了処理。
 int getIOParameter()
          処理に必要なITEMをI/ORecordより取得。
 int loopInRecordSub(DataInterface inItem, int index)
          入力項目の数値を足し算します。
 
クラス jp.ne.mki.wedge.rule.AbstractBusinessRule から継承したメソッド
createErrorMessage, executeRule, executeRule, getAppAccount, getAppAuthority, getAppMenu, getAppPassword, getClassErrorName, getClientId, getClientRuleObject, getCodeBase, getComponent, getComponent, getConfig, getConfImagePath, getConnectionId, getConnectionPoolId, getConstantValue, getContentPane, getCurrentComponent, getDbAccessCount, getDbErrorCode, getDbErrorMessage, getDbStatus, getDbUpdatedRecordCount, getExceptionMessage, getExecuteIndex, getExecuteParameter, getExecuteTiming, getExecuteType, getExecutions, getExpectNextComponent, getFrame, getHtmlExecution, getHtmlManagerObject, getId, getImageIcon, getInRecord, getInRecord, getInRecord, getInRecordCount, getIpAddress_G_Index, getIpAddress_P_Index, getLogicalErrorName, getLogicalName, getManager, getOutRecord, getOutRecord, getOutRecord, getOutRecordCount, getPhysicalErrorName, getPhysicalName, getProjectId, getQueryEndLine, getQueryMaxCount, getQueryPageCount, getQueryStartLine, getReturnString, getRuleParameter, getRuleType, getRuleTypeName, getServerControlData, getServerData, getServerMessage, getServerParameter, getServerStatus, getServerSubName, getServerSubRevision, getServerTran, getStepParameter, getUpdateErrorLine, getUpdateTargetCount, getWebServerIpAddress, isApplet, isApplication, isClientTraceMode, isConpiled, isExecutable, isJWS, isServerTraceMode, isWeb, loopInOutRecord, loopInOutRecordSub, loopInRecord, loopOutRecord, loopOutRecordSub, setControlRecord, setControlRecord, setControlRecordVector, setExecuteParameter, setExecuteType, setFocus, setFocus, setFocus, setHtmlExecution, setHtmlManager, setId, setInRecord, setLogicalName, setManager, setOutRecord, setPhysicalName, setPropertyFromEngine, setRuleParameter, setRuleType, setServerControlData, setServerData, setServerParameter, setStatusBarText, setUserConstant, setWedgeLog, showDocument, showErrorDialog, showErrorDialogAddRuleName, showFrame, showFrame, terminate, writeLog, writeLog, writeTraceLog
 
クラス java.lang.Object から継承したメソッド
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

stepParameter

java.util.Hashtable stepParameter

filename

java.lang.String filename

outputfile

jp.ne.mki.wedge.run.common.library.XM_OutputFile outputfile

ruleparam

java.lang.String ruleparam

inpData

java.lang.String inpData

result

DataInterface result

msg

java.lang.String msg
コンストラクタの詳細

V10xOutputTextFileRule

public V10xOutputTextFileRule()
メソッドの詳細

execute

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

loopInRecordSub

public int loopInRecordSub(DataInterface inItem,
                           int index)
入力項目の数値を足し算します。
InRecordの行数分繰り返し処理を行われます。
オーバーライド:
クラス AbstractBusinessRule 内の loopInRecordSub
戻り値:
int BusinessRuleの戻り値を参照

getIOParameter

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

exit

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