보고서 제출

이 예에서는 보고서 제출 방법을 보여줍니다. 스크립트는 스크립트에서 직접 매개변수를 포함하지 않고 필요한 매개변수가 포함된 뱃치 파일을 호출합니다. 매개변수에 등호(=)가 사용된 보고서 스크립트를 제출하려고 시도하면 스크립트가 실패합니다.

#
This sample Jython script provides code related to custom scripts. All the messages being logged (meaning printed) are visible in the process log file as per Log Level profile.
#
# Log the beginning of the script, at the INFO level
fdmAPI.logInfo("======================================================================")
fdmAPI.logInfo("Custom Script: Begin")
fdmAPI.logInfo("======================================================================")
# Execute the subprocess to call and run the batch file
import os
import subprocess
os.chdir("D:/ORCL/MW/EPMSystem11R1/products/FinancialDataQuality/bin")
myScriptName = "D:/ORCL/MW/EPMSystem11R1/products/FinancialDataQuality/bin/myreport.bat"
retcode = subprocess.Popen(myScriptName) 
fdmAPI.logDebug("The return code = " + retcode)

위에 참조된 myreport.bat 파일은 다음과 같은 형식으로 등호를 매개변수로 포함할 수 있습니다.

runreport.bat <username> <password> "TB All Columns (Per,Cat,Loc)" "Period=Jan 15" "Category=Actual" "Location=AAA" "Rule Name=AAA" "Report Output Format=PDF"