[jboss-jira] [JBoss JIRA] Created: (JBPM-697) The "business days" value for "due date" attribute of "task" node does not work properly.

Amit Verma (JIRA) jira-events at jboss.com
Tue Jul 18 02:51:11 EDT 2006


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


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

        



More information about the jboss-jira mailing list