hi <div>im new to use drools.can u help me out of this.I need one example so that i can understand and i want structure also like how many folders should be there which file should be placed in which folder.</div><div>thanx in advance....its very urgent plz help me<br>
<br><div class="gmail_quote">On Wed, Apr 7, 2010 at 3:51 PM, BS <span dir="ltr"><<a href="mailto:bernd.schwegmann@viadee.de">bernd.schwegmann@viadee.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi all,<br>
<br>
I'm quite new to Drools and have a problem with the guided editor of the<br>
Eclipse plugin. I'm using Drools 5.0.1.<br>
<br>
These are the two BuildErrors for "TestGuided.brl" in Eclipse:<br>
<br>
1) BuildError: Unable to build expression for 'consequence': Failed to<br>
compile: 1 compilation error(s): - (1,1) unqualified type in strict mode<br>
for: p ' update( p );<br>
2) BuildError: Unable to resolve ObjectType 'Produkt'<br>
<br>
In "drools.package" I have all necessary imports and also the package<br>
statement. This is the BRL source of "TestGuided.brl":<br>
<br>
<rule><br>
<name>TestGuided</name><br>
<modelVersion>1.0</modelVersion><br>
<attributes/><br>
<metadataList/><br>
<lhs><br>
<fact><br>
<factType>Produkt</factType><br>
<boundName>p</boundName><br>
</fact><br>
</lhs><br>
<rhs><br>
<modify><br>
<fieldValues/><br>
<variable>p</variable><br>
</modify><br>
</rhs><br>
</rule><br>
<br>
When I use the generated DRL output of the guided editor in a DRL file, I do<br>
not get any error message. The DRL file looks like this and compiles<br>
perfectly in Eclipse:<br>
<br>
package com.test<br>
<br>
rule "TestGuided"<br>
dialect "mvel"<br>
when<br>
p : Produkt( )<br>
then<br>
update( p );<br>
end<br>
<br>
Adding the BRL from above to Guvnor does not throw any error. The BRL<br>
validates and compiles perfectly in Guvnor.<br>
<br>
So, why is it only in the guided editor of Eclipse not working but in the<br>
guided editor of Guvnor as well as DRL file? Maybe something in my<br>
configuration is errorneous?<br>
<br>
Any help is appreciated, many thanks<br>
<br>
Bernd<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/BuildError-Unable-to-resolve-ObjectType-tp702633p702633.html" target="_blank">http://n3.nabble.com/BuildError-Unable-to-resolve-ObjectType-tp702633p702633.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<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>
</font></blockquote></div><br></div>