Skip to main content

system.kanoa.performanceState.addPerformanceStateClass(performanceStateClassInfo, userId)

Adds a new performance state class. All performanceStateClassInfo keys are required.


Parameters

performanceStateClassInfo Dictionary

- enabledBoolean
- parentIdInteger
- performanceStateClassDescriptionString
- performanceStateClassNameString

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