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