CREATE MODULE statement

The CREATE MODULE statement creates a module, which is a named container associated with a node.

SYNTAX

Notes:
  1. ModuleName must be a valid identifier

A module in the Eclipse tools is referred to from a message processing node by name. The module must be in the <node schema>.

Module names occupy the same symbol space as functions and procedures defined in the schema. That is, modules, functions, and procedures contained by a schema must all have unique names.
Note: You are warned if there is no module associated with an ESQL node. You cannot deploy a flow containing a node in which a module is missing.

The modules for the Compute node, Database node, and Filter node must all contain exactly one function called Main. This function should return a Boolean. It is the entry point used by a message flow node when processing a message.

Correlation name Compute module Filter module Database module
Database × × ×
Environment × × ×
Root   × ×
Body   × ×
Properties   × ×
ExceptionList   × ×
LocalEnvironment   × ×
InputRoot ×    
InputBody ×    
InputProperties ×    
InputExceptionList ×    
InputLocalEnvironment ×    
OutputRoot ×    
OutputExceptionList ×    
OutputLocalEnvironment ×    
DestinationList Deprecated synonym for LocalEnvironment
InputDestinationList Deprecated synonym for InputLocalEnvironment
OutputDestinationList Deprecated synonym for OutputLocalEnvironment
Related concepts
ESQL overview
Related tasks
Developing ESQL
Related reference
Syntax diagrams: available types
ESQL statements
CALL statement
BROKER SCHEMA statement
PATH clause