Hi all,<br>i am novice on GUVNOR, but i would like to define my fusion rules by graphical tool.<br><br>An example of my rules is:<br><br>rule "radiation-event"<br> salience 10<br> no-loop<br> when<br> $obs : RadiationObservation( $obsLocation : location, value > 10 ) over window:length(1) from entry-point lowLevelSensorStream<br>
not RadiationEvent( this meets[ 25s ] $obs, location geoIsWithinDistance[ 5m ] $obsLocation )<br> then<br> insert(new RadiationEvent( $obs, "Radiation over 10", Event.THREAT_HIGH, $obsLocation, $obs.getSensor() ));<br>
end<br><br>rule "radiation-update"<br> salience 5<br> no-loop<br> when<br> $obs : RadiationObservation( $obsLocation : location, value > 10 ) over window:length(1) from entry-point lowLevelSensorStream<br>
$event : RadiationEvent( this meets[ 25s ] $obs, location geoIsWithinDistance[ 5m ] $obsLocation )<br> then<br> Event e = Event.clone($event);<br> e.addObservation($obs);<br> insert( e );<br>
retract($event);<br> retract($obs);<br>end<br><br>Is it possibile to define rules such the above using GUVNOR?<br>Are there some documentation or tutorial?<br><br>Thanks a lot in advance,<br>Matteo Cusmai.<br>