[rules-users] Setting date during execution of rules.
Nimesh Muley
nimeshm at mastek.com
Wed Mar 5 01:25:33 EST 2008
Hi,
Is there a way to set the date while executing the rules? The effective dates would be checked against this date instead of today's date. By default the effective dates would be checked with System date. But in some cases we would need to execute the rules in a 'back-dated' mode.
Use case.
Let's say in insurance industry there are commission calculation rules for an agent. On these rules the effective dates are appropriate (as per their needs). Now when an agent is promoted and his/her promotion date is couple of months back then we would want to calculate the commission once again with the date as 2 months back.
The nearest I could see is TimeMachine, as this is being used during execution of rules. Although I could not find a way to set the TimeMachine in release 4.0.4.
Has anyone tried something like this before?
Regards,
- Nimesh
"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
MASTEK LTD.
Making a valuable difference
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080305/e7a48861/attachment.html
More information about the rules-users
mailing list