Overview Module Function Class I*Tea 3.6.8 Reference Documentation© 2013 PDM&FC

Function itea-ws-op-varargs

itea-ws-op-varargs opName argName bodyBlock

Defines the implementation of an operation as a Tea function that receives as single argument a THashtable containing the operation arguments.

Parameters:
opName - A symbol representing the name of the operation whose implementation is being defined. This operation must have been previously declared.
argName - A symbol representing the Tea function formal parameter that upon the operation invocation will be initialized with a THashtable containing the operation arguments.
bodyBlock - The code block that will be executed whenever the operation is invoked.
Returns:
A newly created function object.

Creates a new Tea function object and associates it with an operation. This Tea function will be executed whenever the operation named opName is invoked. The Tea function will be called witha single THashtable argument. The THashtable will contain the parameters the operation was invoked with.

This Tea function is also expected to return a THashtable object containing the operation return parameters.


Overview Module Function Class ${tea.teadoc.header}
Report a bug or request new features
© 2013