[
https://jira.jboss.org/browse/JBPM-2814?page=com.atlassian.jira.plugin.sy...
]
Huisheng Xu commented on JBPM-2814:
-----------------------------------
In the developer guide, it only shows that we should customize a BusinessCalendar and
inject it into the xml. Once we do this work, we cannot use BusinessCalendarBinding any
longer. So I think what you want is customize a BusinessCalendar and find a way to let it
parse the xml configuration just let BusinesCalendar.
So Could you give me some examples? Then I could know how to achieve it. Thank you.
Trouble using a custom BusinessCalendar because of 'new
BusinessCalendarImpl' in BusinessDayCalendarBinding
-----------------------------------------------------------------------------------------------------------
Key: JBPM-2814
URL:
https://jira.jboss.org/browse/JBPM-2814
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Per Christian Henden
Fix For: jBPM 4.x
I've followed the howto on the JBPM webpages to replace BusinessCalendarImpl with my
own implementation. My custom BusinessCalendar.add is called, that works, but in
JBPM's BusinessDayCalendarBinding. java 'new BusinessCalendarImpl' is called
and a BusinessCalendarImpl is used throughout the class.
This is problematic when setting the 'days' field based on parsing
jbpm.business-calendar.cfg.xml. The field is written to the 'new
BusinessCalendarImpl' and not to my custom BusinessCalendar. The result is that in my
custom BusinessCalendar implementation I have no access to that information
('days' is null).
Other places in the JBPM code a processEngine.get(BusinessCalendar.class) is done to get
an instance of the (custom) BusinessCalendar.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira