.allowedDaysInFuture()

Description of the method

Description: .allowedDaysInFuture() method checks if the given date is within the days from the system date to a future date. The future date is x days later from the system date and the x is given as a parameter. 
Available for: ISODateTime or ISODate
Parameters: integer
Return type: boolean

 Example

Context: HeaderType1
OCL: self.Dt.allowedDaysInFuture(3)
Description: The example rule checks if the date of <Dt> is within 3 days from the system date.

The XML snippet below would pass this check, if assumed that the system date is 25.05.2018.

<Dt>2018-05-26T10:30:47</Dt>

The other snippet below however would not pass this check.

<Dt>2016-03-05T10:30:47</Dt>