ilog.rules.brl.bql

Interface IlrQueryableElementWrapper

  • All Known Implementing Classes:
    ilog.rules.studio.model.query.wrappers.IlrQueryPackageElementWrapper, IlrQueryParameterWrapper, IlrQueryProjectElementWrapper, IlrQueryVariableWrapper


    public interface IlrQueryableElementWrapper
    This interface defines a rule model element that an extended query predicate can manipulate. The query extensibility mechanism is common to both Rule Studio and Rule Team Server, which allows you to write new query predicates independantly of the execution platform.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      IlrElement getModelElement()
      Returns an IlrElement.
      boolean isElementModified()
      Returns true if the matching model element has been modified by the execution of the query action.
      void markElementModified()
      When extending the query model, if you write a method that modifies a property of the underlying IlrElement, call this method to let the environment know the element has been changed.
    • Method Detail

      • getModelElement

        IlrElement getModelElement()
        Returns an IlrElement. A new query predicate can manipulate this element with the getPropertyValue and setProperteValue methods. You can downcast this rule model element to its platform specific type (in Rule Studio or Rule Team Server). However, once you downcast the rule model element, your code will not run transparently on both platforms.
      • isElementModified

        boolean isElementModified()
        Returns true if the matching model element has been modified by the execution of the query action.
      • markElementModified

        void markElementModified()
        When extending the query model, if you write a method that modifies a property of the underlying IlrElement, call this method to let the environment know the element has been changed. RS will then automatically save the element after all query actions have been executed. RTS will proceed the same way, automatically versionning the element.

© Copyright IBM Corp. 1987, 2017