AlarmUpdateCA (statement)

Syntax AlarmUpdate Project$, AlarmId$, ResourceId$, Action% ,caObj [, AlarmMessage$ [, UserId$ [,RefId$]]]
Description To update a currently generated Change approval alarm. The alarm being updated may be of any alarm type. However, if the AlarmMessage$ is specified, it must be an alarm with an alarm type of $CIMBASIC.
Comments Parameter Description
Project$ String. The project to generate the alarm on, an empty string "" indicates the current project
AlarmId$ String. The ID of the Alarm. Must be a valid alarm.
ResourceId$ String. The Resource ID to generate the alarm against. Used to control routing of the alarm.
Action% Integer. Indicates whether to acknowledge or reset the alarm. Use the manifest constants AM_ACKNOWLEDGED and AM_RESET to perform an acknowledgment and a reset. By default, on a computer with Server Redundancy, alarm updates from the standby computer's Event Manager are ignored. To acknowledge or reset an alarm on the active computer from the standby computer, use AM_ACKNOWLEDGED_M or AM_RESET_M to override the default behavior.
caObj Object of type CimAlmChangeApprovalData. It contains Change Approval information.
AlarmMessage$ String. (optional). The update alarm message to display. Note: This string is substituted into the first variable field of the Alarm's message. For a user-defined alarm message, this will be the first %s field in the message. For a point alarm message, it will be the first variable field (%VAL, %ID, etc.) in the alarm message. For this reason, it is not recommended that you use the AlarmMessage$ field when updating point alarms.
UserId$ String. (optional). The User ID which generated the alarm.
RefId$ String. A Reference ID used to distinguish between identical alarms. The Reference ID needs to match the Reference ID of the generated alarm. If the alarm was generated without a Reference ID, then this field can be omitted from the call.
Example
Sub Main()
Dim obj As New CimAlmChangeApprovalData
             obj.PerformerUserid = "OPERATOR"
             obj.PerformerPassword = ""
             obj.PerformerComment= "bool=1 from BCE"
             obj.VerifierUserid = "MANAGER"
             obj.VerifierPassword = ""
             obj.VerifierComment= "bool=1  from BCE"
                           AlarmUpdateCA"ESIGDEMO","CA_TESTPOINT","$MAC_FR",AM_ACKNOWLEDGED,CAobj, "CA_TESTPOINT","CA_TESTPOINT","CA_TESTPOINT"
End Sub
See Also AlarmGenerate (statement)
Note When updating an alarm, the AlarmId$, ResourceId$ and RefId$ must match exactly to the alarm to be updated; if they do not match the alarm will not be updated. When updating a point alarm, the RefId$ is always the Point ID (which is also the Alarm ID).