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 0CE5218E0F for ; Sat, 19 Sep 2015 15:33:46 +0000 (UTC) Received: (qmail 28058 invoked by uid 500); 19 Sep 2015 15:33:45 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 28029 invoked by uid 500); 19 Sep 2015 15:33:45 -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 28017 invoked by uid 99); 19 Sep 2015 15:33:45 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Sep 2015 15:33:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C8C84F4583 for ; Sat, 19 Sep 2015 15:33:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.119 X-Spam-Level: X-Spam-Status: No, score=-0.119 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=sandglass-software.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id B96XpRFPl4TW for ; Sat, 19 Sep 2015 15:33:36 +0000 (UTC) Received: from delivery.mailspamprotection.com (delivery.mailspamprotection.com [108.178.24.173]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id AA8C442B7B for ; Sat, 19 Sep 2015 15:33:35 +0000 (UTC) Received: from ns1.siteground172.com ([184.154.160.14] helo=serv01.siteground172.com) by se3.mailspamprotection.com with esmtps (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85) (envelope-from ) id 1ZdK8h-0007KS-Er for user@ofbiz.apache.org; Sat, 19 Sep 2015 10:33:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sandglass-software.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=UiNVL2Pqtgv7zhgrze0oU0XsuuO48COmNXcEJ98Nu/I=; b=dI8tKOre6PTkUaEFsdH96ixg/qbhirYN9i28GdXhxMQaudSsqUAU94nz8A4rupfX2ciXtXYOINKTWGmFUb99fnGY9goMP+IWpQzDmWgRef2Kcuq3qEf6KXR0PZwOK7WuBIjMzPp4X4V4+DGIoSms/OnWf6uwCgfj3S6s2qkNGSs=; Received: from [66.215.172.30] (port=60161 helo=[192.168.1.3]) by serv01.siteground172.com with esmtpsa (UNKNOWN:RC4-SHA:128) (Exim 4.80.1) (envelope-from ) id 1ZdK8Z-0006Y1-Et for user@ofbiz.apache.org; Sat, 19 Sep 2015 10:33:15 -0500 Subject: Re: Temporal expression configuration To: user@ofbiz.apache.org References: <53E89FE2.2020907@sandglass-software.com> <55FD7D99.3070200@sandglass-software.com> From: Adrian Crum Organization: Sandglass Software Message-ID: <55FD8044.8020609@sandglass-software.com> Date: Sat, 19 Sep 2015 08:33:24 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground172.com X-AntiAbuse: Original Domain - ofbiz.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sandglass-software.com X-Get-Message-Sender-Via: serv01.siteground172.com: none X-Filter-ID: s0sct1PQhAABKnZB5plbIexRb6Wn7ZUV5yeFAstNJZpAY1BaLfwb0I4SZzVEHfhbMrfAO5/ofUxN 7S1UUc8AMXb+QSL7PYJcWsZaAL+M2XYKJw9os7pOAJy3PJptvNli2pi0KksNJ91llWXJBRQg/sJz 8WfReHqUOdh1n/PPcFzBWhgznumPZMw78GuVjdg71f1v7IcbbUGCKpI8Ir9GIlz1pRXWhjh9fdbl 44I0Df2zi1AhrTmQha+OkAJTNOdMYSX5fABPXG+9QPyWE3Q5FhZRudLhU3wdXTvzjfr4MPrRA+kJ Q5wMpUj3D781oGvPPBfyCUQPGRfAuQJyQcUhQ4/Ia6YN5m0MsQWfYUYaa1IvMq0KDVXLb6VBQkBP sSqcRWJZ4cxmTr0TVcIFDdHywnY+akJNhL5qAttvzUBLxkQRf7vfz3yJTxlDBSwdAW3sfzhI8nvT TuZeG0BzzaacLjHYLyvT6f3Q+BmtUtn7AttH1WsaGAOyYG3fZmqGXyhMKJyXruX+Y6ivUqs4BJMP 66anMfHPEwyrd1R+9gs+vCBFYlnhzGZOvRNVwgUN0fLCdfis1O0p6F7CmaTsN5I7sjZPfzflfo/y ejfhWvkdqy8XKu1VbgppFJRGoXLED7mHy9XUM2wxpPwCncXmP1ltNCMFpceRjk2MKV2DzTNU3Bwb 3njt4tjmb7ifr+05R1MIcsxIsVE4xAikMfMLqAUrqukSxJsJlsb+Z1Fz5U4XSCw= X-Report-Abuse-To: spam@quarantine.mailspamprotection.com X-Filter-Fingerprint: IFrWXGses7OKB5S5G8/dJb0kolOUiviGeQyDsBgQ6PBA3cTUQ1R++keuE7RDJ8Kg3RbMLUalw1oC mj99/u+Poh38tEMU4IgC4sNz49qn3HHnhRv/ZJ3kEy8bfiAr+Fb/UpndEJ0YoaLytXXo8BMTaX2p Mk7LBarWD9Fj4R3eIu5amSKkALoA6KDzkQ8jq89Qglr+eUaqsXi6ilYykBRNmy1w3rhXI7ypWHcC zReLskSoC1jzfYuYzO5TaopJL1l0EkXKTCB9mgAH2nNvM1GFDcH5C2MO7hTENZJE35bUvwA= X-Originating-IP: 184.154.160.14 X-SpamExperts-Domain: siteground172.com X-SpamExperts-Username: 184.154.160.14 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=184.154.160.14@siteground172.com X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: SB/global_tokens (0.00426061552049) X-Recommended-Action: accept http://demo-trunk-ofbiz.apache.org/workeffort/control/calendar Adrian Crum Sandglass Software www.sandglass-software.com On 9/19/2015 8:30 AM, Vyom Jain wrote: > Okay, can you provide some steps or link to a Work Effort in the demo ( > http://demo-trunk-ofbiz.apache.org/workeffort/control/EditWorkEffort?workEffortId=10000) > so that I can see what fields need to be filled? > > In my testing with a job on trunk code, first job would get finished but no > new jobs would get created. > > -- > Vyom > > On 19 September 2015 at 20:52, Adrian Crum < > adrian.crum@sandglass-software.com> wrote: > >> It is best to test temporal expressions with the Work Effort application - >> so you can see the effect of your expression. >> >> I used the DAILY_GRIND temporal expression in a work effort and it creates >> the correct events. >> >> Adrian Crum >> Sandglass Software >> www.sandglass-software.com >> >> On 9/19/2015 3:11 AM, 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 >>>>>>> >>>>>>> >>>>>>> >>>>> >>> >