[rules-users] Fusion: Custom Temporal Operators?

Wolfgang Laun wolfgang.laun at gmail.com
Thu Apr 18 11:29:51 EDT 2013


This might help, and look at the code of existing temporal evaluators.

http://members.inode.at/w.laun/drools/CustomOperatorHowTo.html

-W


On 18/04/2013, burmanator <alexburman at gmail.com> wrote:
> Is it possible to create custom temporal operators?
>
> I want to create something like:
>
> $eventA : EventA( this afterStart[3m30s,4m] $eventB)
>
> which would be evaluated as
>
> 3m30s <= $eventA.startTimestamp - $eventB.startTimestamp <= 4m
>
> or
>
> $eventA : EventA( this during2 $eventB)
>
> where
>
> $eventB.startTimestamp <= $eventA.startTimestamp<= $eventA.endTimestamp <=
> $eventB.endTimestamp
>
> as well as create various others.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Fusion-Custom-Temporal-Operators-tp4023406.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list