system.kanoa.event.addStateEvent
Description
Adds a stateEvent record.Syntax
addStateEvent(stateInfo, userId)- stateInfo - Dictionary {'assetId': 18, 'assetStateId': 18, 'stateCode': 1, 'tStamp': somedate}.
- userId - User ID.
stateInfo (dictionary).
Code Example
# Example Usage:
stateInfo = {'assetId': 18, 'assetStateId': 18, 'stateCode': 1, 'tStamp': somedate}
userId = 999
stateInfo = system.kanoa.event.addStateEvent(stateInfo, userId)