<div>Hi,</div>
<div> </div>
<div> We are planning to use DSL/DSRL approach with generic DSL template like say</div>
<div><font size="2">
<p align="left">[condition][]The {object} has valid {field}={object}({field} != null )</p>
<p align="left">[condition][]there is object {<u>obj</u>} that = {<u>obj</u>}()</p>
<p align="left">[condition][]- has {<u>attr</u>} equal {<u>val</u>} = {<u>attr</u>} == {<u>val</u>}</p>
<p align="left">[condition][]- has valid {<u>attr</u>} = {<u>attr</u>} != null</p>
<p>[condition][]- and has {<u>attr</u>} equal {value}= &amp;&amp; {<u>attr</u>} == {value}</p></font></div>
<div> </div>
<div>But there are quite few of requirements like to have DSL rules that can generate expression as follows:</div>
<div>exists Employee(<br>   attribute name not equals &quot;xxx&quot;<br>   &amp;&amp; the attribute subOrdinate is not null<br>   &amp;&amp; eval(<br>   the attribute $dept.getId() is not null   <br>   &amp;&amp; attribute $dept.getId() follows pattern &quot;I&quot; <br>
   &amp;&amp; ( ! (the attribute $dept.getHeadOfDpt() equals name)<br>   )<br>)</div>
<div> </div>
<div>I am not sure if this is possible with DSL. Using &#39;-&#39; operator we cannot really add &#39;&amp;&amp;&#39;, &#39;||&#39; conditions it by-default expands to &#39;,&#39; separated and conditions. And wirtting generic rules with and/or is not really dynamic to allow any number of expressions in evaluation.</div>

<div> </div>
<div>i am struggling to get this run since long time so any help/thoughts on this would be  highly appriciable !!!</div>
<div> </div>
<div>Thanks &amp; Regards,</div>
<div>-Maverik</div>