Class DroolsEngine

    • Constructor Detail

      • DroolsEngine

        public DroolsEngine()
        Instantiates a new Drools engine handler.
    • Method Detail

      • isFirstOccurrenceOnly

        public boolean isFirstOccurrenceOnly()
        Description copied from interface: Destination
        Checks if is first occurrence only.
        Specified by:
        isFirstOccurrenceOnly in interface Destination
        Returns:
        true, if is first occurrence only
      • getName

        public String getName()
        Description copied from interface: Destination
        Gets the destination name.
        Specified by:
        getName in interface Destination
        Returns:
        the destination name
      • setName

        public void setName​(String name)
        Sets the name.
        Parameters:
        name - the new name
      • getFilter

        public String getFilter()
        Gets the filter.
        Returns:
        the filter
      • setFilter

        public void setFilter​(String filter)
        Sets the filter.
        Parameters:
        filter - the new filter
      • getAssertBehaviour

        public String getAssertBehaviour()
        Gets the assert behaviour.
        Returns:
        the assert behaviour
      • setAssertBehaviour

        public void setAssertBehaviour​(String assertBehaviour)
        Sets the assert behaviour.
        Parameters:
        assertBehaviour - the new assert behaviour
      • getAppContext

        public String getAppContext()
        Gets the application context.
        Returns:
        the application context
      • setAppContext

        public void setAppContext​(String appContext)
        Sets the application context.
        Parameters:
        appContext - the new application context
      • getGlobals

        public List<Global> getGlobals()
        Gets the globals.
        Returns:
        the globals
      • setGlobals

        public void setGlobals​(List<Global> globals)
        Sets the globals.
        Parameters:
        globals - the new globals
      • getRuleFiles

        public List<String> getRuleFiles()
        Gets the rule files.
        Returns:
        the rule files
      • setRuleFiles

        public void setRuleFiles​(List<String> ruleFiles)
        Sets the rule files.
        Parameters:
        ruleFiles - the new rule files
      • accepts

        public boolean accepts​(NorthboundAlarm alarm)
        Accepts.

        If the engine doesn't have filter, the method will return true.

        If the method has a filter, it will be evaluated.

        Parameters:
        alarm - the alarm
        Returns:
        true, if successful