system.kanoa.cmms.addProcedureStepCheckEvent(checkEventInfo, userId)
Records an event/result for a procedure step check during a specific execution of a procedure � for example, the value a technician entered for a check, the status of that check (e.g. pass/fail/skipped), and any comment left alongside it.
Call this function while logging a technician's progress through a procedure run, after the relevant check has already been defined via addProcedureStepCheck.
All checkInfo keys are required.
Parameters
checkEventInfo Dictionary
| - comment | String | |
| - procedureStepCheckId | Integer | Id of procedure step check |
| - procedureStepEventId | Integer | Id of procedure step check event |
| - status | Integer | |
| - value | String |
userId Integer:Id of the user executing the function
Returns
procedureStepCheckEventId Integer
message String None if success
Example
checkEventInfo = {
"procedureStepCheckId": 78,
"procedureStepEventId": 501,
"value": "212",
"status": 1,
"comment": "Belt tension within acceptable range."
}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
procedureStepCheckEventId, message = system.kanoa.cmms.addProcedureStepCheckEvent(checkEventInfo, userId)
print procedureStepCheckEventId, message