java.lang.Object
com.inductiveautomation.ignition.common.sqltags.scripts.AbstractTagScript
All Implemented Interfaces:
CompiledTagScript
Direct Known Subclasses:
AlarmEventScript, ValueChangeTagScript

public abstract class AbstractTagScript extends Object implements CompiledTagScript
  • Constructor Details

  • Method Details

    • isErrored

      public boolean isErrored()
      Specified by:
      isErrored in interface CompiledTagScript
    • setErrored

      public void setErrored(boolean errored)
      Specified by:
      setErrored in interface CompiledTagScript
    • buildArgumentsFor

      protected abstract org.python.core.PyObject[] buildArgumentsFor(Tag source, TagPath sourcePath, Object[] parameters, boolean overflow)
      Should return an array of pyobjects that will be used as arguments to the function.
    • invoke

      public void invoke(Tag source, TagPath sourcePath, Object[] parameters, boolean overflow) throws Exception
      Description copied from interface: CompiledTagScript
      Executes the script for the given source tags. The parameters passed in are dependent on the type of event being processed. The overflow parameter indicates that other events could not be processed and were dropped before this one.
      Specified by:
      invoke in interface CompiledTagScript
      parameters - understood in the context of the event that is fired.
      Throws:
      Exception