[
https://jira.jboss.org/jira/browse/JBPM-2814?page=com.atlassian.jira.plug...
]
Per Christian Henden updated JBPM-2814:
---------------------------------------
Description:
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 choice results in a problem 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.
was:
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 choice results in a problem 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. This means 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.
Trouble using a custom BusinessCalendar because of 'new
BusinessCalendarImpl' in BusinessDayCalendarBinding
-----------------------------------------------------------------------------------------------------------
Key: JBPM-2814
URL:
https://jira.jboss.org/jira/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 choice results in a problem 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/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira