EXEC operator
The EXEC operator creates an action that executes another action.
Syntax
[EXEC] actionId(expression1, ..., expressionN)
Description
The EXEC operator creates an action that executes another action, passing it the values of expressions as parameters.
Parameters
-
actionId -
expression1, ..., expressionNA list of expressions whose values will be passed to the action being executed as arguments. The number of expressions must be equal to the number of parameters of the action being executed.
-
operatorAn operator that creates the action being executed.
Examples
// declaration of importData action with two parameters
importData(Sku sku, Order order) {
MESSAGE 'Run import for ' + id(sku) + ' ' + customer(order);
}
order = DATA Order (OrderDetail) NONULL DELETE;
// declaration of the action runImport that calls importData
runImport(OrderDetail d) { importData(sku(d), order(d)); }