Skip to main content

system.kanoa.event.updateStateEvent(stateInfo, userId)

updates a stateEvent record


Parameters

stateInfo Dictionary

- assetStateIdIntegerCan set this to a sub asset if asset is down due to a downtime fault on a child cell otherwise null
- noteString
- origAssetIdInteger
- origStateCodeInteger
- stateCodeInteger
- stateEventIdInteger
- tStampDateTime

userId Integer


Returns

# of records modified Integer


Example

stateInfo = {'assetStateId': 1, 'origAssetId': 2, 'stateCode': 4, 'origStateCode':7, 'note': 'updated', 'stateEventId': 567}
userId = 123
stateInfo = system.kanoa.event.updateStateEvent(stateInfo, userId)