Opset/4—Modify the Action and Arguments of an Operation of an Event - Documentation for Bmc Truesight Infrastructure Management 11.0

Opset/4—Modify the Action and Arguments of an Operation of an Event - Documentation for Bmc Truesight Infrastructure Management 11.0

The opset/4 function modifies the action and arguments of an operation of an  event. The syntax for this function is as follows:

opset($EVENT,$SEQNR,$ACTION,$ARGS)

opset/4 arguments

Argument

Mode

Type

Description

$EVENT

Input

OBJECT

Specifies the event for which an operation is to be modified

$SEQNR

Input

INTEGER

Specifies the sequence number of the desired operation

$ACTION

Input

STRING

New action name of the operation

$ARGS

Input

STRING

New arguments for the operation action

Use the opset/4 function to replace the action name and arguments of operation $SEQNR that is attached to event $EVENT. The action name is replaced with $ACTION, and the argument list is replaced with $ARGS.

Operations are numbered, starting from 1 for the oldest operation. The most recent operation can be obtained by indicating 0 as the sequence number $SEQNR.

To determine the number of operations attached to an event, see opcnt/2—count the operations of an event.

Note

The time stamp and author of an operation cannot be modified.

opset/4 example

opset($E,0,'CloseEvent','');
Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.