cancel
Showing results for 
Search instead for 
Did you mean: 

Timer Event Definition

louisparks
Champ in-the-making
Champ in-the-making
Hello,
I have a requirement where if a task is not closed after 5 business days a new task needs to be created is created.  It doesn't seem that <timeDuration> element supports "business days". Any suggestion on how to solve this?
thanks,
Louis
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Look at the activiti source-code and look for org.activiti.engine.impl.calendar.BusinessCalendar and implementing classes…

The BusinessCalendar can be hooked into the ProcessEngineCOnfiguration somewhere and allows for YOUR implementation to resolve an actual date based on a "notation":

Date resolveDuedate(String duedateDescription);