org.drools.base.evaluators
Class DuringEvaluatorDefinition

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

public class DuringEvaluatorDefinition
extends Object
implements EvaluatorDefinition

The implementation of the during evaluator definition.

The during evaluator correlates two events and matches when the current event happens during the occurrence of the event being correlated.

Lets look at an example:

$eventA : EventA( this during $eventB )

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

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

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