Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Ticket #929 (new task)

Opened 2 years ago

Last modified 4 months ago

Implement asOf() operator for LogicCriteria

Reported by: jmiranda Assigned to:
Priority: major Milestone:
Component: Logic Service Keywords:
Cc: Introductory Ticket: 0
Code Review Status:

Description (Last modified by jmiranda)

We need an asOf operator that can trigger the creation of a new LogicContext within a new index date. It would take a single date as a parameter. Add to operators, LogicCriteria, and add processing in each DAO.

When evaluating a rule, one of the first steps before calling the rule's eval() method should be to check the logic criteria for an asOf() method -- this will be facilitated by a convenience method like getAsOfDate(). If an asOf() date is set, then a new LogicContext should be constructed from the current LogicContext with the new asOf() date as its index date, and the rule's eval() called with this new context and the logic criteria without the asOf() operation.

All evals and reads that occur within the new LogicContext will, by default, use that context with its new index date as "today." Once the eval() has completed, subsequent processing will proceed with the original context, effectively "popping the altered index date off the stack."

Change History

11/06/08 19:30:15 changed by jmiranda

  • owner changed from tmdugan to jmiranda.
  • description changed.

11/07/08 21:07:24 changed by bmamlin

  • description changed.
  • summary changed from Implement indexDate functionality to replace As-OF operator to Implement osOf() operator for LogicCriteria.

11/07/08 21:09:43 changed by bmamlin

  • intro_ticket changed.
  • summary changed from Implement osOf() operator for LogicCriteria to Implement asOf() operator for LogicCriteria.

12/01/09 12:09:40 changed by jmiranda

  • owner deleted.
  • review_status changed.
  • description changed.