<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">All<div><br></div><div>If I have an object say </div><div><br></div><div>class TestObject {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>private String type;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>private String name;</div><div>}</div><div><br></div><div>And I want to match opposite types so I fire in the following</div><div><br></div><div>insert(new TestObject("TYPE_1", "This is our type 1 object");</div><div>insert(new TestObject("TYPE_2", "This is our type 1 object");</div><div><br></div><div>So I want to say only match again opposite types</div><div><br></div><div>would this work?</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">rule "#999 Match"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span>dialect "<span style="text-decoration: underline">mvel</span>"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span>when</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space:pre">        </span> $incoming : </span><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">TestObject</span><span class="Apple-style-span">($type: type)</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space:pre">        </span> $current : </span><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">TestObject</span><span class="Apple-style-span">(</span> </span>type<span class="Apple-style-span"> != $</span>type<span class="Apple-style-span">)</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span>then</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span> insert(new String("LOGGING: incoming:" + $incoming.getT<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">ype</span>() + " current:" + $current.getType() ));</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">end</div></div><div><br></div></body></html>