# system.kanoa.cmms.checkWorkOrderSchedule()

This function runs periodically to see if we are ready to generate a workOrder event based on schedule.
Evaluates all configured time-based (calendar/interval) work order schedules to determine whether any are due, and generates new work order records for the ones that are ready. 
Like `checkWorkOrderConditions`, this function is intended to be invoked periodically � typically from a gateway timer script � rather than called directly from a UI component, since each run sweeps every active schedule. 
It takes no arguments; the schedules it evaluates are the ones already configured in the CMMS (see the `scheduleTypeId`/`scheduleTypeName` filters on `getWorkOrders`).

---
### Parameters
None

---
### Returns
**ordersGenerated** `Integer`<br />

---
### Example
```python
ordersGenerated = system.kanoa.cmms.checkWorkOrderSchedule()
```
