Skip to main content

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

- dataTypeNameStringi.e. String, Integer, Float
- lclFloat
- ldlFloat
- lelFloat
- lslFloat
- picklistValues(string)
- tgtFloat
- uclFloat
- udlFloat
- uelFloat
- uslFloat

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)