Skip to main content

system.kanoa.cmms.getWorkOrderConditions(paramsDict)

Returns the condition-based triggers associated with work orders � the rules that cause a work order to be auto-generated when a monitored counter or tag crosses a defined threshold, as opposed to a fixed time-based schedule. All keys in paramsDict are optional filters; pass an empty dict (or omit keys) to return conditions across all work orders, or narrow the result by work order, condition, or counter.


Parameters

paramsDict Dictionary

- conditionIdInteger
- conditionNameString
- counterIdInteger
- lastGeneratedDateDateTime
- workOrderIdInteger
- workOrderNameString

Returns

workOrderConditionData pyDataset


Example

paramsDict = {"workOrderId": 52}
data = system.kanoa.utilities.convertDatasetToJSON(system.kanoa.cmms.getWorkOrderConditions(paramsDict))

for i, row in enumerate(data):
for k,v in row.items():
print k,v

break #Just limiting to returning the columns from the first record for display purposes
>>>
conditionInfo {"counterId":132375,"valueThreshold":45}
lastGeneratedDate Tue Mar 24 17:27:47 UTC 2026
conditionName counter
changedDate Tue Mar 24 17:29:29 UTC 2026
createdDate Tue Mar 24 17:00:15 UTC 2026
conditionId 4
lastGeneratedValue 3958.0
createdBy 5
assetId 901
assetPath Kanoa Box Co\Box Plant\Packaging\Box Line 1
changedBy 39
assetName Box Line 1
workOrderId 52
workOrderConditionId 9
>>>