Compound Temporal Expression

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Compound Temporal Expression

cardenasvar
Hello friends,
I am trying to implement a Job that has the following time expressions:

- Every day from Monday to Friday (MON_TO_FRI)
- Between 08:00 AM and 18:00 PM (HOUR_08_18)
- Every 10 minutes (EVERY_TEN_MINUTES)

For this, I am creating the following TemporalExpression and
TemporalExpressionAssoc:

<TemporalExpression tempExprId = "HOUR_08_18" tempExprTypeId = "HOUR_RANGE"
description = "Hour 8 at 18" integer1 = "8" integer2 = "18" />
<TemporalExpression tempExprId = "EVERY_FIVE_MINUTES" tempExprTypeId =
"FREQUENCY" description = "Every 5 Minutes" integer1 = "12" integer2 = "5"
/>

<TemporalExpression tempExprId = "MY_EXPRESSION_TEMP_00" tempExprTypeId =
"INTERSECTION" description = "Monday to Friday at 8am at 18pm every 10
minutes" />
<TemporalExpressionAssoc fromTempExprId = "MY_EXPRESSION_TEMP_00"
toTempExprId = "HOUR_08_18" />
<TemporalExpressionAssoc fromTempExprId = "MY_EXPRESSION_TEMP_00"
toTempExprId = "EVERY_TEN_MINUTES" />
<TemporalExpressionAssoc fromTempExprId = "MY_EXPRESSION_TEMP_00"
toTempExprId = "MON_TO_FRI" />

I have done a lot of testing this way and it always creates the following
task for 10 min. more but for the next day!

Is this the correct way or am I failing at something?
Or is OFBiz not allowing this type of TemporalExpression?



--
Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html