Thanks Alexander ...
I need
clarification one more questions in my employee table
->employee_code can not be updated..... this is the condition
writing validation rule using dsl,dslr file.
Thanks and Regards,
Manya..
Manya,
please do not open two threads for almost the same question!
1.end_timestamp must be > start_timestamp this is the condition.
1.start_timestamp can not be =< Current Date this is the condition.
First, I think, "can not be <=" is the same as "must be >".
Drools is able to compare timestamps as primitive number types or as java.util.Date's. So without DSL you can directly (no matter, what type the timestamps are):
SomeClass(startTimestamp < endTimestamp, startTimestamp > $currentTimestamp)
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.
If you have your solution without DSL it should not be difficult to cast and abstract this into a DSL.
Alexander Claus_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users