[jboss-jira] [JBoss JIRA] Updated: (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 04:07:11 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBPM-697?page=all ]

Amit Verma updated JBPM-697:
----------------------------

    Attachment: DayPart.java

The method  add(Date date, Duration duration)  has been changed.

Inside this method  the line

Date dayPartEndDate = new Date(date.getTime() + duration.milliseconds);

has been changed to

Date dayPartEndDate = new Date(date.getTime() + millisecondsInThisDayPart);

> 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

        



More information about the jboss-jira mailing list