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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected MessageHandlerManager
protected Map<MessageHandlerKey,
String> static final String
static final String
static final ResourceType
static final String
protected ScheduledScriptManager
protected List<com.inductiveautomation.ignition.common.script.ScheduledScript>
static final String
protected String
static final String
protected String
static final String
protected TagChangeScriptManager
protected List<TagChangeScript>
static final String
protected TimerScriptManager
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier 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>
void
invokeGWMessageHandler
(String messageHandlerName, org.python.core.PyDictionary messageParams) Deprecated.void
invokeGWMessageHandler
(String messageHandlerName, org.python.core.PyDictionary messageParams, Properties filterParams) void
invokeGWRequestHandler
(String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler) Deprecated.void
invokeGWRequestHandler
(String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler, Properties filterParams) void
void
setScheduledScripts
(List<com.inductiveautomation.ignition.common.script.ScheduledScript> scheduledScripts) void
setShutdownScript
(String string) void
setStartupScript
(String string) void
setTagChangeScripts
(List<TagChangeScript> scripts) void
setTagChangeScripts
(Map<String, String> oldMap) Deprecated.void
setTimerScripts
(Map<TimerKey, String> map) void
setUpdateScript
(String updateScript) void
shutdown()
Shuts down long-running tasks in the script config, such as timer scripts and tag change scriptsvoid
startup
(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
-
ScriptConfig
public ScriptConfig()
-
-
Method Details
-
getShutdownScript
-
getStartupScript
-
setShutdownScript
-
setStartupScript
-
getUpdateScript
-
setUpdateScript
-
getTimerScripts
-
setTimerScripts
-
getMessageHandlerScripts
-
setMessageHandlerScripts
-
setTagChangeScripts
Deprecated. -
getTagChangeScripts
-
setScheduledScripts
public void setScheduledScripts(List<com.inductiveautomation.ignition.common.script.ScheduledScript> scheduledScripts) -
getScheduledScripts
@Nonnull public List<com.inductiveautomation.ignition.common.script.ScheduledScript> getScheduledScripts() -
setTagChangeScripts
-
startup
public void startup(String projectName, ScriptManager manager, TagManager tagManager, IScriptsEnabled scriptsEnabled) -
shutdown
public 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
-
getMessageHandlerManager
Returns 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
-
invokeGWRequestHandler
public 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
-
invokeGWMessageHandler
public void invokeGWMessageHandler(String messageHandlerName, org.python.core.PyDictionary messageParams, Properties filterParams) throws MessageHandlerException - Throws:
MessageHandlerException
-