Unsupported content

 

This version of the product is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Definitions

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 might 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

Comments

  1. Juan carlos Ramos gavidia

    A definitions Block is a Section in a module where you can describe additional functions

    Oct 13, 2020 09:48