Hi Lalit, startTime and endTime are set in exactly the way that you want. You do not need to grovel through the database to find the time of the last job run. You just need to have the appropriate code for the addSeedDocuments() method that makes use of the times that are passed to you.
Karl On Mon, Mar 10, 2014 at 4:51 AM, lalit jangra <[email protected]>wrote: > Hi, > > I am working on CMIS connector where i am passing a query like > > SELECT * FROM cmis:document where creationDate/modificationDate is between > [last 24 hours] > > But as per need, i need to update it to something like > > SELECT * FROM cmis:document where creationDate/modificationDate is between > [currentSystemTime and lastSuccessfulJobRunTime] > > so it takes parameters as current time & last successful job run time for > my CMIS job. > > I was looking thru the code where i could see addSeedDocument() method as > > public void addSeedDocuments(ISeedingActivity activities, > DocumentSpecification spec, long startTime, long endTime, int > jobMode)... { .... } > > i am thinking to paas startTime as last successful job run time & end time > as current system time. So i want to get inputs on how to get last > successful job run time which i assume is stored in DB. > > > Thanks for help. > > Regards, > Lalit Jangra. >
