I am getting error with drools. Is this systax valid for 3.1.1 or 3.2 onwards
only?Thanks
package org.apache.servicemix.drools
import org.apache.servicemix.drools.model.Exchange;
global org.apache.servicemix.drools.model.JbiHelper jbi;
rule "Route to myservice"
when
me : Exchange( status == Exchange.ACTIVE, in : in != null )
eval( in.xpath("/Record/eid = 100") )
then
jbi.route( "test2:myservice" );
end
rule "Route to bean2service"
when
me : Exchange( status == Exchange.ACTIVE, in : in != null )
eval( in.xpath("/Record/eid = 101") )
then
jbi.route( "test5:bean2service" );
end
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.