Processors

Processors are analogous to Java servlets. Processors provide a customizable URL endpoint that can execute arbitrary server-side JavaScript code and produce output such as TEXT, JSON, or HTML.

Typically, you create custom processors when you want a URL query to:

  • Produce data in non-standard formats.
  • Perform non-standard record operations.
  • Act on multiple tables.

There are two types of processors.

  • Single-purpose: processors that have a single purpose and single endpoint.
  • Multi-table: processors that apply to all tables on the instance.

By default, processors are public and can execute without requiring authorization. This means that any logged-in user can execute the processor without needing a particular role. To prevent leakage of secure data, protect your processors by requiring a CSRF token or requiring users have an authorized role to run the processor.