<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Raffaele Viola wrote:
<blockquote
 cite="mid:f16aa4040712170146vdf096cat8d1873fb2d624325@mail.gmail.com"
 type="cite">Hi all,<br>
  <br>
I'm searching for a description about the way to use the a<font size="2">ddOrMerge
method in the BaseDescr interface,<br>
but in the </font><font size="2">Drools 4.0.3 API</font> there are
nothing? Can someone help me?
  <br>
</blockquote>
Just look at the code:<br>
&nbsp;&nbsp;&nbsp; public void addOrMerge(final BaseDescr baseDescr) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( baseDescr instanceof AndDescr ) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.descrs.addAll( ((AndDescr) baseDescr).getDescrs() );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; addDescr( baseDescr );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; }<br>
<blockquote
 cite="mid:f16aa4040712170146vdf096cat8d1873fb2d624325@mail.gmail.com"
 type="cite"><br>
Thanks in advance<br>
Raffo<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>