Additional functions to call in patterns are described in definitions blocks. In TPL 1.5, definitions blocks are used for User defined functions and for data integration with SQL databases.

The basic form of a data integration definitions block is:

definitions name version
  """Description of definitions block"""
  type := definitions_type;
  other_setting := setting_value;
  define function_name
    """Function description"""
    parameters := param1, param2, ...;
    other_setting := setting_value;
  end define;
end definitions;

All definitions blocks must have a type specification. Other settings may be required by certain definitions types. The definitions block contains one or more define blocks, describing the functions being defined. All functions that take parameters must have a parameters specification, listing the names of the parameters to the function. (If a function takes no parameters, the parameters specification can be missed out.) Most definitions types also require other settings in the define blocks.

Once defined, functions can be called in patterns with the usual function calling syntax. Definitions can be imported from one module into another, with the usual versioning scheme.

The supported definitions types are as follows:

Was this page helpful? Yes No Submitting... Thank you


  1. Blaine Simpson

    Language mistakes.

    "missed out" is not a phrase understood in American English. Use "skipped".

    "definitions types" should be "definition types".

    Apr 27, 2012 07:31
  2. Blaine Simpson

    It's not a "language" mistake, it's a term that some may be unable to comprehend.

    Sep 26, 2012 07:00