[
http://jira.jboss.com/jira/browse/JBPM-697?page=all ]
Ronald van Kuijk closed JBPM-697.
---------------------------------
Resolution: Out of Date
is still an issue, please reopen
The "business days" value for "due date"
attribute of "task" node does not work properly.
-----------------------------------------------------------------------------------------
Key: JBPM-697
URL:
http://jira.jboss.com/jira/browse/JBPM-697
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Environment: Windows XP
Reporter: Amit Verma
Assigned To: Tom Baeyens
Priority: Minor
Attachments: BusinessCalendarTest.java, DayPart.java
The "business days" value for "due date" attribute of
"task" node does not work properly. Hence the due date field of task instance
does not show the correct value
The problem is with add method of DayPart class.
When we change the way dayPartEndDate object is being created FROM
Date dayPartEndDate = new Date(date.getTime() + duration.milliseconds) ;
TO
Date dayPartEndDate = new Date(date.getTime() + millisecondsInThisDayPart );
the add method works properly
The variable "millisecondsInThisDayPart" represents the duration of dayPart not
duration.milliseconds, which represent the entire duration scheduled for the task
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira