system.kanoa.cmms.checkWorkOrderConditions()
Evaluates all active condition-based work order triggers to determine whether any of them have been satisfied and are ready to generate a new work order event.
Kanoa runs this itself about once a minute, on the CMMS Schedule gateway timer (see the Timers tab of the Kanoa gateway config page), so you don't need a timer script of your own. Call it by hand when testing a Condition template; it sweeps the full set of configured conditions each time it runs.
It takes no arguments — the conditions it checks are read from the CMMS configuration (see getWorkOrderTriggers) rather than being passed in.
Parameters
Returns
numRecordsCreated Integer Number of new work order events created
Example
# Kanoa's CMMS Schedule timer already runs this; call it by hand to test a Condition template now
created = system.kanoa.cmms.checkWorkOrderConditions()
print created