Skip to main content

system.kanoa.performanceState.addPerformanceStateClass

Description

Adds a new performance state class

Syntax

addPerformanceStateClass(performanceStateClassInfo, userId)

Parameters:
  • performanceStateClassInfo (dict)
  • userId (int)

  • Returns:
  • performanceStateClassId (int)
  • msg (string): None if success
  • Dictionary

    ParameterTypeRequiredNotes
    performanceStateClassNamestring
    parentIdint
    performanceStateClassDescriptionstring
    enabledbool

    Code Examples

    # Example Usage:
    userId = 18
    performanceStateClassInfo = {
    'performanceStateClassName': 'Operations',
    'parentId': 5,
    'performanceStateClassDescription': 'MES Operations state class',
    'enabled': True
    }
    addPerformanceStateClass(performanceStateClassInfo, userId)
    >
    4, None
    >>>