Class ScriptConfig
java.lang.Object
com.inductiveautomation.ignition.common.script.ScriptConfig
- Direct Known Subclasses:
- ClientScriptConfig,- SystemEventsConfig
This class is simply a storage class for the serialization of various script configuration things. An instance of
 this class is held by the root FPMIApp and it stores things like the startup and shutdown scripts, the keystroke
 scripts, and the timer scripts.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringprotected MessageHandlerManagerprotected Map<MessageHandlerKey,String> static final Stringstatic final Stringstatic final ResourceTypestatic final Stringprotected ScheduledScriptManagerprotected List<com.inductiveautomation.ignition.common.script.ScheduledScript>static final Stringprotected Stringstatic final Stringprotected Stringstatic final Stringprotected TagChangeScriptManagerprotected List<TagChangeScript>static final Stringprotected TimerScriptManagerprotected String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns an instance of the MessageHandlerManager so that the client can register a push listener and use this manager.List<com.inductiveautomation.ignition.common.script.ScheduledScript>voidinvokeGWMessageHandler(String messageHandlerName, org.python.core.PyDictionary messageParams) Deprecated.voidinvokeGWMessageHandler(String messageHandlerName, org.python.core.PyDictionary messageParams, Properties filterParams) voidinvokeGWRequestHandler(String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler) Deprecated.voidinvokeGWRequestHandler(String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler, Properties filterParams) voidvoidsetScheduledScripts(List<com.inductiveautomation.ignition.common.script.ScheduledScript> scheduledScripts) voidsetShutdownScript(String string) voidsetStartupScript(String string) voidsetTagChangeScripts(List<TagChangeScript> scripts) voidsetTagChangeScripts(Map<String, String> oldMap) Deprecated.voidsetTimerScripts(Map<TimerKey, String> map) voidsetUpdateScript(String updateScript) voidshutdown()Shuts down long-running tasks in the script config, such as timer scripts and tag change scriptsvoidstartup(String projectName, ScriptManager manager, TagManager tagManager, IScriptsEnabled scriptsEnabled) 
- 
Field Details- 
MODULE_ID- See Also:
 
- 
RESOURCE_TYPE
- 
STARTUP_LOCATION_VALUE- See Also:
 
- 
SHUTDOWN_LOCATION_VALUE- See Also:
 
- 
PROJECT_UPDATE_VALUE- See Also:
 
- 
TAG_CHANGE_VALUE- See Also:
 
- 
TIMER_SCRIPT_VALUE- See Also:
 
- 
SCHEDULED_SCRIPT_VALUE- See Also:
 
- 
MESSAGE_SCRIPT_VALUE- See Also:
 
- 
startupScript
- 
shutdownScript
- 
updateScript
- 
timerScripts
- 
messageHandlerScripts
- 
tagChangeScripts
- 
scheduledScripts
- 
timerScriptManager
- 
tagChangeManager
- 
messageHandlerManager
- 
scheduledScriptManager
 
- 
- 
Constructor Details- 
ScriptConfigpublic ScriptConfig()
 
- 
- 
Method Details- 
getShutdownScript
- 
getStartupScript
- 
setShutdownScript
- 
setStartupScript
- 
getUpdateScript
- 
setUpdateScript
- 
getTimerScripts
- 
setTimerScripts
- 
getMessageHandlerScripts
- 
setMessageHandlerScripts
- 
setTagChangeScriptsDeprecated.
- 
getTagChangeScripts
- 
setScheduledScriptspublic void setScheduledScripts(List<com.inductiveautomation.ignition.common.script.ScheduledScript> scheduledScripts) 
- 
getScheduledScripts@Nonnull public List<com.inductiveautomation.ignition.common.script.ScheduledScript> getScheduledScripts()
- 
setTagChangeScripts
- 
startuppublic void startup(String projectName, ScriptManager manager, TagManager tagManager, IScriptsEnabled scriptsEnabled) 
- 
shutdownpublic void shutdown()Shuts down long-running tasks in the script config, such as timer scripts and tag change scripts
- 
getTimerScriptExecutionReports
- 
getTagChangeScriptExecutionReports
- 
getTimerScriptDiagnostics
- 
getTagChangeScriptDiagnostics
- 
getMessageHandlerScriptDiagnostics
- 
getScheduledScriptDiagnostics
- 
getMessageHandlerManagerReturns an instance of the MessageHandlerManager so that the client can register a push listener and use this manager.
- 
getMessageHandlerExecutionReports
- 
invokeGWRequestHandler@Deprecated public void invokeGWRequestHandler(String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler) throws MessageHandlerException Deprecated.- Throws:
- MessageHandlerException
 
- 
invokeGWRequestHandlerpublic void invokeGWRequestHandler(String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler, Properties filterParams) throws MessageHandlerException - Throws:
- MessageHandlerException
 
- 
invokeGWMessageHandler@Deprecated public void invokeGWMessageHandler(String messageHandlerName, org.python.core.PyDictionary messageParams) throws MessageHandlerException Deprecated.- Throws:
- MessageHandlerException
 
- 
invokeGWMessageHandlerpublic void invokeGWMessageHandler(String messageHandlerName, org.python.core.PyDictionary messageParams, Properties filterParams) throws MessageHandlerException - Throws:
- MessageHandlerException
 
 
-