<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}= && {<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 "xxx"<br> && the attribute subOrdinate is not null<br> && eval(<br> the attribute $dept.getId() is not null <br> && attribute $dept.getId() follows pattern "I" <br>
&& ( ! (the attribute $dept.getHeadOfDpt() equals name)<br> )<br>)</div>
<div> </div>
<div>I am not sure if this is possible with DSL. Using '-' operator we cannot really add '&&', '||' conditions it by-default expands to ',' 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 & Regards,</div>
<div>-Maverik</div>