Yes. The point is that I DON'T want it to cache the birthdate. I want it to pull the new one.

Thanks,

Tammy

On 10/19/2011 10:08 AM, Ben Wolfe wrote:
Are you using this patch on the logic module?
https://tickets.openmrs.org/browse/LOGIC-94

Apparently the token service wasn't really using the cache...

Ben

On Wed, Oct 19, 2011 at 4:26 PM, Tammy Dugan <[email protected] <mailto:[email protected]>> wrote:

    If we update a person's birthdate in the webapp and run the following:

     context.read(patient.getPatientId(),
    context.getLogicDataSource("person"), "BIRTHDATE").toDatetime();

    We get the old birthdate instead of the new one. I drilled down
    into the logic code and the criteria.list is actually getting
    executed so the issue is not that the rule result is cached. The
    issue seems to be that hibernate is caching the birthdate and not
    updating it with the new value when criteria.list is called. Here
    is the criteria getting executed:

    CriteriaImpl(org.openmrs.Person:this[Subcriteria(names:name)][personId
    in (28039)])

    It is line 108 of HibernateLogicPersonDAO.

    Any ideas?

    Thanks,

    Tammy Dugan

-- Tammy Dugan
    CHIRDL Technical Lead
    Children's Health Services Research
    IU School of Medicine

    _________________________________________

    To unsubscribe from OpenMRS Developers' mailing list, send an
    e-mail to [email protected]
    <mailto:[email protected]> with "SIGNOFF
    openmrs-devel-l" in the  body (not the subject) of your e-mail.

    [mailto:[email protected]
    <mailto:[email protected]>?body=SIGNOFF%20openmrs-devel-l]


------------------------------------------------------------------------
Click here to unsubscribe <mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l> from OpenMRS Developers' mailing list

--
Tammy Dugan
CHIRDL Technical Lead
Children's Health Services Research
IU School of Medicine


_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to