The consequence section of a rule (i.e. right hand side) is simply a block of code (in whichever dialect you're using).<div><br></div><div>Can you elaborate on what is not working? Your code looks perfectly good Java (in isolation of anything else).</div>
<div><br></div><div>Are you setting your globals to instances of their applicable classes outside of the rules after setting up the KnowledgeBase?<br><br><div class="gmail_quote">On 19 October 2010 16:04, nkumar <span dir="ltr"><<a href="mailto:nkumar@objectwave.com">nkumar@objectwave.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
I just want to create an object and set the status messages in that object.<br>
in every rule fired by the rule engine. dont want rules to see those<br>
objects.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/How-can-i-create-a-new-object-in-consequence-part-tp1728632p1732801.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/How-can-i-create-a-new-object-in-consequence-part-tp1728632p1732801.html</a><br>
</font><div><div></div><div class="h5">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>
</div></div></blockquote></div><br></div>