Global declaration0


SYNTAX:
global_decl =  GLOBAL { schema_instance_decl | [ instantiation_clause ]  [ global_variable_decl ] } END_GLOBAL ';' .
schema_instance_decl = DECLARE schema_instance_id INSTANCE OF  ( ( SOURCE_SCHEMA schema_id ) |  ( TARGET_SCHEMA schema_id ) ) ';' .
schema_instance_id = simple_id .
instantiation_clause = instance_id '=' entity_constructor ';' .
global_variable_decl = global_variable { global_variable } .
global_variable = global_variable_id { ',' global_variable_id } ':'  variable_type [ ':=' expression ] ';' .
global_variable_id = simple_id .
instance_id = '#' simple_id .
The global declaration in an EDMexpressX mapping schema is mandatory and it must be the very first declaration in the mapping schema.