Hello,
Does Camunda supports more that one business calendar in a process definition?
We would like to use a custom Business Calendar per task. This means, for example, task A would use Business Calendar X to resolve its due date, and task B would use Business Calendar Z to resolve its due date.
Currently, we observed that we can set a custom business calendar to the engine, implementing the BusinessCalendar.java interface, but this will affect the due date result for all tasks in a given process definition.
Do you have any ideas of how we can achieve this?
Thanks in advance.
Regards,
Camilo.
Take a look at this for a custom business calendar implementation that supports various implementations https://github.com/StephenOTT/forms-manager/tree/master/src/main/kotlin/formsmanager/businesscalendar
The trouble with current Camunda impl is the timer calculation code is mostly hard coded to specific use cases and injection of new logic is painful: so mostly you need to completely replace some of the internal classes. The above code should give you a idea of some of the utility and where you need to make edits
1 Like
Thanks @StephenOTT for your input!
A contribution was added to implement the behavior we are expecting in Camunda. You can check the details here: https://github.com/camunda/camunda-bpm-platform/pull/1155.