Groovy objects (available objects in a Groovy script)

 

Object name

Purpose

Context

Message

The message being processed

Mapper, sender plugin

Groovynode

The current node inside the message being processed by a submapper

Submapper

Parser

A utility class to convert objects between json, maps and lists

All

Api

The 1Gateway API

All

option

A helper class to access optional bindings

All

memory

A global datastore in memory

All

db

A global database-backed datastore

All

mappingcontext

Mapping-related information

Mapping

logThe loggerAll

               

Optional bindings

 

http

The http helper class

All, through option.http

ftp

An FTP client

All, through option.ftp

sql

A sql client

All, through option.sql

 

Option

 

Method

Purpose

Example

includeInclude an external Groovy libraryobj=option.include("MyLib.groovy")

sql

Instantiate a SQL client

sql=option.sql

memorystore

Create or retrieve a named memory-resident datastore

mem=option.memorystore(“Mystore”)

dbstore

Create or retrieve a named database-backed datastore

mydb=option.dbstore(“MyDBstore”)

ftpTransfer files to/from an ftp serverftp=option.ftp(authprofile)