ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vyom Jain <vyom0...@gmail.com>
Subject Re: Temporal expression configuration
Date Mon, 11 Aug 2014 11:07:02 GMT
TIME_OF_DAY_RANGE includes a frequency portion in it (integer1="13"
integer2="05"), when I had independently used <TemporalExpression
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
-
<TemporalExpression tempExprId="8AM6PM_MON_FRI"
tempExprTypeId="DIFFERENCE"/>
<TemporalExpression tempExprId="8AM6PM" integer1="13" integer2="05"
tempExprTypeId="TIME_OF_DAY_RANGE" string1="08:00" string2="18:00"/>
<TemporalExpressionAssoc fromTempExprId="8AM6PM_MON_FRI"
toTempExprId="8AM6PM" exprAssocType="INCLUDE"/>
<TemporalExpressionAssoc fromTempExprId="8AM6PM_MON_FRI"
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 -
>>
>> <TemporalExpression tempExprId="8AM6PM_MON_FRI"
>> tempExprTypeId="INTERSECTION"/>
>> <TemporalExpression tempExprId="8AM6PM" integer1="13" integer2="05"
>> tempExprTypeId="TIME_OF_DAY_RANGE" string1="08:00" string2="18:00"/>
>> <TemporalExpressionAssoc fromTempExprId="8AM6PM_MON_FRI"
>> toTempExprId="MON_TO_FRI"/>
>> <TemporalExpressionAssoc fromTempExprId="8AM6PM_MON_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
>>
>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message