public interface Rule extends EventSetProcessor<RuleAdapter>, RuleOperations
| Modifier and Type | Method and Description |
|---|---|
Event |
getEvent(String eventAlias)
Returns an event that has a specified alias.
|
List<Event> |
getEventSequence()
Returns a sequence of actual events.
|
RuleEventSpec |
makeEventSpec(String eventName)
Creates a new rule event specification.
|
RuleEventSpec |
makeEventSpec(String eventName,
EventMode eventMode)
Creates a new rule event specification.
|
RuleEventSpec |
makeEventSpec(String eventName,
String eventAlias)
Creates a new rule event specification.
|
RuleEventSpec |
makeEventSpec(String eventName,
String eventAlias,
EventMode eventMode)
Creates a new rule event specification.
|
void |
onRun(Event event)
A callback method invoked when this rule fires.
|
void |
setEvent(String eventStringSpec)
Sets the event specification as a string.
|
void |
setEvents(String... eventStringSpecs)
Sets the event specifications as strings.
|
void |
setEventSpec(RuleEventSpec eventSpec)
Sets the event specification.
|
void |
setEventSpecs(RuleEventSpec... eventSpecs)
Sets the event specifications.
|
getFirstEvent, getGroupgetAdapter, getLogger, onConfigure, onInitaddAllEventConditions, addEventCondition, addEventConditions, getEventConditions, getEventConditions, isOrdered, setOrderedgetDuration, hasDuration, isSynchronous, setDuration, setSynchronousgetFeatures, getKnowledgeBase, setFeaturesgetDescription, getDisplayName, getName, setDescription, setDisplayName, setNamevoid onRun(Event event)
event - event.Event getEvent(String eventAlias)
eventAlias - an event alias.List<Event> getEventSequence()
void setEvents(String... eventStringSpecs)
setEvents in interface EventProcessor<RuleAdapter>eventStringSpecs - the event specifications.void setEventSpecs(RuleEventSpec... eventSpecs)
eventSpecs - the event specifications.void setEvent(String eventStringSpec)
setEvent in interface EventProcessor<RuleAdapter>eventStringSpec - the event specification.void setEventSpec(RuleEventSpec eventSpec)
eventSpec - the event specification.RuleEventSpec makeEventSpec(String eventName, String eventAlias, EventMode eventMode)
eventName - an event name.eventAlias - an event alias.eventMode - an event mode.RuleEventSpec makeEventSpec(String eventName, EventMode eventMode)
eventName - an event name.eventMode - an event mode.RuleEventSpec makeEventSpec(String eventName, String eventAlias)
eventName - an event name.eventAlias - an event alias.RuleEventSpec makeEventSpec(String eventName)
eventName - an event name.Copyright © 2016–2018 Softelnet. All rights reserved.