Skip to main content

system.kanoa.event.addStateEvent

This function requires KanoaOPS module

Description

Adds a stateEvent record.

Syntax

addStateEvent(stateInfo, userId)
  • Parameters
      stateInfo - Dictionary {'assetId': 18, 'assetStateId': 18, 'stateCode': 1, 'tStamp': somedate}.
      userId - User ID.
  • Returns
    stateInfo (dictionary).
  • Code Example

    # Example Usage:
    stateInfo = {'assetId': 18, 'assetStateId': 18, 'stateCode': 1, 'tStamp': somedate}
    userId = 999
    stateInfo = system.kanoa.event.addStateEvent(stateInfo, userId)