system.kanoa.performanceState.updatePerformanceStateClass(performanceStateClassInfo, userId)
updates an performance state class. All performanceStateClassInfo keys are required.
Parameters
performanceStateClassInfo Dictionary
| - enabled | Boolean | |
| - parentId | Integer | |
| - performanceStateClassDescription | String | |
| - performanceStateClassId | Integer | |
| - performanceStateClassName | String |
userId Integer: Id of user executing the function
Returns
# of records modified Integer
msg String None if success
Example
userId = 18
performanceStateClassInfo = {
'performanceStateClassId': 7,
'performanceStateClassName': 'Operations',
'parentId': 5,
'performanceStateClassDescription': 'MES Operations state class',
'enabled': True
}
updatePerformanceStateClass(performanceStateClassInfo, userId)
>
4, None
>>>