org.drools.base.evaluators
Class IncludesEvaluatorDefinition

java.lang.Object
  extended by org.drools.base.evaluators.IncludesEvaluatorDefinition
All Implemented Interfaces:
Externalizable, Serializable, org.drools.runtime.rule.EvaluatorDefinition

public class IncludesEvaluatorDefinition
extends Object
implements EvaluatorDefinition

The implementation of the includes evaluator definition.

The includes evaluator correlates two events and matches when the event being correlated happens during the current event. It is the symmetrical opposite of during evaluator.

Lets look at an example:

$eventA : EventA( this includes $eventB )

The previous pattern will match if and only if the $eventB starts after $eventA starts and finishes before $eventA finishes. In other words:

 $eventA.startTimestamp < $eventB.startTimestamp <= $eventB.endTimestamp < $eventA.endTimestamp 

The includes operator accepts 1, 2 or 4 optional parameters as follow: