You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by kumar k <ku...@yahoo.com> on 2007/08/31 12:17:58 UTC

Will it work for 3.1.1 or 3.2 onwards

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.