By the way, if you change the union's ID to express what it's used for - 
CREATE_MAINTS_JOB for example - then you can change the job's schedule by 
changing the union's members. So, if you wanted to have it run at noon and 6PM, 
just delete the 3PM member and add a 6PM member. There is no need to change the 
job itself.

-Adrian

--- On Sat, 1/16/10, Adrian Crum <[email protected]> wrote:

> From: Adrian Crum <[email protected]>
> Subject: Re: Use of TemporalExpression with JobSandbox
> To: [email protected]
> Date: Saturday, January 16, 2010, 3:38 PM
> This has been fixed in the trunk.
> Some things have changed however.
> 
> I deprecated the TIME_OF_DAY_RANGE expression type - it was
> a bad design. It has been replaced with HOUR_RANGE and
> MINUTE_RANGE.
> 
> If you want the job to run at the top of the hour, you will
> need to create an intersection of HOUR_RANGE and
> MINUTE_RANGE to specify the hour AND minute, then put the
> intersection in your 12PM_AND_3PM_DAY union. The new
> approach adds some complexity, but it is more reliable.
> 
> -Adrian
> 
> 
> --- On Thu, 1/7/10, Adrian Crum <[email protected]>
> wrote:
> 
> > From: Adrian Crum <[email protected]>
> > Subject: Re: Use of TemporalExpression with
> JobSandbox
> > To: [email protected]
> > Date: Thursday, January 7, 2010, 7:51 AM
> > Thank you for the information. I will
> > review all of the temporal expressions and try to get
> these
> > issues resolved. It might take a few days, so please
> be
> > patient.
> > 
> > -Adrian
> > 
> > cqnunez wrote:
> > > We've updated our local copy to rev 896649 and
> > encountered a similar problem
> > > when we used TIME_OF_DAY_RANGE instead of
> > DAY_OF_MONTH_RANGE.
> > > 
> > > Using the ff data, we now want the service to
> run
> > every noon and 3pm.
> > > 
> > > <TemporalExpression tempExprId="12PM"
> > tempExprTypeId="TIME_OF_DAY_RANGE"
> > > string1="12:00" string2="12:00"/>
> > > <TemporalExpression tempExprId="3PM"
> > tempExprTypeId="TIME_OF_DAY_RANGE"
> > > string1="15:00" string2="15:00"/>
> > > 
> > > <TemporalExpression
> tempExprId="12PM_AND_3PM_DAY"
> > tempExprTypeId="UNION"/>
> > > <TemporalExpressionAssoc
> > fromTempExprId="12PM_AND_3PM_DAY"
> > > toTempExprId="12PM"/>
> > > <TemporalExpressionAssoc
> > fromTempExprId="12PM_AND_3PM_DAY"
> > > toTempExprId="3PM"/>
> > > 
> > > <JobSandbox jobId="TEST_FAM_AUTO_CREATE"
> > jobName="Auto-create Fixed Asset
> > > Maintenances" runTime="2000-01-01 00:00:00.000"
> > > serviceName="createMaintsFromTimeInterval"
> > poolId="pool" runAsUser="system"
> > > tempExprId="12PM_AND_3PM_DAY"
> > maxRecurrenceCount="-1"/> 
> > > We've noticed that the service will always be
> > scheduled 12pm of the ff day
> > > instead of scheduling it first at 3pm of the
> same
> > day.
> > > 
> > > Thanks again for the help.
> > 
> 
> 
>       
> 



Reply via email to