AnsweredAssumed Answered

Period data type

Question asked by loftux Moderator on Aug 9, 2010
I'm trying out figure out the best use of period data type. A simple use case would be to find agreements that needs review 'period' before end date.

From what I can tell it stores values as a complex data type, type|expression - for example day|30, month|3, year|5 and so on.
There is no indexing of this property, that is, it is not searchable by lucene?

So for this property to be useful, I must connect it to some behaviour that actually do a calculation of a date, and stores it in a separate property.
Are there any java or javascript functions specifically available for this purpose that can be reused? I've seen the code in dod5105 module that can be reused, but if there are any functions in the core repo for this purpose it would be nice.

Outcomes