Hi Eva,
Could you, please, provide more information why you can't use built-in features?
As i said previously, customizing batch framework itself is not a good idea. Maybe you can re-design approach with solution which is not required modifying batch framework: like seperate batch job, or you can still run batch job which is not supposed to run, but instead of executing logic, just skip it.
Hello Sergei,
Thank you for your responese.
I want to check the current time while executing the batch job. If the current time is not inside the interval based on my table of parameters, I want to change the status of the Batch in "Hold" and not execute the batch.
And if the current time is inside the interval, I want to change the status of the Batch in "Executing" and execute the batch.
Eva.
Hi Eva,
Do you want to check the current time after the execution of the batch job and based on parameters and current time set it to Waiting or Hold? I'm not sure if changing the batch framework is a good option for this requirement.
Have you considered creating a new batch job (run it very frequently) that will go through your parameters and change status accordingly similar to BatchChangeStatus class?
Also, there is an option to set up a period when AOS will accept batch jobs on "Server configuration" form (System administration - Setup - System - Server configuration). You can assign a batch group to AOS which will accept batch job sonly within a certain period.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156