public class DroolsEngine extends Object implements Destination
Constructor and Description |
---|
DroolsEngine()
Instantiates a new Drools engine handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(NorthboundAlarm alarm)
Accepts.
|
String |
getAppContext()
Gets the application context.
|
String |
getAssertBehaviour()
Gets the assert behaviour.
|
String |
getFilter()
Gets the filter.
|
List<Global> |
getGlobals()
Gets the globals.
|
String |
getName()
Gets the destination name.
|
List<String> |
getRuleFiles()
Gets the rule files.
|
boolean |
isFirstOccurrenceOnly()
Checks if is first occurrence only.
|
void |
setAppContext(String appContext)
Sets the application context.
|
void |
setAssertBehaviour(String assertBehaviour)
Sets the assert behaviour.
|
void |
setFilter(String filter)
Sets the filter.
|
void |
setGlobals(List<Global> globals)
Sets the globals.
|
void |
setName(String name)
Sets the name.
|
void |
setRuleFiles(List<String> ruleFiles)
Sets the rule files.
|
public boolean isFirstOccurrenceOnly()
Destination
isFirstOccurrenceOnly
in interface Destination
public String getName()
Destination
getName
in interface Destination
public void setName(String name)
name
- the new namepublic String getFilter()
public void setFilter(String filter)
filter
- the new filterpublic String getAssertBehaviour()
public void setAssertBehaviour(String assertBehaviour)
assertBehaviour
- the new assert behaviourpublic String getAppContext()
public void setAppContext(String appContext)
appContext
- the new application contextpublic void setGlobals(List<Global> globals)
globals
- the new globalspublic void setRuleFiles(List<String> ruleFiles)
ruleFiles
- the new rule filespublic boolean accepts(NorthboundAlarm alarm)
If the engine doesn't have filter, the method will return true.
If the method has a filter, it will be evaluated.
alarm
- the alarmCopyright © 2021. All rights reserved.