cancel
Showing results for 
Search instead for 
Did you mean: 

Any notice about Business Calendar

jcosano
Champ in-the-making
Champ in-the-making
Hello guys!

do you have any notice about Business Calendar?

I'm thinking in:

- Timer boundary events that time is referenced to company time…
- Holidays of users

Do you expect have this improvement? can I implement my own BusinessCalendar?

Thanks!
7 REPLIES 7

trademak
Star Contributor
Star Contributor
Hi,

At the moment we don't have plans to expand the current timer support.
But functionality like supporting holiday of users can easily be added by implementing a task listener which looks this up in a database.
To implement your own BusinessCalendar, it depends on what you really want there. If a task listener provides enough support for your use cases, that would be quite easy to implement.

Best regards,

jcosano
Champ in-the-making
Champ in-the-making
If I implent a task listener,

can I add a customized alarm for this task?  (add a job and decide when is fired)

jbarrez
Star Contributor
Star Contributor
There is an internal class 'BusinessCalendar' which is used when the date is calculated.
However, this is not yet exposed. You could check the source code to see how it can be configured to have your own business calendar implementation.

jcosano
Champ in-the-making
Champ in-the-making
Ok.. I like that…

Thank you…

Next week, I'll upgrade from 5.3 to 5.6 (I hope that mails works fine Smiley Tongue )
I use clob instead of varchar(255)… then the update to 4000 not affect to me… I hope  (currently I'm using 40.000)

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
I've been experimenting with this since we need it to. I currently seem to have something working, mostly based on existing libraries. It seems to be working, but I have to make test-cases for edge- cases (leap-year etc)

Current limitations:
- BusinessMonth = 1 real month, so not taking into account holidays, unless the 'end date' is on such a day
- BusinessYear = 1 real year, so not taking into account holidays, unless the 'end date' is on such a day
- Negative values not supported yet
- Same  number of  working working hours for each working day, which currently is fixed to mon-fri (start-end time will be configurable, lunch breaks do not exist)
- Holiday's not customizable yet, just talking the default holidays of a locale into account
- Not possible to add holiday's of individual users in cases where this user participates (illogical sla wize)

Would this be something that could already work?

One question though… how are we going to specify on a duration that it is a business duration? An additional attribute :

    <timeDuration activiti:type="business">P10D</timeDuration>

with the attribute being absent defaulting to the current behaviour?

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
btw, is there realy no jira for this?

jbarrez
Star Contributor
Star Contributor
Afaik, there has not been much requests for a business calendar (till now ;-))

I dont believe there is a Jira at the moment, but if you are interesting in pulling this effort feel free ofc.