Blaze rule engine: LocalDate

By , last updated September 24, 2016

Using LocalDate with Blaze rule engine can be not so obvious sometimes, so here’s an example of a rule that calculates a period interval of 5 months:

then {
   fromDate is some LocalDate initially LocalDate.newInstance(2010,9,1);
   toDate is some LocalDate;
   toDate = fromDate.plusMonth(5).dayOfMonth().withMaximumValue();


Be the first to comment.

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>