opadd/3—add an operation to an event
The opadd/3
function adds an operation to an event. The syntax for this function is as follows:
opadd($EVENT,$ACTION,$ARGS)
opadd/3 arguments
Argument | Mode | Type | Description |
---|---|---|---|
| Input | OBJECT | Specifies the event to which to add an operation |
| Input | STRING | Specifies the action name of the operation |
| Input | STRING | Specifies the arguments for operation action |
Use the opadd/3
function to add an operation with action name $ACTION
and argument list $ARGS
to event $EVENT
.
The operation is added to the mc_operations
slot of the event and time stamped with the current time. The author of the operation is set to the identifier of the rule that calls the primitive.
The argument list must be formatted as a string. $ARGS
can be an empty string if no arguments are needed.
opadd/3 example
opadd($E,'AcknowledgeEvent','');
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.