Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6624A188DB for ; Sat, 19 Sep 2015 11:28:01 +0000 (UTC) Received: (qmail 34464 invoked by uid 500); 19 Sep 2015 11:28:01 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 34431 invoked by uid 500); 19 Sep 2015 11:28:00 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 34419 invoked by uid 99); 19 Sep 2015 11:28:00 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Sep 2015 11:28:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 301F8180183 for ; Sat, 19 Sep 2015 11:28:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id p5IIc-ZtVzN4 for ; Sat, 19 Sep 2015 11:27:51 +0000 (UTC) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 06934206E8 for ; Sat, 19 Sep 2015 11:27:51 +0000 (UTC) Received: by lamp12 with SMTP id p12so43032345lam.0 for ; Sat, 19 Sep 2015 04:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3vIELg1x/X56lC7lziGHU8xEG3y3FSvyQRGhv1jEMEc=; b=IoPocUFi3s3AhS9ZN47kxiYJAhpucyHxkwx5mz24nHvWECwMh0JkjcqqYp5hYuQ+AD U6xAPJd7ONRsx++SZ/f84bP7WTv9T47Y2/5xcYuH72L0C9DIIHQclb+OXuizNv7024pB Wby2wEpo3yqTvMitLFb140TaXo99hQN0QdVGBSHQ5O6kuLmt+mgxQsZw9UlAq8N+5iFV VH5gNyaXk1XCqUVkyfTGn/0jR0eKWXDbbtr+BesofGGij/6amwDuN5Ynoa8b4Lb5eElY gpbFR3NKSNUkTXnZ458S3/eCbVop11SzsxY0VUw8oReeFcLkACv09tnmbh0HNZRa/A1p nYXw== MIME-Version: 1.0 X-Received: by 10.25.142.203 with SMTP id q194mr407853lfd.83.1442662069437; Sat, 19 Sep 2015 04:27:49 -0700 (PDT) Received: by 10.25.213.77 with HTTP; Sat, 19 Sep 2015 04:27:49 -0700 (PDT) In-Reply-To: References: <53E89FE2.2020907@sandglass-software.com> Date: Sat, 19 Sep 2015 13:27:49 +0200 Message-ID: Subject: Re: Temporal expression configuration From: Pierre Smits To: user@ofbiz.apache.org Content-Type: multipart/alternative; boundary=001a11401cfc2e0cc9052017f0a7 --001a11401cfc2e0cc9052017f0a7 Content-Type: text/plain; charset=UTF-8 Hi Vyom, Feel free to create a JIRA issue for tracking and resolvement purposes. Best regards, Pierre Smits *OFBiz Extensions Marketplace* http://oem.ofbizci.net On Sat, Sep 19, 2015 at 12:11 PM, Vyom Jain wrote: > I've been testing with the demo data and this is more likely a bug with > HOUR_RANGE. For example, if I use TemporalExpression DAILY_GRIND > (ServiceDemoData.xml) on a job, the job runs once but no jobs are scheduled > for the next day. > > -- > Vyom > > On 18 September 2015 at 20:51, Vyom Jain wrote: > > > I've been trying to prepare similar expression on trunk code but neither > > INTERSECTION nor DIFFERENCE give desired results (mentioned in first > > message). > > I've split "TIME_OF_DAY_RANGE" expression & replaced it with separate > > "FREQUENCY" & "HOUR_RANGE(8, 18)" expressions. > > There seems to be an issue with HOUR_RANGE evaluation. > > > > Can anyone suggest what is wrong in the expression? Could this be a bug? > > On Aug 11, 2014 16:37, "Vyom Jain" wrote: > > > >> TIME_OF_DAY_RANGE includes a frequency portion in it (integer1="13" > >> integer2="05"), when I had independently used >> tempExprId="8AM6PM" integer1="13" integer2="05" > >> tempExprTypeId="TIME_OF_DAY_RANGE" string1="08:00" string2="18:00"/>, > the > >> service would start *everyday* at 8:00, get scheduled after every 5 > seconds > >> and finally stop at 18:00. > >> > >> I've been able to formulate an expression that is giving me desired > >> results - > >> >> tempExprTypeId="DIFFERENCE"/> > >> >> tempExprTypeId="TIME_OF_DAY_RANGE" string1="08:00" string2="18:00"/> > >> >> toTempExprId="8AM6PM" exprAssocType="INCLUDE"/> > >> >> toTempExprId="SAT_TO_SUN" exprAssocType="EXCLUDE"/> > >> > >> > >> -- > >> Vyom > >> > >> > >> On 11 August 2014 16:20, Adrian Crum < > adrian.crum@sandglass-software.com> > >> wrote: > >> > >>> You are missing a Frequency expression. It is needed to make the event > >>> repeat every 5 seconds. > >>> > >>> Time Of Day Range was removed because it was a bad implementation and > it > >>> didn't function properly. > >>> > >>> Adrian Crum > >>> Sandglass Software > >>> www.sandglass-software.com > >>> > >>> > >>> On 8/10/2014 8:32 PM, Vyom Jain wrote: > >>> > >>>> Hello Everyone, > >>>> > >>>> I would like to schedule recurring jobs in such a way that the job > >>>> executes > >>>> every 5 seconds from Monday to Wednesday starting from 08:00 till > 18:00. > >>>> > >>>> I've tried following temporal expression - > >>>> > >>>> >>>> tempExprTypeId="INTERSECTION"/> > >>>> >>>> tempExprTypeId="TIME_OF_DAY_RANGE" string1="08:00" string2="18:00"/> > >>>> >>>> toTempExprId="MON_TO_FRI"/> > >>>> >>>> toTempExprId="8AM6PM"/> > >>>> > >>>> This expression doesn't work as expected - the job doesn't execute > >>>> every 5 > >>>> seconds till 6:00 PM, it starts at 8:00 Monday & next run gets > >>>> scheduled to > >>>> 8:00 Tuesday. > >>>> > >>>> Can anyone suggest what is wrong in the expression? > >>>> > >>>> Note: tempExprTypeId="TIME_OF_DAY_RANGE" is no longer valid in current > >>>> trunk, though it is valid in the version of OFBiz I'm using (somewhere > >>>> between v09.04 & 10.04). > >>>> > >>>> -- > >>>> Vyom > >>>> > >>>> > >> > --001a11401cfc2e0cc9052017f0a7--