Class RunScriptAction
java.lang.Object
com.inductiveautomation.reporting.gateway.actions.AbstractReportAction
com.inductiveautomation.reporting.gateway.actions.RunScriptAction
Filename: RunScriptAction
 Author: Perry Arellano-Jones
 Created on: 6/8/15
 Project: Reporting 3.0
 
An "Extension Function Style" Report Action that allows the running of a script upon generation of a scheduled report.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRunScriptAction(GatewayContext context, String projectName, ReportExecutionContext reportContext) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidperform(RMDocument report, ReportResource reportResource, AbstractReportActionConfig config, String reportPath, String reportName, Map<String, Object> parameterData) voidperform(RMDocument report, ReportResource reportResource, AbstractReportActionConfig config, String reportPath, String reportName, Map<String, Object> parameterData, Map<String, Object> configData) Called by system.report.executeAndDistribute.
- 
Field Details- 
AUDIT_FAIL_MSG- See Also:
 
 
- 
- 
Constructor Details- 
RunScriptActionpublic RunScriptAction(GatewayContext context, String projectName, ReportExecutionContext reportContext) 
 
- 
- 
Method Details- 
performpublic void perform(RMDocument report, ReportResource reportResource, AbstractReportActionConfig config, String reportPath, String reportName, Map<String, Object> parameterData) - Specified by:
- performin class- AbstractReportAction
 
- 
performpublic void perform(RMDocument report, ReportResource reportResource, AbstractReportActionConfig config, String reportPath, String reportName, Map<String, Object> parameterData, Map<String, Object> configData) Description copied from class:AbstractReportActionCalled by system.report.executeAndDistribute. This parses the configData that applies to this distribution type, updates a distribution config, and calls the other overload of perform.- Specified by:
- performin class- AbstractReportAction
- Parameters:
- report- The RMDocument generated from the report template
- reportResource- The ReportResource
- config- A new blank config of the appropriate type. May be altered by the configData before calling the overload.
- reportPath- Path to the report we want to perform.
- reportName- Name of the report we want to perform.
- parameterData- Optional parameter overrides.
- configData- Optional data to apply to the configuration. Missing values will be left at the default values.
 
 
-