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.

Start of changeThe 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.End of change

Correlation name Compute module Filter module Database module
Database × × ×
Environment × × ×
Root   × ×
Body   × ×
Properties   × ×
ExceptionList   × ×
LocalEnvironment   × ×
InputRoot ×    
InputBody ×    
InputProperties ×    
InputExceptionList ×    
InputLocalEnvironment ×    
OutputRoot ×    
OutputExceptionList ×    
OutputLocalEnvironment ×    
Start of changeDestinationListEnd of change Start of changeDeprecated synonym for LocalEnvironmentEnd of change
Start of changeInputDestinationListEnd of change Start of changeDeprecated synonym for InputLocalEnvironmentEnd of change
Start of changeOutputDestinationListEnd of change Start of changeDeprecated synonym for OutputLocalEnvironmentEnd of change
Related concepts
ESQL overview
Related tasks
Developing ESQL
Related reference
Syntax diagrams: available types
ESQL statements
CALL statement
BROKER SCHEMA statement
PATH clause