Skip to main content

system.kanoa.quality.config.updateChkShtTrigger(triggerInfo, userId)

Updates a check sheet trigger. All triggerInfo keys are required.


Parameters

triggerInfo Dictionary

- chkShtIdInteger
- chkShtTriggerIdInteger
- comingDueMinsInteger# of minutes after being triggered that a check sheet will be in 'Coming Due' state
- delayMinsInteger# of minutes after triggered that a check sheet will be created. Used to prevent flooding of required checks after a shift change
- enabledBoolean
- graceMinsInteger# of minutes a check sheet will remain in 'Over due' before becoming 'Missed'
- intervalMinsInteger# of minutes between new checks sheets being triggered
- modeIdIntegerCan be None for all modes
- modifierStringCan Be None
- overDueMinsInteger# of minutes after 'Due' state before a check sheet will transtion to 'Over due'
- productionCountFloatCan be None
- shiftNameIdIntegerCan be None for all shifts
- triggerTypeIdInteger

userId Integer: Id of user executing the function


Returns

# of records modified Integer


Example

triggerInfo = {
'chkShtTriggerId': 14,
'chkShtId': 4,
'triggerTypeId':2,
'modeId': None,
'shiftNameId': None,
'intervalMins': 10,
'delayMins': 5,
'productionCount': None,
'comingDueMins': 5,
'overDueMins': 5,
'graceMins': 10,
'enabled': True,
'modifier': None
}
userId = 5
retVal = system.kanoa.quality.config.updateChkShtTrigger(triggerInfo, userId)