EPM統合エージェントを使用してライトバックする際に、AftExport
を使用して、表にデータを挿入した後で処理後のクリーンアップを実行します。
次のスクリプト例は、ライトバック後に実行される外部APIを呼び出す方法を示しています。
この例のAftExport
イベント:
agentContextParams
マップの内容を出力しますEPM_APP_DATA_HOME\logs
のプロセス・ログに記録されます。EPM_APP_DATA_HOME\logs
のプロセス・ログに記録されます。EPM統合エージェントのコンテキスト関数の詳細は、EPM統合エージェントのコンテキスト関数を参照してください。
このスクリプトは例としてのみ提供されており、障害に対する保証はされず、ユーザーはこのスクリプトに関連する質問や問題についてOracleサポートにサービス・リクエストを提出できません。
import sys ''' After export custom script. This script will be called after the writeback finishes execution. ''' #print "Begin: AftExport.py" #print 'Event Type is: ' + event ''' Print the contents of the agentContextParams map which is an unmodifiable map. ''' #print 'JOBTYPE: ' + agentContext["JOBTYPE"] #print 'EPM_APP_DATA_HOME: ' + agentContext["EPM_APP_DATA_HOME"] #print 'WRITEBACK_DATA_FILE: ' + agentContext["WRITEBACK_DATA_FILE"] #print 'JOBID: ' + str(agentContext["JOBID"]) #print 'INTEGRATION: ' + agentContext["INTEGRATION"] #print 'LOCATION: ' + agentContext["LOCATION"] #print 'SOURCE_APPLICATION: ' + agentContext["SOURCE_APPLICATION"] #print 'TARGET_APPLICATION: ' + agentContext["TARGET_APPLICATION"] ''' Log an info message to the agent process log. This entry will be logged only to the process log in EPM_APP_DATA_HOME\logs folder and not to epmagent.log. The log entry will be created at INFO log level. ''' #agentAPI.logInfo("SAMPLE: INFO log message from script") ''' Log an severe message to the agent process log. This entry will be logged into the process log in EPM_APP_DATA_HOME\logs folder and also into epmagent.log. The log entry will be created at SEVERE log level. ''' #agentAPI.logError("SAMPLE: SEVERE log message from script") ''' Return false in case of error, which will throw an exception in the agent. ''' returnValue = 'true' #print "End: AftExport.py"