Update Cron
The following SDK can be used to update a particular cron’s details. You can use this SDK to update the name, description and target. You can select your required cron by passing the cron id to getCron() method.
Note: You can use this method to update details of both Pre-Defined Crons and Dynamic Crons.
Ensure the following packages have been imported:
copyimport com.zc.component.jobscheduling.beans.cron.ZCCronDetails;
copyZCCronDetails cron = jobScheduling.cron.getCron(12378634912l); // get cron with cron Id cron.setCronName("test_cron"); // set new cron name ZCCronDetails updatedCronA = jobScheduling.cron.updateCron(12378634912l, cron); // update cron with cron Id updatedCronA.setCronName("updated_test_cron"); ZCCronDetails updatedCronB = jobScheduling.cron.updateCron("test_cron", cron); // update cron with cron name
Last Updated 2025-06-20 16:21:48 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit