Class ScriptAction
- java.lang.Object
- 
- com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelper
- 
- com.inductiveautomation.perspective.gateway.action.ScriptAction
 
 
- 
- All Implemented Interfaces:
- Action
 
 public class ScriptAction extends ScriptFunctionHelper implements Action Action which runs a python script when an event occurs.
- 
- 
Field SummaryFields Modifier and Type Field Description static ActionFactoryFACTORYstatic java.lang.StringSCRIPT_KEY- 
Fields inherited from class com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelpersignature
 
- 
 - 
Constructor SummaryConstructors Constructor Description ScriptAction(ActionContext context, java.lang.String script)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PerspectiveElementgetComponent()protected java.lang.StringgetDescription()Describe the location/context of this script.protected LoggerExgetLog()voidrunAction(org.python.core.PyObject event)voidshutdown()voidstartup()- 
Methods inherited from class com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelpergetSecurityLevels, invoke, logWarn, onScriptLibraryChange, py2qualified
 
- 
 
- 
- 
- 
Field Detail- 
SCRIPT_KEYpublic static final java.lang.String SCRIPT_KEY - See Also:
- Constant Field Values
 
 - 
FACTORYpublic static final ActionFactory FACTORY 
 
- 
 - 
Constructor Detail- 
ScriptActionpublic ScriptAction(ActionContext context, java.lang.String script) 
 
- 
 - 
Method Detail- 
getLogprotected LoggerEx getLog() - Overrides:
- getLogin class- ScriptFunctionHelper
 
 - 
getDescriptionprotected java.lang.String getDescription() Description copied from class:ScriptFunctionHelperDescribe the location/context of this script. Used for error messages- Overrides:
- getDescriptionin class- ScriptFunctionHelper
 
 - 
getComponentpublic PerspectiveElement getComponent() - Specified by:
- getComponentin class- ScriptFunctionHelper
 
 
- 
 
-