Envío de un informe

En este ejemplo se muestra cómo enviar un informe. El script llama a un archivo por lotes que incluye los parámetros necesarios en lugar de incluir los parámetros directamente en el script. Tenga en cuenta que si intenta enviar un script de informe con un signo igual (=) en los parámetros, se produce un fallo en el script.

#
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)

El archivo myreport.bat al que se hace referencia arriba puede contener el signo igual como parámetro como en el siguiente:

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