system.kanoa.quality.event.getChkItemStateId(chkItemInfo, userId)
Given the chkItem info and value, this function will return if the check item event passed, failed or has warning
Parameters
chkItemInfo Dictionary
| - dataTypeName | String | i.e. String, Integer, Float |
| - lcl | Float | |
| - ldl | Float | |
| - lel | Float | |
| - lsl | Float | |
| - picklistValues | (string) | |
| - tgt | Float | |
| - ucl | Float | |
| - udl | Float | |
| - uel | Float | |
| - usl | Float |
userId Integer
Returns
chkItemStateId Integer
message String
Example
chkItemInfo = {'dataTypeName': 'Float', 'lel': None, 'lsl': 0, 'lcl': 0.3, 'tgt': 1.2, 'ucl': 1.5,'usl': 2.0,'uel': None, 'picklistValues': None}
value = 10.5
chkItemStateId, message = system.kanoa.quality.event.getChkItemStateId(chkItemInfo, value)