<p>My suggestion would be:</p>
<p>1) Ensure you have read the Drools Expert user-guide<br>
2) Insert a new Error fact for each validation error you find (possibly associating the original domain object with the error, it&#39;s up to you)<br>
3) Use a Query to retrieve Error objects.</p>
<p>sent on the move</p>
<p>On 6 May 2012 20:14, &quot;Ini&quot; &lt;<a href="mailto:inder.14@gmail.com">inder.14@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks laune...what i understood from the code that you have written is :<br>
we write rules where we are checking for employee department if its null<br>
then create the new error object and set the values of all the properties<br>
and then call the insert(e)...<br>
how have few more queries on this:<br>
<br>
1. How to retrieve the updated error object in java class from where i am<br>
triggering the rules.<br>
2. In case if i have check for another property say employeeName and if it<br>
is null again create a new error object and call insert(e). in this case<br>
will the previous error object be lost if not how will retrieve these two<br>
error objects back in my calling class.<br>
<br>
Thanks,<br>
Ini<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Updating-a-user-defined-error-object-using-drools-tp3966631p3966838.html" target="_blank">http://drools.46999.n3.nabble.com/Updating-a-user-defined-error-object-using-drools-tp3966631p3966838.html</a><br>

Sent from the Drools: User forum 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>
</blockquote></p>