system.mes.oee.getAllQualityReasonPathsByLocation
Description
Retrieves the full hierarchical path for all OEE Quality Reasons configured for a specific location. This method returns a simple list of strings, where each string is the complete path of a quality reason.
Permissions
This method requires OEE.READ.GET permission.
Syntax
system.mes.oee.getAllQualityReasonPathsByLocation(locationIdOrPath)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
locationIdOrPath | String | True | The ID or path of the location. If null, returns paths for all locations. |
Returns
A list of strings, where each string is the full hierarchical path of a quality reason (e.g.,
"Equipment/Mechanical/Pump Failure").
Code Examples
# Get all quality reason paths for a specific location
location = "Site/Area/Line 1"
reasonPaths = system.mes.oee.getAllQualityReasonPathsByLocation(location)
for path in reasonPaths:
print path