java.lang.Object
COM.TIBCO.hawk.config.rbengine.rulebase.RulebaseElement
COM.TIBCO.hawk.config.rbengine.rulebase.Action
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ClearAction, ConsequenceAction

public abstract class Action extends RulebaseElement
This class is the superclass for all actions.
  • Field Details

    • CNAME

      public static String CNAME
  • Constructor Details

    • Action

      protected Action(COM.TIBCO.hawk.util.xml.XmlElementNode xmlNode) throws RulebaseException
      Constructs a Action from XML representation
      Parameters:
      xmlNode - XML node that contain the DataSource
      Throws:
      RulebaseException
      See Also:
      • XmlElementNode
  • Method Details

    • getMicroAgentName

      public String getMicroAgentName()
      Returns the microagent name of this action.
    • getMethodInvocation

      public COM.TIBCO.hawk.talon.MethodInvocation getMethodInvocation()
      Returns the method invocation of this action.
    • setMethodInvocation

      public void setMethodInvocation(COM.TIBCO.hawk.talon.MethodInvocation mi)
      Sets the method invocation of this action.
      Parameters:
      mi - the method invocation, must not be null
      Throws:
      IllegalArgumentException - if method invocation is null
    • setMicroAgentName

      public void setMicroAgentName(String name)
      Sets the microagent name for the method invocation of this action.
      Parameters:
      name - the microagent name, must not be null or empty string
      Throws:
      IllegalArgumentException - if microagent name is is null or empty string
    • getProperties

      public Properties getProperties()
      Returns the properties associate with this action.
    • setProperties

      public void setProperties(Properties properties)
      Sets the properties associate with this action.
      Parameters:
      properties - the properties for this action, must not be null.
      Throws:
      IllegalArgumentException - if properties is is null.
    • toString

      public String toString()
      Returns the string representation of this action.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Compares two Action object for equality.
      Overrides:
      equals in class RulebaseElement
    • toXML

      protected void toXML(COM.TIBCO.hawk.util.xml.XmlWriter out) throws IOException, RulebaseException
      Write XML representation of the action to the XML writer.
      Overrides:
      toXML in class RulebaseElement
      Parameters:
      out - the XML writer where the output will be written.
      Throws:
      IOException
      RulebaseException
      See Also:
      • XmlWriter
    • fromXML

      protected void fromXML(COM.TIBCO.hawk.util.xml.XmlElementNode node) throws RulebaseException
      Read XML representation of the action from the XML node.
      Overrides:
      fromXML in class RulebaseElement
      Parameters:
      node - the XML node containing the action.
      Throws:
      RulebaseException
      See Also:
      • XmlElementNode