2 Replies Latest reply on Jun 15, 2009 3:40 AM by Tom Baeyens

    jBPM 4 BusinessCalendar

    Phil Bingley Newbie

      I have a requirement to use a custom BusinessCalendar so that the holidays can be maintained by an end user rather than in the configuration. That in itself is not a problem but it would be nice to be able to implement an interface rather than extend the existing BusinessCalendar and override all the methods, most of which are not used by my implementation.

      Currently I have to extend the BusinessCalendar class, remove the existing BusinessCalendar definition from the jbpm.cfg.xml and insert my own definition (I do this with an object tag).

      From what I can see in the source, the only method that gets used by the PVM is the add(Date, Duration) method.

      This would just be a small tidy-up but allow for a cleaner replacement of BusinessCalendar implementations.