Skip to main content

Global Variables

Instantly accessible objects available in every JavaScript processor environment — no import needed.


VariableTypeDescription
dataDictionaryDataDictionaryGlobal instance providing access to your project's data dictionary structures. Use it to navigate types and create new messages.
messageMessageThe current message being processed. Automatically available in every JavaScript processor — no import needed.
metricsMetricsGlobal metrics instance for tracking counters and other metrics across your deployment.
processorProcessorThe current processor instance. Provides access to ports, arguments, logging, and processor-specific configuration.
statusRegistryStatusRegistryGlobal registry of all defined status vendors and codes for the current project. Includes the built-in "LAY" vendor plus any custom vendors.
streamStreamThe current stream being processed. Controls message flow, logging, and lifecycle operations like retry and rollback.
workflowWorkflowThe current workflow instance. Provides access to workflow-level metadata and the data dictionary.