Class MessageHandlerTask
java.lang.Object
com.inductiveautomation.ignition.common.script.message.MessageHandlerTask
Holds everything needed to execute a MessageHandler runnable. Pass an instance of this to a runnable configured with
 message parameters.
- 
Constructor SummaryConstructorsConstructorDescriptionMessageHandlerTask(MessageHandlerManager messageManager, String projectName, MessageHandlerKey key, ScriptManager manager, IScriptsEnabled scriptsEnabled, String code) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.python.core.PyCodeReturns the user-provided Jython script codebooleanReturns true if a previous attempt to compile the code has failedbooleanvoidreportExecution(MessageHandlerKey key, ScriptExecutionReport report) Updates the execution status of a MessageHandlerRunnablevoidsetCompiledJyCode(org.python.core.PyCode compiledJyCode) voidsetDontCompile(boolean dontCompile) Set to true if an attempt to compile the code has failedvoidsetLastRunErrMsg(String lastRunErrMsg) 
- 
Constructor Details- 
MessageHandlerTaskpublic MessageHandlerTask(MessageHandlerManager messageManager, String projectName, MessageHandlerKey key, ScriptManager manager, IScriptsEnabled scriptsEnabled, String code) 
 
- 
- 
Method Details- 
getMessageHandlerManager
- 
getProjectName
- 
getScriptCodeReturns the user-provided Jython script code
- 
getMessageHandlerKey
- 
getCompiledJyCodepublic org.python.core.PyCode getCompiledJyCode()
- 
setCompiledJyCodepublic void setCompiledJyCode(org.python.core.PyCode compiledJyCode) 
- 
isDontCompilepublic boolean isDontCompile()Returns true if a previous attempt to compile the code has failed
- 
setDontCompilepublic void setDontCompile(boolean dontCompile) Set to true if an attempt to compile the code has failed
- 
getScriptManager
- 
isScriptsEnabledpublic boolean isScriptsEnabled()- Returns:
- true if: ((FPMISystem.getMode() == FPMISystem.Mode.PREVIEW && !FPMISystem.isSerializing()) OR (FPMISystem.getMode() == FPMISystem.Mode.RUNTIME && FPMISystem.isLoggedIn()))
 
- 
getLastRunErrMsg
- 
setLastRunErrMsg
- 
reportExecutionUpdates the execution status of a MessageHandlerRunnable
 
-