1.
User Guide: Creation of a Work Order
Water Hauling Recurring Job via Apex Scheduler
As the Super User persona – A Work Order can be created for performing Water Hauling Jobs at a regular interval of time and scheduled using the Apex Scheduler with custom settings.
To Schedule a Recurring Type of Water Hauling activity:
1a.
Go to Setup → Apex Classes → Click on Schedule Apex.
![](https://diabsolut.com/wp-content/uploads/2021/09/UC2-1a.png)
1b.
Provide the Job Name, then Click on the lens icon and select diab_RecurringTaskScheduler and Schedule the execution time(s) as per your business requirements.
![](https://diabsolut.com/wp-content/uploads/2021/09/UC2-1b-1-450x284.png)
![](https://diabsolut.com/wp-content/uploads/2021/09/UC2-1b-2-450x201.png)
2.
In order to create the Recurring Work Order, add details to the custom settings.
2a.
Go to Setup → Custom Settings → Click on Manage.
![](https://diabsolut.com/wp-content/uploads/2021/09/UC2-2a.png)
2b.
Click on New.
![](https://diabsolut.com/wp-content/uploads/2021/09/UC2-2b.png)
2c.
Add Recurring Work Order creation details and Click on Save.
![](https://diabsolut.com/wp-content/uploads/2021/09/UC2-2c.png)