<div class="gmail_extra">Yes this is possible with Guvnor 5.2 onwards.<br><br>The user-guide explains how to use the Guided Rule Editor (but not specifically CEP features).<br><br>Read that and give it a try - it's reasonably intuitive (not an excuse for poor documentation though) and come back here with questions.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 26 April 2012 09:08, Matteo Cusmai <span dir="ltr"><<a href="mailto:cusmaimatteo@gmail.com" target="_blank">cusmaimatteo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br></div>