Skip to main content

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

- commentString
- procedureStepCheckIdIntegerId of procedure step check
- procedureStepEventIdIntegerId of procedure step check event
- statusInteger
- valueString

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