Interface Action

  • All Known Implementing Classes:
    AbstractAction

    public interface Action
    Represents an abstraction for executing custom tasks if an event occurs. Action is executed only once after creation. The interface introduces methods and properties required by action invocation infrastructure.
    Author:
    Alex Usun
    • Method Detail

      • getDisplayName

        default java.lang.String getDisplayName()
        Returns action display name.
        Returns:
        action display name
      • getDescription

        java.lang.String getDescription()
        Returns action description used in Manager GUI.
        Returns:
        action description text
      • getPropertyDescription

        java.lang.String getPropertyDescription​(java.lang.String propertyName)
        Returns action property description. Used for creating action properties help panel in Manager GUI.
        Parameters:
        propertyName - the property name
        Returns:
        property description text
      • getPropertyExample

        java.lang.String getPropertyExample​(java.lang.String propertyName)
        Returns action property usage example. Used for creating action properties help panel in Manager GUI.
        Parameters:
        propertyName - the property name
        Returns:
        property usage example
      • getPropertyDescriptors

        PropertyDescriptor[] getPropertyDescriptors()
        Returns action properties descriptors used for creating action properties panel in Manager GUI.
        Returns:
        action properties descriptors
      • getGroup

        java.lang.String getGroup()
        Returns action group name.
        Returns:
        action group name
      • isLogAction

        boolean isLogAction()
        Returns action loggable flag.
        Returns:
        true if action should be logged; false otherwise
      • setLogAction

        void setLogAction​(boolean value)
        Sets action loggable flag.
        Parameters:
        value - if true action will be logged
      • getTriggerName

        java.lang.String getTriggerName()
        Returns parent trigger name.
        Returns:
        parent trigger name
      • getTriggerErrorMessage

        java.lang.String getTriggerErrorMessage()
        Returns an error message passed to Trigger Error Event.
        Returns:
        an error message
      • getResultMessage

        java.lang.String getResultMessage()
        Returns result message for logging.
        Returns:
        a result message
      • getResult

        java.lang.Object getResult()
      • isSuccess

        boolean isSuccess()
        Returns action success flag.
        Returns:
        true if action was successful executed; false otherwise
      • getPriority

        int getPriority()
        Returns the action priority.
        Returns:
        the action priority
      • setPriority

        void setPriority​(int value)
        Sets the action priority.
        Parameters:
        value - the action priority