opadd/4—add a policy operation to an event
The opadd/4
function adds a policy operation to an event. The syntax for this function is as follows:
opadd($EVENT,$POLICY,$ACTION,$ARGS)
opadd/4 arguments
Argument | Mode | Type | Description |
---|---|---|---|
| Input | OBJECT | Specifies the event to which to add an operation |
| Input | STRING | Specifies the policy name of the operation to be added |
| Input | STRING | Specifies the action name of the operation |
| Input | STRING | Specifies the arguments for operation action |
Use the opadd/4
function to add an operation for policy $POLICY
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/4 example
opadd($E,'Policy1','Data Enrichment','');
Comments
Log in or register to comment.