[ 
https://issues.apache.org/jira/browse/OFBIZ-6636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14900170#comment-14900170
 ] 

Vyom Jain commented on OFBIZ-6636:
----------------------------------

TIME_OF_DAY_RANGE was deprecated in r900024 and removed in r935695. It was 
replaced it with separate HOUR_RANGE and MINUTE_RANGE  expressions.
Possibly add a note in 
https://cwiki.apache.org/confluence/display/OFBIZ/Revisions+Requiring+Data+Migration+-+upgrade+ofbiz
 for users to migrate their expressions especially if they are using 
TIME_OF_DAY_RANGE.

I've been unable to formulate an expression which would schedule the next job 
to specific time of the day, lets say 8:00:00.
Example: I'm using the DAILY_GRIND expression on a recurring job, when trying 
this on OFBiz code prior to r935695, the next job would get scheduled at 
8:00:00 even if the parent job had started at 8:05.55, however, in the trunk 
code, the next job gets scheduled at 8:05.55 (i.e. it retains the minute and 
seconds portion of the parent job).
If this is no longer possible then may be same should be mentioned as well 
otherwise add some demo data to show how this could be done

> Certain temporal expressions are not evaluated correctly
> --------------------------------------------------------
>
>                 Key: OFBIZ-6636
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6636
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Vyom Jain
>
> Related to User ML post 
> http://mail-archives.apache.org/mod_mbox/ofbiz-user/201509.mbox/%3CCAKuEJqY2Qyv6-7rb_cQ7OnGqoaDsSXdde4E3F1DDt=dcz93...@mail.gmail.com%3E.
> There are couple of bugs in temporal expressions (see OFBIZ-6632) and after 
> various tests my conclusion is that at least HOUR_RANGE is not evaluated 
> properly.
> For example, if there's a requirement to schedule recurring job from Monday 
> to Friday and during certain hours then that no longer works as expected 
> (this used to work with TIME_OF_DAY_RANGE which was removed in subsequent 
> code refactoring). Even DAILY_GRIND in demo data doesn't schedule new jobs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to