Skip to Content

Calculating next recurrence date

  • Origin: Calculated attribute

In order to calculate next recurrence date for a certain item, enter the following expression:

Date format:

@prefix cmw: <http://comindware.com/logics#>.
@prefix str: <http://www.w3.org/2000/10/swap/string#>.
@prefix schedule: <http://comindware.com/ontology/schedule#>.
{
  ?item cmw:schedule ?scheduleId.
  ?scheduleId schedule:lastOccurrenceDate ?value.
}

Text format:

@prefix cmw: <http://comindware.com/logics#>.
@prefix str: <http://www.w3.org/2000/10/swap/string#>.
@prefix schedule: <http://comindware.com/ontology/schedule#>.
{
  ?item cmw:schedule ?scheduleId.
  ?scheduleId schedule:lastOccurrenceDate ?val.
  ("{0}" ?val) str:format ?value.
}