Thanks Alexander ...<br><br><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> I need
clarification one </span></font>more questions in my employee table<br>-&gt;employee_code can not be updated..... this is the condition<br><br>writing validation rule using dsl,dslr file.<br><br>Thanks and Regards,<br>Manya..<br>
<br><div class="gmail_quote">On Thu, Jun 12, 2008 at 1:35 PM, Alexander Claus &lt;<a href="mailto:styjdt@claus4joy.de" target="_blank">styjdt@claus4joy.de</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Manya,<br>
please do not open two threads for almost the same question!<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
1.end_timestamp must be &gt; start_timestamp &nbsp;this is the condition.<div><br>
1.start_timestamp can not be =&lt; Current Date this is the condition.<br>
</div></blockquote>
<br>
First, I think, &quot;can not be &lt;=&quot; is the same as &quot;must be &gt;&quot;.<br>
<br>
Drools is able to compare timestamps as primitive number types or as java.util.Date&#39;s. So without DSL you can directly (no matter, what type the timestamps are):<br>
SomeClass(startTimestamp &lt; endTimestamp, startTimestamp &gt; $currentTimestamp)<br>
where $currentTimestamp is a variable binding done earlier in the rule. Since clock support is introduced not until Drools 5, you have to insert a virtual clock object in the working memory, which you have to update with certain mechanism to the current system time.<br>


<br>
If you have your solution without DSL it should not be difficult to cast and abstract this into a DSL.<br><font color="#888888">
<br>
Alexander Claus <br></font><div><div></div><div>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</div></div></blockquote></div><br>