What is the answer to "PersistenceExtensions is deprecated"

I just updated (finally) to the latest Milestone build. And I now see the following message in my logs. Can someone please help me identify a) which line in my rules file is causing the error (my rules file has almost 1200 lines in it), and b) what is the non deprecated solution?

Validation issues found in configuration model '24g.rules', using it anyway:
The method historicState(Item, ZonedDateTime, String) from the type PersistenceExtensions is deprecated

This is not the Milestone, but was already there in the release version.

The PersistenceExtensions are not deprecated, but specifically the ā€˜historicState’ method in it. It has been replaced by ā€˜persistedState’ because a ā€˜persistedState’ can also be a future value.

You should be able to do a find on your rules looking for ā€˜historicState’.

You can still ignore this, it is only a warning, but the replacement was in the release notes.

2 Likes