All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ools-benchmark.6.0.0.Beta2.source-code.cep.drl Maven / Gradle / Ivy

import org.drools.benchmark.model.cep.*

declare Letter
    @role( event )
end

declare Figure
    @role( event )
end

declare window letters Letter( ) over window:length( 2600 ) end

declare window figures Figure( ) over window:length( 2600 ) end

rule "Join" when
    $l : Letter( value == 'A' ) from window letters
    $f : Figure( key == $l.key, value1 % 100 == 0 ) from window figures
then
    insert( new Match( $f, $l ) );
end

rule "Detect" when
    $m : Match()
then
//    System.out.println( $m );
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy